Drop support for Django 4.2#897
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideDrops Django 4.2 from the supported/tested matrix and raises the minimum Django version to 5.0 in packaging metadata, keeping CI, metadata, and docs aligned on Django 5.0–6.0 support. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Thanks for adding the Below is the changelog that will be used for the release. Drop support for Django 4.2.
This release was contributed by @p-r-a-v-i-n in #897 |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="pyproject.toml" line_range="34" />
<code_context>
]
requires-python = ">=3.10,<4.0"
-dependencies = ["django>=4.2", "asgiref>=3.8", "strawberry-graphql>=0.310.1"]
+dependencies = ["django>=5.0", "asgiref>=3.8", "strawberry-graphql>=0.310.1"]
[project.urls]
</code_context>
<issue_to_address>
**suggestion (bug_risk):** Align Django dependency range with the explicitly supported versions to avoid accidental incompatibilities with future major releases.
Classifiers state support only up to Django 6.0, but the dependency is unbounded on the upper end (`django>=5.0`). If you don’t intend to guarantee compatibility with Django 7+, please cap it (e.g. `django>=5.0,<7.0`) to match the stated support and avoid breakages on future major releases.
```suggestion
dependencies = ["django>=5.0,<7.0", "asgiref>=3.8", "strawberry-graphql>=0.310.1"]
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #897 +/- ##
==========================================
- Coverage 91.62% 91.61% -0.02%
==========================================
Files 51 51
Lines 4632 4625 -7
==========================================
- Hits 4244 4237 -7
Misses 388 388 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bellini666
left a comment
There was a problem hiding this comment.
Nice! :)
You can probably update https://github.com/strawberry-graphql/strawberry-django/blob/main/.pre-commit-config.yaml#L42-L42 as well to target 5.0 and run it to see if it changes anything
|
Also, create a |
this was indeed critical. |
|
Hey @bellini666 ,
Do you mind giving me some information about this ? |
Np! :) In short, by having Like this, turned into this release (this is the commit it creates where it also removes the file: 60e8869) regarding what you added here, 2 asks:
|
|
Thanks! ❤️ I'll wait and merge this on April 30th |
That's fair. If anything is there before merging please let me know, I will be happy to addressed it. |
Description
Django 4.2 will reach end of support on April 30, 2026.
I’m opening this PR early so we can prepare for removing support without any rush.
source: https://endoflife.date/django
Types of Changes
Issues Fixed or Closed by This PR
Checklist
Summary by Sourcery
Drop support for Django 4.2 across the project and standardize on Django 5.0+.
Enhancements:
Build:
CI:
Documentation: