Gilles Peskine | 9c82cd9 | 2021-11-17 19:13:34 +0100 | [diff] [blame] | 1 | # Python package requirements for Mbed TLS testing. |
| 2 | |
Gilles Peskine | 87485a3 | 2021-11-17 19:17:03 +0100 | [diff] [blame] | 3 | -r driver.requirements.txt |
| 4 | |
Gilles Peskine | 9c82cd9 | 2021-11-17 19:13:34 +0100 | [diff] [blame] | 5 | # Use a known version of Pylint, because new versions tend to add warnings |
| 6 | # that could start rejecting our code. |
| 7 | # 2.4.4 is the version in Ubuntu 20.04. It supports Python >=3.5. |
| 8 | pylint == 2.4.4 |
| 9 | |
| 10 | # Use the earliest version of mypy that works with our code base. |
Dave Rodgman | 017a199 | 2022-03-31 14:07:01 +0100 | [diff] [blame] | 11 | # See https://github.com/Mbed-TLS/mbedtls/pull/3953 . |
Gilles Peskine | 9c82cd9 | 2021-11-17 19:13:34 +0100 | [diff] [blame] | 12 | mypy >= 0.780 |
Pengyu Lv | 1381598 | 2023-04-25 14:55:38 +0800 | [diff] [blame] | 13 | |
| 14 | # Install cryptography to avoid import-error reported by pylint. |
| 15 | # What we really need is cryptography >= 35.0.0, which is only |
| 16 | # available for Python >= 3.6. |
Pengyu Lv | eb2c39e | 2023-05-09 02:15:58 +0000 | [diff] [blame^] | 17 | cryptography >= 35.0.0; sys_platform == 'linux' and python_version >= '3.6' |
| 18 | cryptography; sys_platform == 'linux' and python_version < '3.6' |