Remove the Django upper bound - #676
Merged
Merged
Conversation
The <7.0 cap does not do what it looks like it does. It cannot make an install fail on a new Django major, because the resolver is free to backtrack to an older release of this package whose metadata never had a cap. Verified against real PyPI metadata: asking for django-bootstrap4 with django<5.2 resolves to django-bootstrap4 26.1 with django 5.1.15, silently, no error. On Django 7.0 that means a user asking for Django 7 gets an old release rather than a clear failure -- old, untested code, missing every fix in the capped versions. That is worse than installing the current release untested, where breakage surfaces in code we can fix and ship today. Capping the current release cannot close a door that already-published metadata left open, so the cap buys nothing and costs resolution quality. The django-version: main job in the CI matrix is the actual early warning: it breaks while the next major is still in development. Documents the rule in MAINTAINING.md so it does not drift back. Three of the five packages never had a cap; this brings the other two in line.
dyve
force-pushed
the
remove-django-upper-bound
branch
from
August 28, 2026 09:46
8e506ec to
b2612a6
Compare
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.
Summary
The
<7.0cap does not do what it looks like it does. It cannot make an install fail on a new Django major, because the resolver is free to backtrack to an older release of the package whose metadata never had a cap.Verified against real PyPI metadata — asking for a Django the latest release excludes:
On Django 7.0 day,
pip install django-bootstrap4 "Django>=7"resolves to 25.3 (django>=4.2, no cap) — old, untested code missing every 26.x fix. That is worse than installing the current release untested, where breakage surfaces in code that can be fixed and shipped the same day.Capping the current release cannot close a door that already-published metadata left open. The cap buys nothing and costs resolution quality.
The
django-version: mainjob in the CI matrix is the actual early warning: it breaks while the next major is still in development, when there is still time to release.Documented in
MAINTAINING.mdso it does not drift back — this split was drift, not intent: three of the five packages never had a cap.Test plan
just lintpassesjust buildpasses end to endRequires-Dist: django>=5.2Companion PRs
Note
Both this and #675 add a
## Unreleasedentry, and #675 also editsMAINTAINING.md. Whichever merges second will need a trivial rebase.