blob: 2ab7ba98da8aa948858d96abd8a23589781e2c6b [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
Bence Szépkúti5956d282025-07-16 14:18:12 +02005# The dependencies below are only used in scripts that we run on the Linux CI.
6
Gilles Peskine9c82cd92021-11-17 19:13:34 +01007# 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úti5956d282025-07-16 14:18:12 +020010pylint == 2.4.4; platform_system == 'Linux'
Gilles Peskine9c82cd92021-11-17 19:13:34 +010011
Gilles Peskine041a84d2024-09-23 19:16:47 +020012# 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úti5956d282025-07-16 14:18:12 +020018mypy == 0.942; platform_system == 'Linux'
Pengyu Lv13815982023-04-25 14:55:38 +080019
Gilles Peskine7990a322023-08-22 17:27:00 +020020# At the time of writing, only needed for tests/scripts/audit-validity-dates.py.
Bence Szépkúti45611642025-07-16 13:23:18 +020021# It needs >=35.0.0 for correct operation, and that requires Python >=3.6.
Bence Szépkúti9dda0ca2025-07-16 13:33:17 +020022# >=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úti5956d282025-07-16 14:18:12 +020024cryptography >= 35.0.0; platform_system == 'Linux'
Jerry Yu974be512023-10-24 15:42:30 +080025
David Horstmanndcf18dd2024-06-11 17:44:00 +010026# For building `framework/data_files/server9-bad-saltlen.crt` and check python
Jerry Yu974be512023-10-24 15:42:30 +080027# files.
Bence Szépkúti5956d282025-07-16 14:18:12 +020028asn1crypto; platform_system == 'Linux'