Skip to content

Commit 222090a

Browse files
committed
Restrict CI-specific python requirements to Linux
The dependencies declared in ci.requirements.txt are only used in scripts that we run on the Linux CI. Signed-off-by: Bence Szépkúti <[email protected]>
1 parent 9ecab50 commit 222090a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/ci.requirements.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22

33
-r driver.requirements.txt
44

5+
# The dependencies below are only used in scripts that we run on the Linux CI.
6+
57
# Use a known version of Pylint, because new versions tend to add warnings
68
# that could start rejecting our code.
79
# 2.4.4 is the version in Ubuntu 20.04. It supports Python >=3.5.
8-
pylint == 2.4.4
10+
pylint == 2.4.4; platform_system == 'Linux'
911

1012
# Use a version of mypy that is compatible with our code base.
1113
# mypy <0.940 is known not to work: see commit
1214
# :/Upgrade mypy to the last version supporting Python 3.6
1315
# mypy >=0.960 is known not to work:
1416
# https://github.com/Mbed-TLS/mbedtls-framework/issues/50
1517
# mypy 0.942 is the version in Ubuntu 22.04.
16-
mypy == 0.942
18+
mypy == 0.942; platform_system == 'Linux'
1719

1820
# At the time of writing, only needed for tests/scripts/audit-validity-dates.py.
1921
# It needs >=35.0.0 for correct operation, and that requires Python >=3.6.
2022
# >=35.0.0 also requires Rust to build from source, which we are forced to do on
2123
# 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.
23-
cryptography >= 35.0.0; platform_system != 'FreeBSD'
24+
cryptography >= 35.0.0; platform_system == 'Linux'
2425

2526
# For building `framework/data_files/server9-bad-saltlen.crt` and check python
2627
# files.
27-
asn1crypto
28+
asn1crypto; platform_system == 'Linux'

0 commit comments

Comments
 (0)