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 | |
Gilles Peskine | 7990a32 | 2023-08-22 17:27:00 +0200 | [diff] [blame] | 14 | # At the time of writing, only needed for tests/scripts/audit-validity-dates.py. |
| 15 | # It needs >=35.0.0 for correct operation, and that requires Python >=3.6, |
| 16 | # but our CI has Python 3.5. So let pip install the newest version that's |
| 17 | # compatible with the running Python: this way we get something good enough |
| 18 | # for mypy and pylint under Python 3.5, and we also get something good enough |
| 19 | # to run audit-validity-dates.py on Python >=3.6. |
Gilles Peskine | dc23236 | 2023-06-16 17:05:22 +0200 | [diff] [blame] | 20 | cryptography # >= 35.0.0 |
Jerry Yu | 974be51 | 2023-10-24 15:42:30 +0800 | [diff] [blame] | 21 | |
| 22 | # For building `tests/data_files/server9-bad-saltlen.crt` and check python |
| 23 | # files. |
| 24 | asn1crypto |