[MO] Add check for Python version to NetworkX dependency (#9226)

* Add check for python version to networkx dependency

* Update condition, task CVS-72806

* Update check to not break old Python versions support

* Update POT NetworkX dependency

* Allign requirements list format with setuptools documentation
This commit is contained in:
Anton Chetverikov 2021-12-29 16:26:40 +03:00 committed by GitHub
parent 4505f5d7e2
commit adce58d126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 15 deletions

View File

@ -1,7 +1,8 @@
tensorflow~=2.5.0
mxnet~=1.2.0; sys_platform == 'win32'
mxnet~=1.7.0.post2; sys_platform != 'win32'
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
protobuf>=3.15.6
onnx>=1.8.1

View File

@ -1,4 +1,5 @@
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
protobuf>=3.15.6
defusedxml>=0.7.1

View File

@ -1,4 +1,5 @@
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1

View File

@ -1,6 +1,7 @@
mxnet~=1.2.0; sys_platform == 'win32'
mxnet~=1.7.0.post2; sys_platform != 'win32'
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
urllib3>=1.26.4

View File

@ -1,5 +1,6 @@
onnx>=1.8.1
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1

View File

@ -1,5 +1,6 @@
tensorflow~=2.5.0
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1

View File

@ -1,5 +1,6 @@
tensorflow~=2.5.0
networkx~=2.5
networkx~=2.5; python_version <= "3.6"
networkx~=2.6; python_version > "3.6"
numpy>=1.16.6,<1.20
defusedxml>=0.7.1
requests>=2.25.1

View File

@ -45,14 +45,15 @@ if '--install-dev-extras' in sys.argv:
sys.argv.remove('--install-dev-extras')
INSTALL_REQUIRES = [
'scipy~=1.5.4',
'jstyleson~=0.0.2',
'numpy>=1.16.6,<1.20',
'addict>=2.4.0',
'networkx~=2.5',
'tqdm>=4.54.1',
'texttable~=1.6.3',
'pandas~=1.1.5',
"scipy~=1.5.4",
"jstyleson~=0.0.2",
"numpy>=1.16.6,<1.20",
"addict>=2.4.0",
"networkx~=2.5;python_version<='3.6'",
"networkx~=2.6;python_version>'3.6'",
"tqdm>=4.54.1",
"texttable~=1.6.3",
"pandas~=1.1.5",
]
ALGO_EXTRAS = [