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
edd3721c
Unverified
Commit
edd3721c
authored
Oct 27, 2020
by
Stas Bekman
Committed by
GitHub
Oct 27, 2020
Browse files
update/add setup targets (#8076)
parent
55bc0c59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
setup.py
setup.py
+12
-2
No files found.
setup.py
View file @
edd3721c
...
...
@@ -44,6 +44,7 @@ To create the package for pypi.
9. Update README.md to redirect to correct documentation.
"""
import
os
import
shutil
from
pathlib
import
Path
...
...
@@ -87,11 +88,15 @@ extras["tf-cpu"] = [
# "keras2onnx @ git+git://github.com/onnx/keras-onnx.git@cbdc75cb950b16db7f0a67be96a278f8d2953b48#egg=keras2onnx",
]
extras
[
"torch"
]
=
[
"torch>=1.0"
]
extras
[
"flax"
]
=
[
"jaxlib==0.1.55"
,
"jax>=0.2.0"
,
"flax==0.2.2"
]
if
os
.
name
==
"nt"
:
# windows
extras
[
"flax"
]
=
[]
# jax is not supported on windows
extras
[
"tokenizers"
]
=
[
"tokenizers==0.9.2"
]
extras
[
"onnxruntime"
]
=
[
"onnxruntime>=1.4.0"
,
"onnxruntime-tools>=1.4.2"
]
extras
[
"serving"
]
=
[
"pydantic"
,
"uvicorn"
,
"fastapi"
,
"starlette"
]
extras
[
"all"
]
=
extras
[
"serving"
]
+
[
"tensorflow"
,
"torch"
]
extras
[
"sentencepiece"
]
=
[
"sentencepiece!=0.1.92"
]
extras
[
"retrieval"
]
=
[
"faiss-cpu"
,
"datasets"
]
...
...
@@ -99,7 +104,12 @@ extras["testing"] = ["pytest", "pytest-xdist", "timeout-decorator", "parameteriz
# sphinx-rtd-theme==0.5.0 introduced big changes in the style.
extras
[
"docs"
]
=
[
"recommonmark"
,
"sphinx"
,
"sphinx-markdown-tables"
,
"sphinx-rtd-theme==0.4.3"
,
"sphinx-copybutton"
]
extras
[
"quality"
]
=
[
"black >= 20.8b1"
,
"isort >= 5.5.4"
,
"flake8 >= 3.8.3"
]
extras
[
"dev"
]
=
extras
[
"testing"
]
+
extras
[
"quality"
]
+
extras
[
"ja"
]
+
[
"scikit-learn"
,
"tensorflow"
,
"torch"
,
"sentencepiece!=0.1.92"
]
extras
[
"all"
]
=
extras
[
"tf"
]
+
extras
[
"torch"
]
+
extras
[
"flax"
]
+
extras
[
"sentencepiece"
]
+
extras
[
"tokenizers"
]
extras
[
"dev"
]
=
extras
[
"all"
]
+
extras
[
"testing"
]
+
extras
[
"quality"
]
+
extras
[
"ja"
]
+
extras
[
"docs"
]
+
extras
[
"sklearn"
]
setup
(
name
=
"transformers"
,
...
...
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