TUN-8708: Bump python min version to 3.10

With the recent bump of the windows CI to python 3.10, we will bump the minimum required python version for component testing to 3.10.

Closes TUN-8708
This commit is contained in:
Devin Carr 2024-10-31 13:33:24 -07:00
parent 0eddb8a615
commit 599ba52750
3 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ cscope.*
ssh_server_tests/.env ssh_server_tests/.env
/.cover /.cover
built_artifacts/ built_artifacts/
component-tests/.venv

View File

@ -37,7 +37,7 @@ if ($LASTEXITCODE -ne 0) { throw "Failed unit tests" }
Write-Output "Running component tests" Write-Output "Running component tests"
python -m pip --disable-pip-version-check install --upgrade -r component-tests/requirements.txt python -m pip --disable-pip-version-check install --upgrade -r component-tests/requirements.txt --use-pep517
python component-tests/setup.py --type create python component-tests/setup.py --type create
python -m pytest component-tests -o log_cli=true --log-cli-level=INFO python -m pytest component-tests -o log_cli=true --log-cli-level=INFO
if ($LASTEXITCODE -ne 0) { if ($LASTEXITCODE -ne 0) {

View File

@ -1,9 +1,9 @@
# Requirements # Requirements
1. Python 3.7 or later with packages in the given `requirements.txt` 1. Python 3.10 or later with packages in the given `requirements.txt`
- E.g. with conda: - E.g. with venv:
- `conda create -n component-tests python=3.7` - `python3 -m venv ./.venv`
- `conda activate component-tests` - `source ./.venv/bin/activate`
- `pip3 install -r requirements.txt` - `python3 -m pip install -r requirements.txt`
2. Create a config yaml file, for example: 2. Create a config yaml file, for example:
``` ```