From 245e05d330ac05d99f8cd17f03e3f14d7d305d53 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Thu, 3 Apr 2025 13:52:11 +0100 Subject: [PATCH 1/3] Update Django/Python support --- .github/workflows/main.yml | 46 ++++++++++++++++++++++++++++++++++++++ example/settings.py | 2 ++ setup.py | 2 ++ tox.ini | 9 ++++++++ 4 files changed, 59 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b56a89f..f04e1a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,8 +77,24 @@ jobs: - "py310-django32" - "py310-django40" - "py310-django41" + - "py310-django42" + - "py310-django50" + - "py310-django51" + - "py310-django52" - "py311-django41" + - "py311-django42" + - "py311-django50" + - "py311-django51" + - "py311-django52" + + - "py312-django42" + - "py312-django50" + - "py312-django51" + - "py312-django52" + + - "py313-django51" + - "py313-django52" include: - python: "3.5" @@ -152,9 +168,39 @@ jobs: tox_env: "py310-django40" - python: "3.10" tox_env: "py310-django41" + - python: "3.10" + tox_env: "py310-django42" + - python: "3.10" + tox_env: "py310-django50" + - python: "3.10" + tox_env: "py310-django51" + - python: "3.10" + tox_env: "py310-django52" - python: "3.11" tox_env: "py311-django41" + - python: "3.11" + tox_env: "py311-django42" + - python: "3.11" + tox_env: "py311-django50" + - python: "3.11" + tox_env: "py311-django51" + - python: "3.11" + tox_env: "py311-django52" + + - python: "3.12" + tox_env: "py312-django42" + - python: "3.12" + tox_env: "py312-django50" + - python: "3.12" + tox_env: "py312-django51" + - python: "3.12" + tox_env: "py312-django52" + + - python: "3.13" + tox_env: "py313-django51" + - python: "3.13" + tox_env: "py313-django52" steps: diff --git a/example/settings.py b/example/settings.py index 97f072f..3a6624f 100644 --- a/example/settings.py +++ b/example/settings.py @@ -55,3 +55,5 @@ ROOT_URLCONF = 'example.urls' STATIC_URL = '/static/' + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' \ No newline at end of file diff --git a/setup.py b/setup.py index 7d1ca72..fa3ffc7 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,8 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Topic :: Software Development :: Libraries :: Python Modules' ], ) diff --git a/tox.ini b/tox.ini index f1a71f0..5a66fe5 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,10 @@ envlist = {py35,py36,py37,py38,py39,py310}-django32, {py38,py39,py310}-django40, {py38,py39,py310,py311}-django41, + {py38,py39,py310,py311,py312}-django42, + {py310,py311,py312}-django50, + {py310,py311,py312,py313}-django51, + {py310,py311,py312,py313}-django52, [testenv] commands = python manage.py test @@ -30,4 +34,9 @@ deps = django32: Django>=3.2,<4.0 django40: Django>=4.0,<4.1 django41: Django==4.1.* + django42: Django==4.2.* + django50: Django==5.0.* + django51: Django==5.1.* + django51: Django==5.1.* + django52: Django==5.2.* From b84b85e9088b25b9ba8bd6523789a61481439bc7 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Thu, 3 Apr 2025 13:58:35 +0100 Subject: [PATCH 2/3] Drop Python <3.6 --- .github/workflows/main.yml | 23 ----------------------- setup.py | 3 --- 2 files changed, 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f04e1a6..08b67fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,14 +39,6 @@ jobs: fail-fast: false matrix: tox_env: - - "py35-django18" - - "py35-django19" - - "py35-django110" - - "py35-django111" - - "py35-django20" - - "py35-django21" - - "py35-django22" - - "py36-django111" - "py36-django20" - "py36-django21" @@ -97,21 +89,6 @@ jobs: - "py313-django52" include: - - python: "3.5" - tox_env: "py35-django18" - - python: "3.5" - tox_env: "py35-django19" - - python: "3.5" - tox_env: "py35-django110" - - python: "3.5" - tox_env: "py35-django111" - - python: "3.5" - tox_env: "py35-django20" - - python: "3.5" - tox_env: "py35-django21" - - python: "3.5" - tox_env: "py35-django22" - - python: "3.6" tox_env: "py36-django111" - python: "3.6" diff --git a/setup.py b/setup.py index fa3ffc7..c31f191 100644 --- a/setup.py +++ b/setup.py @@ -25,10 +25,7 @@ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', From b5bf1fcca2654cddfd283c3d87b960ee286d0769 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Thu, 3 Apr 2025 13:59:20 +0100 Subject: [PATCH 3/3] Fix linting --- example/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/settings.py b/example/settings.py index 3a6624f..7442258 100644 --- a/example/settings.py +++ b/example/settings.py @@ -56,4 +56,4 @@ ROOT_URLCONF = 'example.urls' STATIC_URL = '/static/' -DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' \ No newline at end of file +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'