Skip to content

Drop support for Python 3.7 #1719

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 1 commit into from
Jan 20, 2023
Merged

Conversation

matthiask
Copy link
Member

@matthiask matthiask commented Dec 9, 2022

Description

This pull request drops support for Python 3.7. Older versions of the toolbar will still be usable by people still using 3.7. This also makes us use less CI resources, something which is a big plus for me.

Also, see https://pythonspeed.com/articles/stop-using-python-3.7/

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

Copy link
Member

@tim-schilling tim-schilling left a comment

Choose a reason for hiding this comment

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

I'm good with this.

@matthiask
Copy link
Member Author

@tim-schilling I added a removal of Django 4.0 to this since the end of the extended support is close and our CI matrix is already really big. Everything should still work with 4.0 but we don't spend CI time verifying it over and over.

@matthiask matthiask marked this pull request as ready for review January 20, 2023 16:35
@@ -27,13 +27,13 @@ classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
# "Framework :: Django :: 4.2",
Copy link
Member Author

Choose a reason for hiding this comment

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

The identifier doesn't seem to be available yet.

@@ -70,7 +70,7 @@ def get_config():
]


@lru_cache()
@lru_cache
Copy link
Member Author

Choose a reason for hiding this comment

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

Automatically changed by pyupgrade.

@tim-schilling
Copy link
Member

Another option to dropping 4.0 from the test suite entirely is to only test it with sqlite with the latest version of python it supports.

@matthiask
Copy link
Member Author

Good idea. I left py310-dj40-sqlite in there.

@matthiask matthiask merged commit 4679e92 into django-commons:main Jan 20, 2023
@matthiask matthiask deleted the mk/remove-py37 branch January 20, 2023 16:54
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