From a14f3cc50b8a496e8bf065ee1b6761195b10e840 Mon Sep 17 00:00:00 2001 From: Makar Shevchenko <57181871+SyrexMinus@users.noreply.github.com> Date: Mon, 22 Aug 2022 16:51:51 +0300 Subject: [PATCH] DPNLPF-1758: make requirements soft to tensorflow, scikit-learn and keras (#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 --- README.md | 2 +- setup.py | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0b40c3e4..b195ee7c 100644 --- a/README.md +++ b/README.md @@ -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. ____ diff --git a/setup.py b/setup.py index dc56a7cb..09def8aa 100644 --- a/setup.py +++ b/setup.py @@ -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( @@ -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", @@ -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", @@ -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" ] )