Upgrade django-admin-tools to Django 4.0–4.2 compatibility with deprecation cleanup and expanded CI matrix - #4
Conversation
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/4a74b512-a02f-4cfa-b5da-933bf50cc257 Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
|
@copilot add a GitHub Action workflow to run the tests. |
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/dd4b7547-373c-42fc-8c04-ae4402e20db1 Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/dd4b7547-373c-42fc-8c04-ae4402e20db1 Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
|
@copilot Let's narrow this PR's scope. Please drop the With that out, please make the following changes here:
|
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/1064ff34-9e77-4a7c-ba0f-54682f35f49b Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/1064ff34-9e77-4a7c-ba0f-54682f35f49b Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/1064ff34-9e77-4a7c-ba0f-54682f35f49b Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
Implemented in commits 30afc7a, a7853b3, and 6d8f82d. I removed the Local suite passes ( No UI changes in this PR. |
|
Agent-Logs-Url: https://github.com/learning-unlimited/django-admin-tools/sessions/1a66562c-b33e-496a-95c1-508aaf33f71b Co-authored-by: willgearty <7232514+willgearty@users.noreply.github.com>
Done in 6e9d60b. I added the explanatory stub comment at the top of No UI changes in this update, so no screenshot applies. |
This updates the project to an explicit Django 4.x target (4.0, 4.1, 4.2), removes legacy compatibility code that is unreachable on the new support matrix, and expands GitHub Actions coverage across supported Python/Django combinations.
Admin site resolution scope narrowed
get_admin_site()fallback/runtime resolution behavior.esp.adminusage for this PR scope.Python 3.12 compatibility fix
import impusage inadmin_tools/dashboard/registry.pywithimportlib.util.find_spec.Deprecated compatibility shim cleanup
django.core.urlresolversfallbacksugettext_lazyfallbacksforce_textfallbacksdjango.utils.importlibfallbacksif django.VERSION < (2, 0),< (2, 2),< (3, 2)branchesdefault_app_configinadmin_tools/__init__.py__unicode__shim inadmin_tools/menu/models.pyurllib.unquotefallback inadmin_tools/menu/forms.pycsrf_exemptfallback imports in dashboard/menu viewsObsolete files removed
admin_tools/dashboard/south_migrations/admin_tools/menu/south_migrations/.travis.ymlDocumentation updates
INSTALLto reflect Python 3.8+ and Django 4.0–4.2 support.Unreleasedsection toCHANGELOGsummarizing these changes.Django 4.x support matrix
tox.inivalidates against:Django>=4.0,<4.1Django>=4.1,<4.2Django>=4.2,<4.3GitHub Actions test workflow
.github/workflows/tests.ymlruns tests on pull requests and pushes tomasterandesp.contents: readpython -W all test_proj/manage.py test