Skip to content

Add Django 5.2 support#333

Merged
mofr merged 2 commits intoWinterFramework:masterfrom
nekitmish:AB-1532378
Apr 28, 2026
Merged

Add Django 5.2 support#333
mofr merged 2 commits intoWinterFramework:masterfrom
nekitmish:AB-1532378

Conversation

@nekitmish
Copy link
Copy Markdown
Contributor

@nekitmish nekitmish commented Apr 27, 2026

Summary

  • Widen Django constraint from >=4.2,<5 to >=4.2,<6
  • Add Django 5.2 to CI test matrix
  • Add Framework :: Django :: 5 classifier
  • Remove deprecated default_app_config from tests/__init__.py (removed in Django 5.0)

Test plan

  • CI passes on Django 4.2
  • CI passes on Django 5.2
  • All 610 tests pass on both versions (verified locally)

@nekitmish nekitmish changed the title AB#1532378 Add Django 5.2 support AB#1532378: Add Django 5.2 support Apr 27, 2026
@nekitmish nekitmish force-pushed the AB-1532378 branch 2 times, most recently from 226002b to cf91d9c Compare April 28, 2026 08:05
@nekitmish
Copy link
Copy Markdown
Contributor Author

Sorry about the force pushes. I tested Claude automation and it went a bit crazy :\

with caplog.at_level(logging.WARNING):
register_route_parameters_inspector(PathParametersInspector())
assert 'PathParametersInspector already registered' in caplog.text
_route_parameters_inspectors.pop()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem correct:

  1. protected member usage
  2. Why we need to pop it? It shouldn't be added in the first place

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logging.warning(f'{inspector.__class__.__name__} already registered')

The return seem to be missing here

- Widen Django constraint from >=4.2,<5 to >=4.2,<6
- Add Django 5.2 to CI test matrix
- Add Django 5 classifier
- Remove deprecated default_app_config (removed in Django 5.0)
- Bump pytest to >=8,<9 and pytest-django to >=4.6,<5 (fix anyio/pytest incompatibility)
- Remove obsolete pytest-pythonpath (built into pytest 7+)
- Fix test pollution in test_route_parameter_inspector (duplicate inspector not cleaned up)
@mofr mofr merged commit d4beb57 into WinterFramework:master Apr 28, 2026
8 checks passed
@nekitmish nekitmish changed the title AB#1532378: Add Django 5.2 support Add Django 5.2 support Apr 28, 2026
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.

2 participants