diff --git a/nbsphinx_link/__init__.py b/nbsphinx_link/__init__.py index 792bd0e..366ea88 100644 --- a/nbsphinx_link/__init__.py +++ b/nbsphinx_link/__init__.py @@ -29,7 +29,6 @@ from nbsphinx import NotebookParser, NotebookError, _ipynbversion import nbformat from sphinx.util.logging import getLogger - from ._version import __version__ @@ -189,7 +188,6 @@ def parse(self, inputstring, document): abs_path = os.path.normpath(os.path.join(source_dir, link['path'])) path = utils.relative_path(None, abs_path) - path = nodes.reprunicode(path) extra_media = link.get('extra-media', None) if extra_media: @@ -199,8 +197,7 @@ def parse(self, inputstring, document): register_dependency(path, document) target_root = env.config.nbsphinx_link_target_root - target = utils.relative_path(target_root, abs_path) - target = nodes.reprunicode(target).replace(os.path.sep, '/') + target = utils.relative_path(target_root, abs_path).replace(os.path.sep, '/') env.metadata[env.docname]['nbsphinx-link-target'] = target # Copy parser from nbsphinx for our cutom format diff --git a/setup.py b/setup.py index d12cea4..ff43b93 100644 --- a/setup.py +++ b/setup.py @@ -28,16 +28,19 @@ license = 'BSD-3', platforms = "Linux, Mac OS X, Windows", keywords = ['Interactive', 'Interpreter', 'Shell', 'Web'], - classifiers = [ + classifiers=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ], + python_requires=">=3", install_requires = [ 'nbsphinx', 'sphinx>=1.8',