Skip to content

Commit 599ba52

Browse files
committed
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
1 parent 0eddb8a commit 599ba52

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ cscope.*
1717
ssh_server_tests/.env
1818
/.cover
1919
built_artifacts/
20+
component-tests/.venv

.teamcity/windows/component-test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if ($LASTEXITCODE -ne 0) { throw "Failed unit tests" }
3737

3838
Write-Output "Running component tests"
3939

40-
python -m pip --disable-pip-version-check install --upgrade -r component-tests/requirements.txt
40+
python -m pip --disable-pip-version-check install --upgrade -r component-tests/requirements.txt --use-pep517
4141
python component-tests/setup.py --type create
4242
python -m pytest component-tests -o log_cli=true --log-cli-level=INFO
4343
if ($LASTEXITCODE -ne 0) {

component-tests/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Requirements
2-
1. Python 3.7 or later with packages in the given `requirements.txt`
3-
- E.g. with conda:
4-
- `conda create -n component-tests python=3.7`
5-
- `conda activate component-tests`
6-
- `pip3 install -r requirements.txt`
2+
1. Python 3.10 or later with packages in the given `requirements.txt`
3+
- E.g. with venv:
4+
- `python3 -m venv ./.venv`
5+
- `source ./.venv/bin/activate`
6+
- `python3 -m pip install -r requirements.txt`
77

88
2. Create a config yaml file, for example:
99
```

0 commit comments

Comments
 (0)