Support Django 6.x by widening version constraint#64
Open
joseanoxp wants to merge 1 commit into
Open
Conversation
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.
Fixes: #62
Django 6.0 was released in December 2024 (with 6.0.1 in January 2026, and 6.0.5 currently on PyPI). The constraint
django>=3.2,<6preventspip install identity[django]alongside Django 6+ — exactly the resolver error reported in #62.After reviewing
identity/django.py, this library only uses stable Django APIs that have no breaking changes in Django 6.0:django.shortcuts.redirect,renderdjango.urls.include,path,reverserequest.session,request.GET,request.build_absolute_uri(),request.get_full_path()This PR widens the constraint to
django>=3.2,<7(covering the 6.x line) and adds Python 3.13 to the classifiers (Django 6.0 requires Python 3.12+).Tested
Validated end-to-end with Django 6.0.5 in a fresh Python 3.12 venv:
pip install "identity[django]"resolved without conflict — Django 6.0.5 was selected.from identity.django import Authand all its methods load.AUTH = Auth(...)insettings.pyandsettings.AUTH.urlpatterninurls.pypassespython manage.py checkcleanly (0 issues)./login,/logoutand/getATokencorrectly bind toAuth.login,Auth.logout,Auth.auth_response.identity/login.html,identity/auth_error.html) load via Django'sAPP_DIRSloader and render with realistic context.A parallel PR exists in the Azure-Samples mirror: Azure-Samples/ms-identity-python#3.
References: