Skip to content

Commit

Permalink
vdk-core: Support Python 3.10 (#528)
Browse files Browse the repository at this point in the history
This change makes it so vdk-core supports Python 3.10.
Addresses #390

Signed-off-by: gageorgiev [email protected]
  • Loading branch information
gageorgiev authored Nov 22, 2021
1 parent 2816cb3 commit 6245ce0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion projects/vdk-core/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ image: "python:3.9"
stage: build
before_script:
- cd projects/vdk-core/
- pip install --extra-index-url $PIP_EXTRA_INDEX_URL -r requirements.txt
script:
- ./cicd/build.sh
retry: !reference [.retry, retry_options]
Expand All @@ -45,6 +44,10 @@ vdk-core-build_with_py39:
image: "python:3.9"
extends: .vdk-core-build

vdk-core-build_with_py310:
image: "python:3.10"
extends: .vdk-core-build


.vdk-core-simple_func_test:
services:
Expand Down Expand Up @@ -79,6 +82,9 @@ vdk-core-simple_func_test_with_py39:
image: "python:3.9"
extends: .vdk-core-simple_func_test

vdk-core-simple_func_test_with_py310:
image: "python:3.10"
extends: .vdk-core-simple_func_test

vdk-core-release:
stage: release
Expand Down
3 changes: 3 additions & 0 deletions projects/vdk-core/cicd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ cd ..

export PIP_EXTRA_INDEX_URL=${PIP_EXTRA_INDEX_URL:-https://test.pypi.org/simple/}

echo "Update pip to newest version"
pip install -U pip

echo "install dependencies from requirements.txt (used for development and testing)"
pip install --extra-index-url $PIP_EXTRA_INDEX_URL -r requirements.txt

Expand Down
3 changes: 2 additions & 1 deletion projects/vdk-core/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,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 All @@ -51,7 +52,7 @@ install_requires =
tenacity

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



Expand Down

0 comments on commit 6245ce0

Please sign in to comment.