Skip to content

Commit 93a67d8

Browse files
authored
feat: test Python 3.12 in CI (#623)
1 parent 3ba8019 commit 93a67d8

27 files changed

+237
-65
lines changed

Diff for: .github/workflows/ci_test-vector-handler.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- windows-latest
2222
- macos-latest
2323
python:
24-
- 3.7
2524
- 3.8
2625
- 3.x
2726
architecture:

Diff for: .github/workflows/ci_tests.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- 3.9
3434
- "3.10"
3535
- "3.11"
36-
- 3.x # Ideally, we would skip if 3.x is 3.11
36+
- "3.12"
37+
- 3.x
3738
architecture:
3839
- x64
3940
- x86

Diff for: buildspec.yml

+49
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,81 @@ batch:
55
build-list:
66
- identifier: py37_integ
77
buildspec: codebuild/py37/integ.yml
8+
env:
9+
image: aws/codebuild/standard:5.0
810
- identifier: py37_examples
911
buildspec: codebuild/py37/examples.yml
12+
env:
13+
image: aws/codebuild/standard:5.0
1014
- identifier: py37_awses_local
1115
buildspec: codebuild/py37/awses_local.yml
16+
env:
17+
image: aws/codebuild/standard:5.0
1218

1319
- identifier: py38_integ
1420
buildspec: codebuild/py38/integ.yml
21+
env:
22+
image: aws/codebuild/standard:5.0
1523
- identifier: py38_examples
1624
buildspec: codebuild/py38/examples.yml
25+
env:
26+
image: aws/codebuild/standard:5.0
1727
- identifier: py38_awses_local
1828
buildspec: codebuild/py38/awses_local.yml
29+
env:
30+
image: aws/codebuild/standard:5.0
1931

2032
- identifier: py39_integ
2133
buildspec: codebuild/py39/integ.yml
34+
env:
35+
image: aws/codebuild/standard:5.0
2236
- identifier: py39_examples
2337
buildspec: codebuild/py39/examples.yml
38+
env:
39+
image: aws/codebuild/standard:5.0
2440
- identifier: py39_awses_latest
41+
env:
42+
image: aws/codebuild/standard:5.0
2543

2644
- identifier: py310_integ
2745
buildspec: codebuild/py310/integ.yml
46+
env:
47+
image: aws/codebuild/standard:6.0
2848
- identifier: py310_examples
2949
buildspec: codebuild/py310/examples.yml
50+
env:
51+
image: aws/codebuild/standard:6.0
3052
- identifier: py310_awses_latest
3153
buildspec: codebuild/py310/awses_local.yml
54+
env:
55+
image: aws/codebuild/standard:6.0
3256

57+
- identifier: py311_integ
58+
buildspec: codebuild/py311/integ.yml
59+
env:
60+
image: aws/codebuild/standard:7.0
61+
- identifier: py311_examples
62+
buildspec: codebuild/py311/examples.yml
63+
env:
64+
image: aws/codebuild/standard:7.0
65+
- identifier: py311_awses_latest
66+
buildspec: codebuild/py311/awses_local.yml
67+
env:
68+
image: aws/codebuild/standard:7.0
3369

70+
- identifier: py312_integ
71+
buildspec: codebuild/py312/integ.yml
72+
env:
73+
image: aws/codebuild/standard:7.0
74+
- identifier: py312_examples
75+
buildspec: codebuild/py312/examples.yml
76+
env:
77+
image: aws/codebuild/standard:7.0
78+
- identifier: py312_awses_latest
79+
buildspec: codebuild/py312/awses_local.yml
80+
env:
81+
image: aws/codebuild/standard:7.0
82+
3483
- identifier: code_coverage
3584
buildspec: codebuild/coverage/coverage.yml
3685

Diff for: codebuild/py310/awses_local.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ env:
1717
phases:
1818
install:
1919
runtime-versions:
20-
python: latest
20+
python: 3.10
2121
build:
2222
commands:
23-
- pyenv install 3.10.0
24-
- pyenv local 3.10.0
2523
- pip install "tox < 4.0"
2624
- cd test_vector_handlers
2725
- tox

Diff for: codebuild/py310/examples.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ env:
1515
phases:
1616
install:
1717
runtime-versions:
18-
python: latest
18+
python: 3.10
1919
build:
2020
commands:
21-
- pyenv install 3.10.0
22-
- pyenv local 3.10.0
2321
- pip install "tox < 4.0"
2422
- tox

Diff for: codebuild/py310/integ.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ env:
1515
phases:
1616
install:
1717
runtime-versions:
18-
python: latest
18+
python: 3.10
1919
build:
2020
commands:
21-
- pyenv install 3.10.0
22-
- pyenv local 3.10.0
2321
- pip install "tox < 4.0"
2422
- tox

Diff for: codebuild/py311/awses_local.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py311-awses_local"
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+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
15+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"
16+
17+
phases:
18+
install:
19+
runtime-versions:
20+
python: 3.11
21+
build:
22+
commands:
23+
- pip install "tox < 4.0"
24+
- cd test_vector_handlers
25+
- tox

Diff for: codebuild/py311/examples.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py311-examples"
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+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
15+
phases:
16+
install:
17+
runtime-versions:
18+
python: 3.11
19+
build:
20+
commands:
21+
- pip install "tox < 4.0"
22+
- tox

Diff for: codebuild/py311/integ.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py311-integ"
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+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
15+
phases:
16+
install:
17+
runtime-versions:
18+
python: 3.11
19+
build:
20+
commands:
21+
- pip install "tox < 4.0"
22+
- tox

Diff for: codebuild/py312/awses_local.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py312-awses_local"
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+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
15+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"
16+
17+
phases:
18+
install:
19+
runtime-versions:
20+
python: latest
21+
build:
22+
commands:
23+
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
24+
- pyenv install 3.12.0
25+
- pyenv local 3.12.0
26+
- pip install --upgrade pip
27+
- pip install setuptools
28+
- pip install "tox < 4.0"
29+
- cd test_vector_handlers
30+
- tox

Diff for: codebuild/py312/examples.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py312-examples"
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+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
15+
phases:
16+
install:
17+
runtime-versions:
18+
python: latest
19+
build:
20+
commands:
21+
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
22+
- pyenv install 3.12.0
23+
- pyenv local 3.12.0
24+
- pip install --upgrade pip
25+
- pip install setuptools
26+
- pip install "tox < 4.0"
27+
- tox

Diff for: codebuild/py312/integ.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py312-integ"
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+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
15+
phases:
16+
install:
17+
runtime-versions:
18+
python: latest
19+
build:
20+
commands:
21+
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
22+
- pyenv install 3.12.0
23+
- pyenv local 3.12.0
24+
- pip install --upgrade pip
25+
- pip install setuptools
26+
- pip install "tox < 4.0"
27+
- tox

Diff for: codebuild/py37/awses_local.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ env:
1717
phases:
1818
install:
1919
runtime-versions:
20-
python: latest
20+
python: 3.7
2121
build:
2222
commands:
23-
- pyenv install 3.7.12
24-
- pyenv local 3.7.12
2523
- pip install "tox < 4.0"
2624
- cd test_vector_handlers
2725
- tox

Diff for: codebuild/py37/examples.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ env:
1515
phases:
1616
install:
1717
runtime-versions:
18-
python: latest
18+
python: 3.7
1919
build:
2020
commands:
21-
- pyenv install 3.7.12
22-
- pyenv local 3.7.12
2321
- pip install "tox < 4.0"
2422
- tox

Diff for: codebuild/py37/integ.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ env:
1515
phases:
1616
install:
1717
runtime-versions:
18-
python: latest
18+
python: 3.7
1919
build:
2020
commands:
21-
- pyenv install 3.7.12
22-
- pyenv local 3.7.12
2321
- pip install "tox < 4.0"
2422
- tox

Diff for: codebuild/py38/awses_local.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ env:
1717
phases:
1818
install:
1919
runtime-versions:
20-
python: latest
20+
python: 3.8
2121
build:
2222
commands:
23-
- pyenv install 3.8.12
24-
- pyenv local 3.8.12
2523
- pip install "tox < 4.0"
2624
- cd test_vector_handlers
2725
- tox

Diff for: codebuild/py38/examples.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ env:
1515
phases:
1616
install:
1717
runtime-versions:
18-
python: latest
18+
python: 3.8
1919
build:
2020
commands:
21-
- pyenv install 3.8.12
22-
- pyenv local 3.8.12
2321
- pip install "tox < 4.0"
2422
- tox

Diff for: codebuild/py38/integ.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ env:
1515
phases:
1616
install:
1717
runtime-versions:
18-
python: latest
18+
python: 3.8
1919
build:
2020
commands:
21-
- pyenv install 3.8.12
22-
- pyenv local 3.8.12
2321
- pip install "tox < 4.0"
2422
- tox

Diff for: codebuild/py39/awses_1.7.1.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ env:
1717
phases:
1818
install:
1919
runtime-versions:
20-
python: latest
20+
python: 3.9
2121
build:
2222
commands:
23-
- pyenv install 3.9.7
24-
- pyenv local 3.9.7
2523
- pip install "tox < 4.0"
2624
- cd test_vector_handlers
2725
- tox

Diff for: codebuild/py39/awses_2.0.0.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ env:
1717
phases:
1818
install:
1919
runtime-versions:
20-
python: latest
20+
python: 3.9
2121
build:
2222
commands:
23-
- pyenv install 3.9.7
24-
- pyenv local 3.9.7
2523
- pip install "tox < 4.0"
2624
- cd test_vector_handlers
2725
- tox

0 commit comments

Comments
 (0)