Skip to content

Commit

Permalink
DPNLPF-1758: make requirements soft to tensorflow, scikit-learn and k…
Browse files Browse the repository at this point in the history
…eras (#39)

* DPNLPF-1758: make requirements soft to tensorflow and keras

* DPNLPF-1758: update supported versions of Python

* DPNLPF-1758: make dependencies on tensorflow keras scikit-learn soft
  • Loading branch information
SyrexMinus authored Aug 22, 2022
1 parent 4779cba commit a14f3cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ____

* Linux, Mac OS или Windows (необходима установка [Conda](https://docs.conda.io/en/latest/)).
* 512 МБ свободной памяти.
* Python 3.6.8 - 3.9.6.
* Python 3.8.0 - 3.9.6.

____

Expand Down
17 changes: 8 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

def tf_version():
if sys.platform == "darwin" and platform.machine() == "arm64":
return "tensorflow-macos==2.9.1"
return "tensorflow-macos>=2.6.0"
elif sys.platform == "darwin" and platform.machine() == "x86_64":
return "tensorflow==2.9.1"
return "tensorflow>=2.6.0"
elif sys.platform == "linux" and platform.machine() == "x86_64":
return "tensorflow==2.9.1"
return "tensorflow>=2.6.0"
elif sys.platform == "linux" and platform.machine() == "aarch64":
return "tensorflow-aarch64==2.9.1"
return "tensorflow==2.9.1"
return "tensorflow-aarch64>=2.6.0"
return "tensorflow>=2.6.0"


setup(
Expand All @@ -43,7 +43,7 @@ def tf_version():
"dill==0.3.3",
"ics==0.6",
"Jinja2==3.0.3",
"keras==2.9.0",
"keras>=2.6.0",
"lazy",
"nltk==3.5",
"numpy",
Expand All @@ -59,7 +59,7 @@ def tf_version():
"redis",
"requests==2.22.0",
"rusenttokenize==0.0.5",
"scikit-learn==1.1.1",
"scikit-learn>=0.24.1",
"setuptools",
"tabulate",
"tatsu==4.4.0",
Expand All @@ -71,8 +71,7 @@ def tf_version():
"protobuf<4.21.0" # https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
],
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"
]
)

0 comments on commit a14f3cc

Please sign in to comment.