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

Support Django 5.0 and Python 3.12, drop Python 3.8 #373

Merged
merged 1 commit into from
May 13, 2024

Conversation

adamchainz
Copy link
Contributor

Copied most of the approach from 35d10aa. I don’t see any new warnings on Python 3.12 + Django 5.0 when running locally.

Comment on lines 18 to 29
django_version:
- '3.2'
- '4.0'
- '4.1'
- '4.2'
- '5.0'
python_version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

splitting one per line will reduce the diff noise when adding/removing versions in the future

- '4.2'
- '5.0'
python_version:
- '3.7'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd also be happy to drop Python 3.7 support in this PR, since it’s EOL

Copy link
Member

Choose a reason for hiding this comment

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

Sure, feel free to remove it.

@@ -71,6 +71,7 @@ def run_tests(self):
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.request',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes this system check warning:

?: (admin.W411) 'django.template.context_processors.request' must be enabled in DjangoTemplates (TEMPLATES) in order to use the admin navigation sidebar.

@Gagaro
Copy link
Member

Gagaro commented May 13, 2024

Thanks for the PR, I'll merge after you remove the support of Python 3.7 then.

@adamchainz adamchainz changed the title Support Django 5.0 and Python 3.12 Support Django 5.0 and Python 3.12, drop Python 3.8 May 13, 2024
@adamchainz
Copy link
Contributor Author

Done.

@Gagaro Gagaro merged commit 9785a05 into makinacorpus:master May 13, 2024
19 of 20 checks passed
@adamchainz adamchainz deleted the django_5.0_python_3.12 branch May 13, 2024 09:44
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