Skip to content

Support Django 5.2/6.0 and python 3.10-3.14#59

Merged
somewes merged 2 commits into
developfrom
wesokes/django-6-support
Jul 8, 2026
Merged

Support Django 5.2/6.0 and python 3.10-3.14#59
somewes merged 2 commits into
developfrom
wesokes/django-6-support

Conversation

@somewes

@somewes somewes commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Same treatment as ambitioninc/django-query-builder#132, ambitioninc/django-manager-utils#144, and ambitioninc/django-dynamic-initial-data#65: bump the supported matrix to what Django currently supports (5.2 LTS on python 3.10-3.14, 6.0 on 3.12-3.14) and modernize the test infrastructure that was pinning the package to python 3.9.

  • Django>=5.2, python_requires>=3.10, refreshed classifiers, version 4.0.0
  • django-nose replaced with Django's DiscoverRunner, which also runs system checks: the test settings installed django.contrib.admin without its required scaffolding, so the unused admin and sessions apps are dropped
  • Dead MIDDLEWARE_CLASSES setting removed; tests use unittest.mock instead of the mock package; assertEquals (removed in python 3.12) replaced with assertEqual
  • CI matrix: python 3.10-3.14 x Django ~=5.2.0 / ~=6.0.0 x psycopg2 ~=2.9.10 / psycopg ~=3.2.0

Verified locally on python 3.14 / Django 6.0.6 / psycopg 3.2.10 against Postgres 17: all 32 tests pass, flake8 clean.

🤖 Generated with Claude Code

Django>=5.2 in install requirements, python_requires>=3.10, refreshed
classifiers, version 4.0.0. django-nose (dead upstream, broken on python
3.10+) replaced with Django's DiscoverRunner, which also runs system checks:
the test settings installed django.contrib.admin without its required
scaffolding, so the unused admin and sessions apps are dropped. The dead
MIDDLEWARE_CLASSES setting is removed, tests use unittest.mock instead of the
mock package, and assertEquals (removed in python 3.12) becomes assertEqual.
CI matrix: python 3.10-3.14 x Django 5.2/6.0 x psycopg2/psycopg 3.2.

Verified on python 3.14 / Django 6.0.6 / psycopg 3.2.10 against Postgres 17:
all 32 tests pass, flake8 clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@somewes
somewes marked this pull request as ready for review July 8, 2026 00:17
The 4.x line is the one tested against the same django/python matrix this
release supports.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@somewes
somewes merged commit 4d86c9b into develop Jul 8, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant