Skip to content

Commit

Permalink
ENH: Support sphinx>=4,<5 (#38)
Browse files Browse the repository at this point in the history
* MAINT: update from sphinx4 deprecation

* TEST: Update base tests

* TEST: Update project tests

* Support sphinx>=4

* require sphinx>=4

* update environment for project test case
  • Loading branch information
mmcky authored Oct 18, 2021
1 parent 7e9a52b commit ba15167
Show file tree
Hide file tree
Showing 50 changed files with 1,667 additions and 120 deletions.
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dependencies:
- python=3.8
- pip
- pip:
- sphinx
- jupyter-book
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup, find_packages

VERSION = 'v0.1.2'
VERSION = 'v0.2.0'

LONG_DESCRIPTION = """
This package contains a [Sphinx](http://www.sphinx-doc.org/en/master/) extension
Expand All @@ -14,8 +14,6 @@
This project is maintained and supported by [QuantEcon](http://quantecon.org/)
"""

requires = ['Sphinx>=3.0']

setup(
name='sphinx-tojupyter',
version=VERSION,
Expand Down Expand Up @@ -43,5 +41,5 @@
platforms='any',
packages=find_packages(),
include_package_data=True,
install_requires=['sphinx', 'pyyaml', 'nbformat', 'nbconvert', 'dask[distributed]', 'nbdime'],
install_requires=['sphinx>=4', 'pyyaml', 'nbformat', 'nbconvert', 'dask[distributed]', 'nbdime'],
)
4 changes: 2 additions & 2 deletions sphinx_tojupyter/builders/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def get_outdated_docs(self):
if docname not in self.env.all_docs:
yield docname
continue
targetname = self.env.doc2path(docname, self.outdir,
self.out_suffix)
targetname = os.path.join(self.outdir, docname)
targetname += self.out_suffix
try:
targetmtime = os.path.getmtime(targetname)
except OSError:
Expand Down
Loading

0 comments on commit ba15167

Please sign in to comment.