| 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 |  | 
| Bence Szépkúti | 5956d28 | 2025-07-16 14:18:12 +0200 | [diff] [blame] | 5 | # The dependencies below are only used in scripts that we run on the Linux CI. | 
|  | 6 |  | 
| Gilles Peskine | 9c82cd9 | 2021-11-17 19:13:34 +0100 | [diff] [blame] | 7 | # Use a known version of Pylint, because new versions tend to add warnings | 
|  | 8 | # that could start rejecting our code. | 
|  | 9 | # 2.4.4 is the version in Ubuntu 20.04. It supports Python >=3.5. | 
| Bence Szépkúti | 5956d28 | 2025-07-16 14:18:12 +0200 | [diff] [blame] | 10 | pylint == 2.4.4; platform_system == 'Linux' | 
| Gilles Peskine | 9c82cd9 | 2021-11-17 19:13:34 +0100 | [diff] [blame] | 11 |  | 
| Gilles Peskine | 041a84d | 2024-09-23 19:16:47 +0200 | [diff] [blame] | 12 | # Use a version of mypy that is compatible with our code base. | 
|  | 13 | # mypy <0.940 is known not to work: see commit | 
|  | 14 | #  :/Upgrade mypy to the last version supporting Python 3.6 | 
|  | 15 | # mypy >=0.960 is known not to work: | 
|  | 16 | #   https://github.com/Mbed-TLS/mbedtls-framework/issues/50 | 
|  | 17 | # mypy 0.942 is the version in Ubuntu 22.04. | 
| Bence Szépkúti | 5956d28 | 2025-07-16 14:18:12 +0200 | [diff] [blame] | 18 | mypy == 0.942; platform_system == 'Linux' | 
| Pengyu Lv | 1381598 | 2023-04-25 14:55:38 +0800 | [diff] [blame] | 19 |  | 
| Gilles Peskine | 7990a32 | 2023-08-22 17:27:00 +0200 | [diff] [blame] | 20 | # At the time of writing, only needed for tests/scripts/audit-validity-dates.py. | 
| Bence Szépkúti | 4561164 | 2025-07-16 13:23:18 +0200 | [diff] [blame] | 21 | # It needs >=35.0.0 for correct operation, and that requires Python >=3.6. | 
| Bence Szépkúti | 9dda0ca | 2025-07-16 13:33:17 +0200 | [diff] [blame] | 22 | # >=35.0.0 also requires Rust to build from source, which we are forced to do on | 
|  | 23 | # FreeBSD, since PyPI doesn't carry binary wheels for the BSDs. | 
| Bence Szépkúti | 5956d28 | 2025-07-16 14:18:12 +0200 | [diff] [blame] | 24 | cryptography >= 35.0.0; platform_system == 'Linux' | 
| Jerry Yu | 974be51 | 2023-10-24 15:42:30 +0800 | [diff] [blame] | 25 |  | 
| David Horstmann | dcf18dd | 2024-06-11 17:44:00 +0100 | [diff] [blame] | 26 | # For building `framework/data_files/server9-bad-saltlen.crt` and check python | 
| Jerry Yu | 974be51 | 2023-10-24 15:42:30 +0800 | [diff] [blame] | 27 | # files. | 
| Bence Szépkúti | 5956d28 | 2025-07-16 14:18:12 +0200 | [diff] [blame] | 28 | asn1crypto; platform_system == 'Linux' |