Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
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:
...
@@ -348,7 +348,7 @@ jobs:
-
v0.4-{{ checksum "setup.py" }}
-
v0.4-{{ checksum "setup.py" }}
-
run
:
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
-
run
:
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
-
run
:
pip install --upgrade pip
-
run
:
pip install --upgrade pip
-
run
:
pip install ."[
all,
docs]"
-
run
:
pip install ."[docs]"
-
save_cache
:
-
save_cache
:
key
:
v0.4-build_doc-{{ checksum "setup.py" }}
key
:
v0.4-build_doc-{{ checksum "setup.py" }}
paths
:
paths
:
...
@@ -370,7 +370,7 @@ jobs:
...
@@ -370,7 +370,7 @@ jobs:
keys
:
keys
:
-
v0.4-deploy_doc-{{ checksum "setup.py" }}
-
v0.4-deploy_doc-{{ checksum "setup.py" }}
-
v0.4-{{ checksum "setup.py" }}
-
v0.4-{{ checksum "setup.py" }}
-
run
:
pip install ."[
all,
docs]"
-
run
:
pip install ."[docs]"
-
save_cache
:
-
save_cache
:
key
:
v0.4-deploy_doc-{{ checksum "setup.py" }}
key
:
v0.4-deploy_doc-{{ checksum "setup.py" }}
paths
:
paths
:
...
...
setup.py
View file @
97ccf67b
...
@@ -246,15 +246,7 @@ extras["testing"] = (
...
@@ -246,15 +246,7 @@ extras["testing"] = (
+
extras
[
"retrieval"
]
+
extras
[
"retrieval"
]
+
extras
[
"modelcreation"
]
+
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
[
"quality"
]
=
deps_list
(
"black"
,
"isort"
,
"flake8"
)
extras
[
"all"
]
=
(
extras
[
"all"
]
=
(
...
@@ -267,12 +259,24 @@ extras["all"] = (
...
@@ -267,12 +259,24 @@ extras["all"] = (
+
extras
[
"vision"
]
+
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
[
"dev"
]
=
(
extras
[
"all"
]
extras
[
"all"
]
+
extras
[
"testing"
]
+
extras
[
"testing"
]
+
extras
[
"quality"
]
+
extras
[
"quality"
]
+
extras
[
"ja"
]
+
extras
[
"ja"
]
+
extras
[
"docs"
]
+
extras
[
"docs
_specific
"
]
+
extras
[
"sklearn"
]
+
extras
[
"sklearn"
]
+
extras
[
"modelcreation"
]
+
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