Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
97ccf67b
Unverified
Commit
97ccf67b
authored
Apr 08, 2021
by
Stas Bekman
Committed by
GitHub
Apr 08, 2021
Browse files
[setup] extras[docs] must include 'all' (#11148)
* extras[doc] must include 'all' * fix * better * regroup
parent
66446909
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
.circleci/config.yml
.circleci/config.yml
+2
-2
setup.py
setup.py
+14
-10
No files found.
.circleci/config.yml
View file @
97ccf67b
...
...
@@ -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
:
...
...
@@ -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
:
...
...
setup.py
View file @
97ccf67b
...
...
@@ -246,15 +246,7 @@ extras["testing"] = (
+
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"
]
=
(
...
...
@@ -267,12 +259,24 @@ extras["all"] = (
+
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"
]
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment