Skip to content

Commit

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

Signed-off-by: gageorgiev <[email protected]>
  • Loading branch information
gageorgiev committed Nov 19, 2021
1 parent 7855ccd commit 0da164a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
6 changes: 5 additions & 1 deletion projects/vdk-control-cli/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion projects/vdk-control-cli/setup.cfg
Original file line number Diff line number Diff line change
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
8 changes: 8 additions & 0 deletions projects/vdk-core/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ image: "python:3.9"
stage: build
before_script:
- cd projects/vdk-core/
- pip install -U pip
- pip install --extra-index-url $PIP_EXTRA_INDEX_URL -r requirements.txt
script:
- ./cicd/build.sh
Expand Down Expand Up @@ -45,6 +46,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 +84,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
1 change: 1 addition & 0 deletions projects/vdk-core/plugins/.plugin-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
stage: build
before_script:
- cd projects/vdk-core/
- pip install -U pip
script:
- echo "Build plugin $PLUGIN_NAME"
- cd plugins/$PLUGIN_NAME || exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ build-py39-vdk-plugin-control-cli:
extends: .build-vdk-plugin-control-cli
image: "python:3.9"

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


release-vdk-plugin-control-cli:
variables:
Expand Down
1 change: 1 addition & 0 deletions projects/vdk-core/plugins/vdk-plugin-control-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
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 0da164a

Please sign in to comment.