Skip to content

feat: test Python 3.12 #747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- 3.9
- "3.10"
- "3.11"
- "3.12"
- 3.x
category:
- local-slow
Expand All @@ -50,6 +51,7 @@ jobs:
env:
TOXENV: ${{ matrix.category }}
run: tox -- -vv

upstream-py3:
runs-on: ubuntu-latest
strategy:
Expand All @@ -71,6 +73,7 @@ jobs:
env:
TOXENV: ${{ matrix.category }}
run: tox -- -vv

upstream-py311:
runs-on: ubuntu-latest
strategy:
Expand Down
17 changes: 16 additions & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,27 @@ batch:
build-list:
- identifier: python3_7
buildspec: codebuild/python3.7.yml
env:
image: aws/codebuild/standard:5.0
- identifier: python3_8
buildspec: codebuild/python3.8.yml
env:
image: aws/codebuild/standard:5.0
- identifier: python3_9
buildspec: codebuild/python3.9.yml
env:
image: aws/codebuild/standard:5.0
- identifier: python3_10
buildspec: codebuild/python3.10.yml

env:
image: aws/codebuild/standard:6.0
- identifier: python3_11
buildspec: codebuild/python3.11.yml
env:
image: aws/codebuild/standard:7.0
- identifier: python3_12
buildspec: codebuild/python3.12.yml
env:
image: aws/codebuild/standard:7.0
- identifier: code_coverage
buildspec: codebuild/coverage/coverage.yml
4 changes: 1 addition & 3 deletions codebuild/python3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.10
build:
commands:
- pyenv install 3.10.0
- pyenv local 3.10.0
- pip install "tox < 4.0"
- tox
18 changes: 18 additions & 0 deletions codebuild/python3.11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 0.2

env:
variables:
TOXENV: "py311-integ-slow"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2

phases:
install:
runtime-versions:
python: 3.11
build:
commands:
- pip install "tox < 4.0"
- tox
23 changes: 23 additions & 0 deletions codebuild/python3.12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 0.2

env:
variables:
TOXENV: "py312-integ-slow"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2

phases:
install:
runtime-versions:
python: latest
build:
commands:
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
- pyenv install 3.12.0
- pyenv local 3.12.0
- pip install --upgrade pip
- pip install setuptools
- pip install "tox < 4.0"
- tox
16 changes: 1 addition & 15 deletions codebuild/python3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.7
build:
commands:
# The specific versions are manually installed
# because they are not installed
# by default in CodeBuild containers.
# `pyenv` does not have
# a nice way to just install
# the latest patch version.
# I have selected the current latest patch
# rather than try
# and manage a one-liner or script.
# Testing every minor version
# is too extreme at this time.
# The choice of versions should be reviewed.
- pyenv install 3.7.12
- pyenv local 3.7.12
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/python3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.8
build:
commands:
- pyenv install 3.8.12
- pyenv local 3.8.12
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/python3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.9
build:
commands:
- pyenv install 3.9.7
- pyenv local 3.9.7
- pip install "tox < 4.0"
- tox
1 change: 1 addition & 0 deletions dev_requirements/ci-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
setuptools
tox==3.24.5
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311}-{local,integ,ddb,examples}-fast,
py{37,38,39,310,311,312}-{local,integ,ddb,examples}-fast,
nocmk, sourcebuildcheck,
docs, bandit, doc8, readme,
flake8{,-tests,-examples}, pylint{,-tests,-examples},
Expand Down