Skip to content

Commit

Permalink
[setup] extras[docs] must include 'all' (#11148)
Browse files Browse the repository at this point in the history
* extras[doc] must include 'all'

* fix

* better

* regroup
  • Loading branch information
stas00 authored Apr 8, 2021
1 parent 6644690 commit 97ccf67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ jobs:
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: pip install --upgrade pip
- run: pip install ."[all, docs]"
- run: pip install ."[docs]"
- save_cache:
key: v0.4-build_doc-{{ checksum "setup.py" }}
paths:
Expand All @@ -370,7 +370,7 @@ jobs:
keys:
- v0.4-deploy_doc-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: pip install ."[all,docs]"
- run: pip install ."[docs]"
- save_cache:
key: v0.4-deploy_doc-{{ checksum "setup.py" }}
paths:
Expand Down
24 changes: 14 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,7 @@ def run(self):
+ extras["retrieval"]
+ extras["modelcreation"]
)
extras["docs"] = deps_list(
"docutils",
"recommonmark",
"sphinx",
"sphinx-markdown-tables",
"sphinx-rtd-theme",
"sphinx-copybutton",
"sphinxext-opengraph",
)

extras["quality"] = deps_list("black", "isort", "flake8")

extras["all"] = (
Expand All @@ -267,12 +259,24 @@ def run(self):
+ extras["vision"]
)

extras["docs_specific"] = deps_list(
"docutils",
"recommonmark",
"sphinx",
"sphinx-markdown-tables",
"sphinx-rtd-theme",
"sphinx-copybutton",
"sphinxext-opengraph",
)
# "docs" needs "all" to resolve all the references
extras["docs"] = extras["all"] + extras["docs_specific"]

extras["dev"] = (
extras["all"]
+ extras["testing"]
+ extras["quality"]
+ extras["ja"]
+ extras["docs"]
+ extras["docs_specific"]
+ extras["sklearn"]
+ extras["modelcreation"]
)
Expand Down

0 comments on commit 97ccf67

Please sign in to comment.