Skip to content

Commit

Permalink
vdk-control-cli: Support 3.10
Browse files Browse the repository at this point in the history
This change enables support for Python 3.10.

Signed-off-by: gageorgiev <gageorgiev@vmware.com>
  • Loading branch information
gageorgiev committed Nov 19, 2021
1 parent 7855ccd commit 74a7e44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions projects/vdk-control-cli/.gitlab-ci.yml
Expand Up @@ -9,7 +9,7 @@ image: "python:3.9"
.vdk-control-cli-build:
stage: build
before_script:
- cd projects/vdk-control-cli
- cd projects/vdk-control-cli # - pip install --upgrade pytest pip # TODO: REMOVE THIS AT SOME POINT
script:
- ./cicd/build.sh
only:
Expand All @@ -24,7 +24,7 @@ image: "python:3.9"


# Run in different environments
# VDK Control CLI currently supports Python 3.7 and 3.8 and 3.9
# VDK Control CLI currently supports Python 3.7, 3.8, 3.9 and 3.10
vdk-control-cli-build-with-py37:
image: "python:3.7"
extends: .vdk-control-cli-build
Expand All @@ -37,6 +37,10 @@ vdk-control-cli-build-with-py39:
image: "python:3.9"
extends: .vdk-control-cli-build

vdk-control-cli-build-with-py310:
image: "python:3.10"
extends: .vdk-control-cli-build

vdk-control-cli-release-acceptance-test:
stage: pre_release
before_script:
Expand Down
1 change: 1 addition & 0 deletions projects/vdk-control-cli/cicd/build.sh
Expand Up @@ -30,6 +30,7 @@ pip install -e .

echo "Run unit tests and generate coverage report"
pip install pytest-cov
pip install pytest==6.2.4 # TODO: there is some regression with the newest version, remove this when possible
pytest --junitxml=tests.xml --cov taurus --cov-report term-missing --cov-report xml:coverage.xml

echo "Done"
3 changes: 2 additions & 1 deletion projects/vdk-control-cli/setup.cfg
Expand Up @@ -26,6 +26,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

[options]
zip_safe = False
Expand Down Expand Up @@ -57,7 +58,7 @@ install_requires =
urllib3>=1.26.5

# Require a specific Python version
python_requires = >=3.7, <3.10
python_requires = >=3.7, <3.11

[options.packages.find]
where = src
Expand Down

0 comments on commit 74a7e44

Please sign in to comment.