From ce6a56152b0c6827a9b4a1fae59029121626f859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Freitag?= Date: Thu, 18 Jul 2024 20:51:02 +0200 Subject: [PATCH] Add support for Django 5.1 --- .github/workflows/test.yml | 16 ++++------------ pyproject.toml | 1 + tox.ini | 2 ++ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 985520d..7a4b073 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,26 +13,18 @@ jobs: fail-fast: false matrix: python-version: - - 3.8 - - 3.9 - '3.10' - '3.11' - '3.12' tox-environment: - - dj42 - dj50 + - dj51 + - djmain include: - - python-version: '3.10' - tox-environment: djmain - - python-version: '3.11' - tox-environment: djmain - - python-version: '3.12' - tox-environment: djmain - exclude: - python-version: '3.8' - tox-environment: dj50 + tox-environment: dj42 - python-version: '3.9' - tox-environment: dj50 + tox-environment: dj42 env: COVERALLS_FLAG_NAME: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }} diff --git a/pyproject.toml b/pyproject.toml index 5beb0a0..618524f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ classifiers = [ "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", diff --git a/tox.ini b/tox.ini index ee0a7b4..10f21f1 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ envlist = isort dj42 dj50 + dj51 djmain mypy isolated_build = true @@ -16,6 +17,7 @@ deps = coverage dj42: Django>=4.2,<4.3 dj50: Django>=5.0b1,<5.1 + dj51: Django>=5.1b1,<5.2 djmain: https://github.com/django/django/archive/main.tar.gz djangorestframework extras = phonenumberslite