Skip to content

chore: Remove support for python 2 #173

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

Merged
merged 3 commits into from
Jul 15, 2021

Conversation

farleyb-amazon
Copy link
Contributor

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

texastony
texastony previously approved these changes Jul 15, 2021
texastony
texastony previously approved these changes Jul 15, 2021
@texastony
Copy link
Contributor

Glad you caught that. Have you run a generic grep for py2?

Copy link
Contributor

@texastony texastony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum34; python_version < '3.4'

https://github.com/farleyb-amazon/aws-dynamodb-encryption-python/blob/2eaecca7d9146b58440664f390b9ed0bdb7e2a8c/requirements.txt#L4

I am not sure what the ; notation does in a requirements file, but if I had to guess it would be for python < 3.4 require enum34. Which is no longer needed.

@farleyb-amazon
Copy link
Contributor Author

enum34; python_version < '3.4'

https://github.com/farleyb-amazon/aws-dynamodb-encryption-python/blob/2eaecca7d9146b58440664f390b9ed0bdb7e2a8c/requirements.txt#L4

I am not sure what the ; notation does in a requirements file, but if I had to guess it would be for python < 3.4 require enum34. Which is no longer needed.

Yup, that's right. "If our python version is less than 3.4, we depend on enum34". Looks like the enum34 package is a backporting of a new feature introduced in Python 3.4 into older versions of Python, which means we do not need it. Good find!

Copy link
Contributor

@texastony texastony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra Groovy

@farleyb-amazon farleyb-amazon merged commit 8d82ed7 into aws:master Jul 15, 2021
@farleyb-amazon farleyb-amazon deleted the py2-deprecation branch July 15, 2021 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants