pytest-dev / pytest-django

A Django plugin for pytest.
https://pytest-django.readthedocs.io/
Other
1.32k stars 341 forks source link

Add Python 3.12 support #1086

Closed foarsitter closed 7 months ago

foarsitter commented 8 months ago

Without any changes this project supports Python 3.12. So version 4.6.0 is already compatible with Python 3.12

adamchainz commented 8 months ago

We need to add 3.12 to the test matrix. I think we should wait until we have Django 5.0 tested, because it is the only Django version that officially supports Python 3.2. (For now, that is. Django 4.2 will probably add support at some point.)

Edit: opened #1087 for Django 5.0 support.

foarsitter commented 8 months ago

Unofficially pytest-django already supports 3.12 so in my opinion there is no reason to wait for 5.0. I would point to https://forum.djangoproject.com/t/django-4-2-lts-compatibility-with-python-3-12/24508/3 to tell support for 3.12 is comming to 4.2 but you are the author of that posts.

adamchainz commented 7 months ago

After merging #1087, I rebased this branch and added a commit with the changelog note + github actions run.

foarsitter commented 7 months ago

@adamchainz LGTM, thanks!