Skip to content

Commit

Permalink
comment build_sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed May 14, 2023
1 parent 1c2ddd3 commit 95520cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[build-system]
requires = [
"setuptools>=42",
"sphinx",
"wheel",
"wheel==0.38.1",
]
build-backend = "setuptools.build_meta"

[tool.black]
py36 = true
Expand Down
23 changes: 11 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from setuptools import setup, find_packages

# 3rd party imports
from sphinx.setup_command import BuildDoc
# from sphinx.setup_command import BuildDoc

__author__ = "Louis Richard"
__email__ = "[email protected]"
Expand Down Expand Up @@ -41,15 +41,15 @@
"python-dateutil",
"requests",
"scipy",
"Sphinx",
"sphinx",
"tqdm",
"xarray",
]

PYTHON_REQUIRES = ">=3.7"


cmdclass = {"build_sphinx": BuildDoc}
# cmdclass = {"build_sphinx": BuildDoc}

setup(
name=PACKAGE_NAME,
Expand All @@ -64,14 +64,13 @@
python_requires=PYTHON_REQUIRES,
packages=find_packages(),
include_package_data=True,
cmdclass=cmdclass,
# these are optional and override conf.py settings
command_options={
"build_sphinx": {
"project": ("setup.py", PACKAGE_NAME),
"version": ("setup.py", VERSION),
"release": ("setup.py", VERSION),
"source_dir": ("setup.py", "docs"),
},
},
# command_options={
# "build_sphinx": {
# "project": ("setup.py", PACKAGE_NAME),
# "version": ("setup.py", VERSION),
# "release": ("setup.py", VERSION),
# "source_dir": ("setup.py", "docs"),
# },
# },
)

0 comments on commit 95520cb

Please sign in to comment.