From f95f9d9dc269e10746c163a5a711e0c8e0f2bd45 Mon Sep 17 00:00:00 2001 From: texastony <5892063+texastony@users.noreply.github.com> Date: Wed, 3 Nov 2021 09:19:27 -0500 Subject: [PATCH] ci(py310): test against python3.10.0 --- buildspec.yml | 8 ++++++++ codebuild/py310/awses_local.yml | 27 +++++++++++++++++++++++++++ codebuild/py310/examples.yml | 24 ++++++++++++++++++++++++ codebuild/py310/integ.yml | 24 ++++++++++++++++++++++++ test_vector_handlers/tox.ini | 2 +- tox.ini | 4 ++-- 6 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 codebuild/py310/awses_local.yml create mode 100644 codebuild/py310/examples.yml create mode 100644 codebuild/py310/integ.yml diff --git a/buildspec.yml b/buildspec.yml index 461d4e0d2..474054d4b 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -37,6 +37,14 @@ batch: buildspec: codebuild/py39/examples.yml - identifier: py39_awses_latest + - identifier: py310_integ + buildspec: codebuild/py310/integ.yml + - identifier: py310_examples + buildspec: codebuild/py310/examples.yml + - identifier: py310_awses_latest + buildspec: codebuild/py310/awses_local.yml + + - identifier: code_coverage buildspec: codebuild/coverage/coverage.yml diff --git a/codebuild/py310/awses_local.yml b/codebuild/py310/awses_local.yml new file mode 100644 index 000000000..a60eba6d2 --- /dev/null +++ b/codebuild/py310/awses_local.yml @@ -0,0 +1,27 @@ +version: 0.2 + +env: + variables: + TOXENV: "py310-awses_local" + 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 + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >- + arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >- + arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb" + AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2" + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.10.0 + - pyenv local 3.10.0 + - pip install tox tox-pyenv + - cd test_vector_handlers + - tox diff --git a/codebuild/py310/examples.yml b/codebuild/py310/examples.yml new file mode 100644 index 000000000..59bb42499 --- /dev/null +++ b/codebuild/py310/examples.yml @@ -0,0 +1,24 @@ +version: 0.2 + +env: + variables: + TOXENV: "py310-examples" + 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 + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >- + arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >- + arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.10.0 + - pyenv local 3.10.0 + - pip install tox tox-pyenv + - tox diff --git a/codebuild/py310/integ.yml b/codebuild/py310/integ.yml new file mode 100644 index 000000000..3346a06a2 --- /dev/null +++ b/codebuild/py310/integ.yml @@ -0,0 +1,24 @@ +version: 0.2 + +env: + variables: + TOXENV: "py310-integ" + 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 + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >- + arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >- + arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 + +phases: + install: + runtime-versions: + python: latest + build: + commands: + - pyenv install 3.10.0 + - pyenv local 3.10.0 + - pip install tox tox-pyenv + - tox diff --git a/test_vector_handlers/tox.ini b/test_vector_handlers/tox.ini index 41920d76d..7418b2e98 100644 --- a/test_vector_handlers/tox.ini +++ b/test_vector_handlers/tox.ini @@ -2,7 +2,7 @@ envlist = # The test vectors depend on new features now, # so until release we can only effectively test the local version of the ESDK. - py{35,36,37,38,39}-awses_local, + py{35,36,37,38,39,310}-awses_local, # 1.2.0 and 1.2.max are being difficult because of attrs bandit, doc8, readme, docs, {flake8,pylint}{,-tests}, diff --git a/tox.ini b/tox.ini index 110ae7263..7006ae0e0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{35,36,37,38,39}-{local,integ,accept,examples}, nocmk, + py{35,36,37,38,39,310}-{local,integ,accept,examples}, nocmk, bandit, doc8, readme, docs, {flake8,pylint}{,-tests,-examples}, isort-check, black-check, @@ -318,7 +318,7 @@ commands = # Release tooling [testenv:park] -basepython = python3.6 +basepython = python3.7 skip_install = true deps = pypi-parker