diff options
author | Xianyuan Jia <xianyuanjia@google.com> | 2022-04-18 10:38:34 -0700 |
---|---|---|
committer | Tina Lu <lutina@google.com> | 2022-05-05 01:52:11 +0000 |
commit | b56c0379d7cce9fe2e552dac54fd14b2e9317298 (patch) | |
tree | 765026219990b6bd0d8b02bfdcb4d9a133241090 | |
parent | 542c2dee16482f35b3be548aa9e4d06029e744b2 (diff) | |
download | connectivity-b56c0379d7cce9fe2e552dac54fd14b2e9317298.tar.gz |
[DO NOT MERGE]Cherry-pick "Set typing_extensions to version 4.1.1; sort install-requires" from AOSP
Bug: 229623837
Test: local
Change-Id: I8fcc857ed02e598c996238d5f4d0884f43675787
(cherry picked from commit 9f6487eda36c542ae004cf9a9dc60f8b0b54b791)
-rwxr-xr-x | acts/framework/setup.py | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/acts/framework/setup.py b/acts/framework/setup.py index 6846b78c2..dde902541 100755 --- a/acts/framework/setup.py +++ b/acts/framework/setup.py @@ -24,44 +24,52 @@ import sys install_requires = [ 'backoff', + 'dlipower', # Future needs to have a newer version that contains urllib. 'future>=0.16.0', + 'grpcio', + 'mobly>=1.10.0', # Latest version of mock (4.0.0b) causes a number of compatibility issues with ACTS unit tests # b/148695846, b/148814743 'mock==3.0.5', + 'Monsoon', + # paramiko-ng is needed vs paramiko as currently paramiko does not support + # ed25519 ssh keys, which is what Fuchsia uses. + 'paramiko-ng', + 'protobuf>=3.14.0', + 'pylibftdi', + 'pynacl==1.4.0', 'pyserial', 'pyyaml>=5.1', - 'protobuf>=3.14.0', - 'retry', 'requests', + 'retry', 'scapy', - 'pylibftdi', + 'usbinfo', 'xlsxwriter', - 'mobly>=1.10.0', - 'grpcio', - 'Monsoon', - # paramiko-ng is needed vs paramiko as currently paramiko does not support - # ed25519 ssh keys, which is what Fuchsia uses. - 'paramiko-ng', - 'dlipower', 'zeroconf' ] +versioned_deps = { + 'numpy': 'numpy', + 'scipy': 'scipy' +} + # numpy and scipy version matrix per: # https://docs.scipy.org/doc/scipy/reference/toolchain.html +if sys.version_info < (3, 8): + versioned_deps['numpy'] = 'numpy<1.22' + versioned_deps['scipy'] = 'scipy<1.8' + +if sys.version_info < (3, 7): + versioned_deps['numpy'] = 'numpy<1.20' + versioned_deps['scipy'] = 'scipy<1.6' + versioned_deps['typing_extensions'] = 'typing_extensions==4.1.1' + if sys.version_info < (3, 6): - # Python <= 3.5 uses scipy up to 1.4 and numpy up to 1.18.x - # b/157117302:Monsoon dependency - install_requires.append('scipy<1.5') - install_requires.append('numpy<1.19') -elif sys.version_info < (3, 7): - # Python 3.6 uses scipy up to 1.5 and numpy up to 1.19.x - install_requires.append('scipy<1.6') - install_requires.append('numpy==1.18.1') -else: - # Python 3.7+ is supported by latest scipy and numpy - install_requires.append('scipy') - install_requires.append('numpy') + versioned_deps['numpy'] = 'numpy<1.19' + versioned_deps['scipy'] = 'scipy<1.5' + +install_requires += list(versioned_deps.values()) if sys.version_info < (3, ): install_requires.append('enum34') |