-
Notifications
You must be signed in to change notification settings - Fork 42
Confirm Django 5.2 and Python 3.13 support + fix some package metadata #134
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
Confirm Django 5.2 and Python 3.13 support + fix some package metadata #134
Conversation
Bumped setup-python from v4 to v5.
cfpb#127 replaced black, isort and flake8 with ruff but the contributing guidelines were still outdated.
The ruff configuration is specified in pyproject.toml and obsoletes flake8 and accordingly, the flake8 config file.
Ruff 0.11.7 picks up some formatting changes.
There does not appear to be any more wagtail-related code in the package, so I suspect this has been an copy-paste mistake when switching to pyproject.toml in cfpb#127.
The package metadata incorrectly stated that Django 2.2 and 3.2 are still supported, but the dependencies require 4.2+ which conflicts. Versions older than 4.2 are end-of-life and receive no more (security) patches.
* Added Python 3.13 to the version support matrix * Added Django 5.2 to the version support matrix * Removed end-of-life Django 5.0 from testing matrix Django 4.2 supports Python 3.8 until 3.12, while 5.x supports 3.10 until 3.13. This matrix sticks with the existing approach of testing the minimum and maximum supported versions only.
* Update matrix in Github accordingly * Update the package metadata to communicate supported versions.
| django4.2: Django~=4.2 | ||
| django5.1: Django~=5.1 | ||
| django5.2: Django~=5.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These version qualifiers are effectively equivalent - they will select the latest patch release available for the specified range, but it's a bit shorter and easier to maintain.
This should fix the coverage file discovery, resulting in proper uploads and the coverage combine job at the end not failing. actions/upload-artifact made a breaking change without major version bump, see actions/upload-artifact#602.
cac0393 to
a53fa7b
Compare
willbarton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to take so long in looking at this @sergei-maertens! This looks great, thank you!
Once this is merged, I'll do a release and we'll get it out to PyPI.
This pull request turned out a bit bigger than I anticipated, apologies :)
I noticed on PyPI that django-flags didn't support the newly released 5.2 yet so I figured I could update this and along the way picked up some leftovers from #127
That PR also mentioned that no new release to PyPI is needed, but I'd like to make a case to do a new release, even if there are
no meaningful changes in the Python code - the metadata shown on PyPI now creates the impression that this package is not updated/maintained because it supports end-of-life Python and Django versions, and it creates the impression that Django 4.2+ are not supported at all.
There is more context in the individual commit message for each change :)