mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-06-05 21:15:16 +00:00
Add Python requirements from framework/util
Any `all.sh` component that runs a script that requires a more recent version of Python must have a `support_xxx` function that checks for the requisite Python version or package. At this time, there is no such requirement yet in the mbedtls repository. The directory `framework/util` is not yet checked by `pylint` or `mypy`, because we use older versions of these tools that don't work well with modern Python versions. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -17,3 +17,9 @@ pylint == 2.4.4; platform_system == 'Linux'
|
|||||||
# https://github.com/Mbed-TLS/mbedtls-framework/issues/50
|
# https://github.com/Mbed-TLS/mbedtls-framework/issues/50
|
||||||
# mypy 0.942 is the version in Ubuntu 22.04.
|
# mypy 0.942 is the version in Ubuntu 22.04.
|
||||||
mypy == 0.942; platform_system == 'Linux'
|
mypy == 0.942; platform_system == 'Linux'
|
||||||
|
|
||||||
|
# More requirements for scripts in the framework that might not work in
|
||||||
|
# older versions of Python. Note that requirements that are not available
|
||||||
|
# in the oldest version of Python on our CI must be annodated with
|
||||||
|
# "python >= ...".
|
||||||
|
-r ../framework/util/requirements.txt
|
||||||
|
|||||||
@@ -14,6 +14,16 @@ component_check_recursion () {
|
|||||||
./framework/scripts/recursion.pl library/*.c
|
./framework/scripts/recursion.pl library/*.c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
support_check_generated_files () {
|
||||||
|
# Add requirements on the Python installation here for
|
||||||
|
# the sake of check_committed_generated_files.py in mbedtls.
|
||||||
|
#
|
||||||
|
# Check the Python version, not the presence of the package,
|
||||||
|
# because the CI runs `all.sh --list-components` outside of the
|
||||||
|
# venv that has our desired packages.
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
component_check_generated_files () {
|
component_check_generated_files () {
|
||||||
msg "Check make_generated_files.py consistency"
|
msg "Check make_generated_files.py consistency"
|
||||||
$MAKE_COMMAND neat
|
$MAKE_COMMAND neat
|
||||||
|
|||||||
Reference in New Issue
Block a user