Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox.ini: Enable testing on Django v5.0 #1055

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Dec 6, 2023

https://pypi.org/project/Django

https://www.djangoproject.com/weblog/2023/dec/04/django-50-released

Django 4.1 has reached the end of extended support. The final security release (4.1.13) was issued on November 1st. All Django 4.1 users are encouraged to upgrade to Django 4.2 or later.

https://docs.djangoproject.com/en/5.0/releases/5.0

Django 5.0 supports Python 3.10, 3.11, and 3.12.

@cclauss cclauss marked this pull request as ready for review December 6, 2023 14:06
@cclauss
Copy link
Contributor Author

cclauss commented Dec 21, 2023

  • pypy39-django42-mongo-alchemy-postgres: FAIL code 2
  • pypy310-django42-mongo-alchemy-postgres: FAIL code 2

ModuleNotFoundError: No module named 'psycopg'
[ ... ]
/db/backends/postgresql/psycopg_any.py", line 77, in
from psycopg2 import errors, extensions, sql # NOQA
ImportError: cannot import name 'errors' from 'psycopg2cffi' (/home/runner/work/factory_boy/factory_boy/.tox/pypy310-django42-mongo-alchemy-postgres/lib/pypy3.10/site-packages/psycopg2cffi/init.py)

Disable py{py39,py310}-django42-mongo-alchemy-postgres

https://docs.djangoproject.com/en/4.2/ref/databases/#postgresql-notes

PostgreSQL notes

Django supports PostgreSQL 12 and higher. psycopg 3.1.8+ or psycopg2 2.8.4+ is required, though the latest psycopg 3.1.8+ is recommended.

Note

Support for psycopg2 is likely to be deprecated and removed at some point in the future.
Changed in Django 4.2:

Support for psycopg 3.1.8+ was added.

@francoisfreitag francoisfreitag merged commit 69809cf into FactoryBoy:master Jan 18, 2024
17 checks passed
@cclauss cclauss deleted the Django-v5.0 branch January 18, 2024 10:56
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