Skip to content
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

Removed PY36 and PY37 version constants. #18154

Merged
merged 1 commit into from May 16, 2024

Conversation

sarahboyce
Copy link
Contributor

@sarahboyce sarahboyce commented May 10, 2024

We could also remove PY310 as we are not using it but it could be used in future.

Comment on lines 16 to 19
PY36 = sys.version_info >= (3, 6)
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)
Copy link
Member

Choose a reason for hiding this comment

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

Please check the comment that it's written above these constants. Django 4.2 support Python 3.8 and 3.9 so we shouldn't remove PY38 and PY39.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you

As the oldest supported version is Django 4.2, we only need constants for PY38+.

Thank you to Mariusz Felisiak for the review.
@sarahboyce sarahboyce changed the title Removed constants for Python versions below the minimum supported version. Removed PY36 and PY37 version constants. May 11, 2024
@sarahboyce sarahboyce merged commit 069d713 into django:main May 16, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants