-
Notifications
You must be signed in to change notification settings - Fork 86
feat: Py310 & Runtime Python Verison Check #368
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
Changes from 5 commits
7675bc2
a02c552
fb74b99
df24e2b
5102a97
0f1d548
762cc2a
bc56b83
fabd443
cfe27bd
4fcfe13
4db40c5
8ee9538
ce4955c
e231906
aaa5212
461027b
7550d52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,14 @@ | |
# language governing permissions and limitations under the License. | ||
"""High level AWS Encryption SDK client functions.""" | ||
# Below are imported for ease of use by implementors | ||
|
||
import warnings | ||
|
||
import attr | ||
|
||
from aws_encryption_sdk.caches.local import LocalCryptoMaterialsCache # noqa | ||
from aws_encryption_sdk.caches.null import NullCryptoMaterialsCache # noqa | ||
from aws_encryption_sdk.exceptions import AWSEncryptionSDKClientError # noqa | ||
from aws_encryption_sdk.identifiers import Algorithm, CommitmentPolicy, __version__ # noqa | ||
from aws_encryption_sdk.identifiers import Algorithm, CommitmentPolicy, __version__, check_python_version # noqa | ||
from aws_encryption_sdk.internal.utils.signature import SignaturePolicy # noqa | ||
from aws_encryption_sdk.key_providers.kms import ( # noqa | ||
DiscoveryAwsKmsMasterKeyProvider, | ||
|
@@ -36,6 +35,8 @@ | |
StreamEncryptor, | ||
) | ||
|
||
check_python_version() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @farleyb-amazon I do not know how to force a Runtime Check, but I think this will work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By my understanding |
||
|
||
|
||
@attr.s(hash=True) | ||
class EncryptionSDKClientConfig(object): | ||
|
Uh oh!
There was an error while loading. Please reload this page.