feat: Py310 & Runtime Python Verison Check by texastony · Pull Request #368 · aws/aws-encryption-sdk-python

added 5 commits

November 2, 2021 18:01
Issues a WARNING if the Python Version will become unsupported.
Prints an ERROR to STDERR if Python Version is unsupported.
Will start issuing WARNING for Python Version less than 3.6.
Will start printing ERROR for Python Version less than 3.5 AFTER Jan 1st, 2022.

@texastony texastony changed the title Py310 feat: Py310 & Runtime Python Verison Check

Nov 3, 2021

texastony

josecorella

@texastony

@texastony

This reverts: "ci(GitHub): test with Python 3.10"

@texastony

@texastony

@texastony

@texastony

@texastony

@texastony

Replaces check_python_version with _warn_deprecated_python.
_warn_deprecated_python is copied from the AWS SDK for Python (boto3/compat.py) and refactored for the ESDK.
No Error will ever be logged, only a warning for Pythons 2.7, 3.4, and 3.5.

Testing is added that not only checks the logic of the function, but also parses the SUPPORT_POLICY.rst for dates and ensures that the dates saved in compatability.py are accurate.

@texastony

@texastony

@texastony

@texastony

farleyb-amazon