blob: 3ddc417051b4114af186f4d2dfa69c1dc9d057aa [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
10# Use the earliest version of mypy that works with our code base.
Dave Rodgman017a1992022-03-31 14:07:01 +010011# See https://github.com/Mbed-TLS/mbedtls/pull/3953 .
Gilles Peskine9c82cd92021-11-17 19:13:34 +010012mypy >= 0.780
Pengyu Lv13815982023-04-25 14:55:38 +080013
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 Lveb2c39e2023-05-09 02:15:58 +000017cryptography >= 35.0.0; sys_platform == 'linux' and python_version >= '3.6'
18cryptography; sys_platform == 'linux' and python_version < '3.6'