scripts: add new min_requirements.py script

This call into the "old" script that has been moved to the framework
repository. The *.requirements.txt files are kept on this repo though.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2024-12-19 16:42:00 +01:00
parent 3285e30939
commit 4efa5f05d5

15
scripts/min_requirements.py Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python3
"""Install all the required Python packages, with the minimum Python version.
"""
# Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
import os
import framework_scripts_path # pylint: disable=unused-import
from mbedtls_framework import min_requirements
DEFAULT_REQUIREMENTS_FILE = 'ci.requirements.txt'
min_requirements.main(os.path.join(os.path.dirname(__file__),
DEFAULT_REQUIREMENTS_FILE))