Drop Django versions < 4.2#41
Merged
fabiocaccamo merged 2 commits intomainfrom Apr 17, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/fabiocaccamo/django-cache-cleaner/sessions/3e9b614f-ddfd-4974-b5a9-067c45949295 Co-authored-by: fabiocaccamo <1035294+fabiocaccamo@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
fabiocaccamo
April 17, 2026 16:39
View session
fabiocaccamo
approved these changes
Apr 17, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #41 +/- ##
=======================================
Coverage 93.13% 93.13%
=======================================
Files 6 6
Lines 102 102
=======================================
Hits 95 95
Misses 7 7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Drops support declarations and CI coverage for Django 4.0 and 4.1, making Django 4.2 (LTS) the minimum supported version.
Changes:
- Removed
dj40/dj41fromtoxenvlist and dependency factor pins. - Removed Django 4.0/4.1 Trove classifiers from package metadata.
- Removed Django 4.0/4.1 from the GitHub Actions test matrix.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tox.ini | Removes tox env factors for Django 4.0/4.1 and their pinned deps. |
| pyproject.toml | Removes Trove classifiers for Django 4.0/4.1. |
| .github/workflows/test-package.yml | Removes Django 4.0/4.1 from the CI matrix. |
Comments suppressed due to low confidence (1)
tox.ini:29
depsstill installs-r requirements.txt, andrequirements.txtcurrently allowsdjango >= 3.2. This means some tox envs that rely only onrequirements.txt(e.g.migrations/translations) can run against Django versions that are now unsupported. Updaterequirements.txtto require Django >= 4.2 (or explicitly pin/add a Django >=4.2 constraint in those envs) so all tox envs reflect the new minimum supported Django version.
deps =
dj42: Django == 4.2.*
dj50: Django == 5.0.*
dj51: Django == 5.1.*
dj52: Django == 5.2.*
dj60: Django == 6.0.*
-r requirements.txt
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Agent-Logs-Url: https://github.com/fabiocaccamo/django-cache-cleaner/sessions/8a458b41-5371-48c1-aea0-6816f18e4b18 Co-authored-by: fabiocaccamo <1035294+fabiocaccamo@users.noreply.github.com>
fabiocaccamo
approved these changes
Apr 17, 2026
fabiocaccamo
approved these changes
Apr 17, 2026
fabiocaccamo
approved these changes
Apr 17, 2026
fabiocaccamo
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drop support for Django 4.0 and 4.1, keeping 4.2 (LTS) as the minimum supported version.
Changes
pyproject.toml: RemoveFramework :: Django :: 4.0and4.1classifierstox.ini: Removedj40/dj41from envlist (py310, py311) and deps.github/workflows/test-package.yml: Remove Django 4.0 and 4.1 from CI test matrixrequirements.txt: Bump Django lower bound from>= 3.2to>= 4.2Describe your changes
Removes Django 4.0 and 4.1 from all supported version lists. Minimum supported Django version is now 4.2 LTS. The Django lower bound in
requirements.txthas also been updated to>= 4.2to keep all declared support surfaces consistent.Related issue
?
Checklist before requesting a review