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

Add official support for Django 5.0 #49

Merged
merged 9 commits into from
Feb 21, 2024
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def _get_long_description():
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
],
keywords='django postgres postgresql migrations',
packages=find_packages(exclude=['manage*', 'tests*']),
Expand Down
30 changes: 16 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[tox]
envlist = py{3.8,3.9,3.10,3.11}-django{4.2}-psycopg{2,3},py{3.8,3.9,3.10,3.11}-django{4.0,4.1},py{3.6,3.7,3.8,3.9,3.10}-django{3.2}
envlist =
py{3.10,3.11}-django{5.0}-psycopg{2,3}
py{3.8,3.9,3.10,3.11}-django{4.2}-psycopg{2,3}
py{3.8,3.9,3.10,3.11}-django{4.0,4.1}
py{3.6,3.7,3.8,3.9,3.10}-django{3.2}

[testenv]
usedevelop = True
Expand All @@ -8,8 +12,8 @@ commands =
py{3.11}-django{4.2}-psycopg{3}: flake8
py{3.11}-django{4.2}-psycopg{3}: isort . --check --diff
tbicr marked this conversation as resolved.
Show resolved Hide resolved

py{3.8,3.9,3.10,3.11}-django{4.2}-psycopg{2,3}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.2}-psycopg{2,3}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.2,5.0}-psycopg{2,3}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.2,5.0}-psycopg{2,3}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"

py{3.8,3.9,3.10,3.11}-django{4.0,4.1}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.0,4.1}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"
Expand Down Expand Up @@ -37,14 +41,12 @@ deps =
pytest-django
pytest-mock

django{3.2}: psycopg2-binary
django{4.0}: psycopg2-binary
django{4.1}: psycopg2-binary
django{4.2}-psycopg{2}: psycopg2-binary
django{4.2}-psycopg{3}: psycopg[binary]

django{3.2}: django>=3.2,<4.0
django{4.0}: django>=4.0,<4.1
django{4.1}: django>=4.1,<4.2
django{4.2}-psycopg{2}: django>=4.2,<5.0
django{4.2}-psycopg{3}: django>=4.2,<5.0
django{3.2,4.0,4.1}: psycopg2-binary
psycopg2: psycopg2-binary
psycopg3: psycopg[binary]

django3.2: django>=3.2,<4.0
django4.0: django>=4.0,<4.1
django4.1: django>=4.1,<4.2
django4.2: django>=4.2,<5.0
django5.0: django>=5.0,<5.1
Loading