Skip to content

Commit e260227

Browse files
authored
feat: test Python 3.12 (#747)
1 parent 6e7a75e commit e260227

File tree

10 files changed

+66
-26
lines changed

10 files changed

+66
-26
lines changed

.github/workflows/ci_tests.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- 3.9
3131
- "3.10"
3232
- "3.11"
33+
- "3.12"
3334
- 3.x
3435
category:
3536
- local-slow
@@ -50,6 +51,7 @@ jobs:
5051
env:
5152
TOXENV: ${{ matrix.category }}
5253
run: tox -- -vv
54+
5355
upstream-py3:
5456
runs-on: ubuntu-latest
5557
strategy:
@@ -71,6 +73,7 @@ jobs:
7173
env:
7274
TOXENV: ${{ matrix.category }}
7375
run: tox -- -vv
76+
7477
upstream-py311:
7578
runs-on: ubuntu-latest
7679
strategy:

buildspec.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,27 @@ batch:
55
build-list:
66
- identifier: python3_7
77
buildspec: codebuild/python3.7.yml
8+
env:
9+
image: aws/codebuild/standard:5.0
810
- identifier: python3_8
911
buildspec: codebuild/python3.8.yml
12+
env:
13+
image: aws/codebuild/standard:5.0
1014
- identifier: python3_9
1115
buildspec: codebuild/python3.9.yml
16+
env:
17+
image: aws/codebuild/standard:5.0
1218
- identifier: python3_10
1319
buildspec: codebuild/python3.10.yml
14-
20+
env:
21+
image: aws/codebuild/standard:6.0
22+
- identifier: python3_11
23+
buildspec: codebuild/python3.11.yml
24+
env:
25+
image: aws/codebuild/standard:7.0
26+
- identifier: python3_12
27+
buildspec: codebuild/python3.12.yml
28+
env:
29+
image: aws/codebuild/standard:7.0
1530
- identifier: code_coverage
1631
buildspec: codebuild/coverage/coverage.yml

codebuild/python3.10.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ env:
1111
phases:
1212
install:
1313
runtime-versions:
14-
python: latest
14+
python: 3.10
1515
build:
1616
commands:
17-
- pyenv install 3.10.0
18-
- pyenv local 3.10.0
1917
- pip install "tox < 4.0"
2018
- tox

codebuild/python3.11.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py311-integ-slow"
6+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
7+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
8+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
9+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
10+
11+
phases:
12+
install:
13+
runtime-versions:
14+
python: 3.11
15+
build:
16+
commands:
17+
- pip install "tox < 4.0"
18+
- tox

codebuild/python3.12.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py312-integ-slow"
6+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
7+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
8+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
9+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
10+
11+
phases:
12+
install:
13+
runtime-versions:
14+
python: latest
15+
build:
16+
commands:
17+
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
18+
- pyenv install 3.12.0
19+
- pyenv local 3.12.0
20+
- pip install --upgrade pip
21+
- pip install setuptools
22+
- pip install "tox < 4.0"
23+
- tox

codebuild/python3.7.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,8 @@ env:
1111
phases:
1212
install:
1313
runtime-versions:
14-
python: latest
14+
python: 3.7
1515
build:
1616
commands:
17-
# The specific versions are manually installed
18-
# because they are not installed
19-
# by default in CodeBuild containers.
20-
# `pyenv` does not have
21-
# a nice way to just install
22-
# the latest patch version.
23-
# I have selected the current latest patch
24-
# rather than try
25-
# and manage a one-liner or script.
26-
# Testing every minor version
27-
# is too extreme at this time.
28-
# The choice of versions should be reviewed.
29-
- pyenv install 3.7.12
30-
- pyenv local 3.7.12
3117
- pip install "tox < 4.0"
3218
- tox

codebuild/python3.8.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ env:
1111
phases:
1212
install:
1313
runtime-versions:
14-
python: latest
14+
python: 3.8
1515
build:
1616
commands:
17-
- pyenv install 3.8.12
18-
- pyenv local 3.8.12
1917
- pip install "tox < 4.0"
2018
- tox

codebuild/python3.9.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ env:
1111
phases:
1212
install:
1313
runtime-versions:
14-
python: latest
14+
python: 3.9
1515
build:
1616
commands:
17-
- pyenv install 3.9.7
18-
- pyenv local 3.9.7
1917
- pip install "tox < 4.0"
2018
- tox

dev_requirements/ci-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
setuptools
12
tox==3.24.5

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310,311}-{local,integ,ddb,examples}-fast,
3+
py{37,38,39,310,311,312}-{local,integ,ddb,examples}-fast,
44
nocmk, sourcebuildcheck,
55
docs, bandit, doc8, readme,
66
flake8{,-tests,-examples}, pylint{,-tests,-examples},

0 commit comments

Comments
 (0)