Modernize Python/Django support, CI, and packaging - #3
Merged
Conversation
- Support Django 5.2 (LTS) and 6.0 on Python 3.10-3.14, per upstream support policies; Django main is tested in CI but allowed to fail - Replace removed ugettext_lazy with gettext_lazy - Port to the modern django-ipware get_client_ip API - Replace django.conf.urls.url with re_path and pytz-style localize with tzinfo in the test suite; use unittest.mock - Migrate packaging from setup.py to pyproject.toml (v2.0.0) - Replace flake8/isort/black with Ruff - Replace CircleCI with GitHub Actions, including a tag-triggered PyPI trusted-publisher release workflow Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lukeburden
commented
Jul 17, 2026
lukeburden
left a comment
Owner
Author
There was a problem hiding this comment.
Manual mushy human review completed.
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
Brings django-authlink in line with upstream Python/Django support policies and simplifies maintenance of this library.
mainis tested in CI via acontinue-on-errorjob so it can never fail the buildsetup.py/requirements.txt→pyproject.toml, version bumped to 2.0.0 (breaking: drops Django < 5.2)tox.inionly), plus a PyPI trusted-publisher workflow triggered by GitHub release creationpyproject.tomlugettext_lazy→gettext_lazy(removed in Django 4.0)ipwareget_real_ip/get_ip→ modernget_client_ip, preserving the routable-only-unless-DEBUGsemanticsdjango.conf.urls.url→re_path,mockpackage →unittest.mock, pytz.localize()→tzinfo=Reviewed the Django 6.0 release notes for auth changes: the only substantive one (PBKDF2 iteration bump) doesn't touch this library;
login()/logout(),BACKEND_SESSION_KEY, sessions, andModelBackendbehaviour are unchanged.No release is cut by this PR — publishing only fires when a GitHub release is created.
Test plan
tox -e ruff,py312-dj60clean🤖 Generated with Claude Code