blob: 4bb41e5136fe6b7b5b51b5a480249e23c503a26c [file] [log] [blame]
Gilles Peskine9c82cd92021-11-17 19:13:34 +01001# Python package requirements for Mbed TLS testing.
2
Gilles Peskine87485a32021-11-17 19:17:03 +01003-r driver.requirements.txt
4
Gilles Peskine9c82cd92021-11-17 19:13:34 +01005# 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.
8pylint == 2.4.4
9
Gilles Peskine041a84d2024-09-23 19:16:47 +020010# Use a version of mypy that is compatible with our code base.
11# mypy <0.940 is known not to work: see commit
12# :/Upgrade mypy to the last version supporting Python 3.6
13# mypy >=0.960 is known not to work:
14# https://github.com/Mbed-TLS/mbedtls-framework/issues/50
15# mypy 0.942 is the version in Ubuntu 22.04.
16mypy == 0.942
Pengyu Lv13815982023-04-25 14:55:38 +080017
Gilles Peskine7990a322023-08-22 17:27:00 +020018# At the time of writing, only needed for tests/scripts/audit-validity-dates.py.
Bence Szépkúti45611642025-07-16 13:23:18 +020019# It needs >=35.0.0 for correct operation, and that requires Python >=3.6.
Bence Szépkúti9dda0ca2025-07-16 13:33:17 +020020# >=35.0.0 also requires Rust to build from source, which we are forced to do on
21# FreeBSD, since PyPI doesn't carry binary wheels for the BSDs.
22# Disable on FreeBSD until we get a Rust toolchain up and running on the CI.
23cryptography >= 35.0.0; platform_system != 'FreeBSD'
Jerry Yu974be512023-10-24 15:42:30 +080024
David Horstmanndcf18dd2024-06-11 17:44:00 +010025# For building `framework/data_files/server9-bad-saltlen.crt` and check python
Jerry Yu974be512023-10-24 15:42:30 +080026# files.
27asn1crypto