From 32cd0e64b1e35ead0a018a4d8ba586f124a84ff1 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 15 Nov 2024 16:27:18 +0000 Subject: [PATCH] Update tested Python and Django versions --- .github/workflows/main.yml | 2 +- CHANGES | 3 ++- quicktest.py | 4 +++- setup.py | 4 ++-- tox.ini | 15 ++++++++------- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 12ec80e..27aad0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,11 +9,11 @@ jobs: strategy: matrix: python_version: - - '3.8' - '3.9' - '3.10' - '3.11' - '3.12' + - '3.13' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGES b/CHANGES index 0a6b959..06c1a07 100644 --- a/CHANGES +++ b/CHANGES @@ -5,7 +5,8 @@ CHANGELOG 4.1.1 (unreleased) ================== -- +- Drop Python 3.8, Django 4.0, and Django 4.1. +- Support Python 3.13 and Django 5.1. 4.1.0 (2024-05-13) ================== diff --git a/quicktest.py b/quicktest.py index 86e1615..b87a1ed 100644 --- a/quicktest.py +++ b/quicktest.py @@ -74,7 +74,9 @@ def run_tests(self): # prepare_database() to avoid a call to InitSpatialMetaDataFull(). See: # https://code.djangoproject.com/ticket/32935 # https://groups.google.com/g/spatialite-users/c/SnNZt4AGm_o - from django.contrib.gis.db.backends.spatialite.base import DatabaseWrapper + from django.contrib.gis.db.backends.spatialite.base import ( + DatabaseWrapper, + ) def prepare_database(self): super(DatabaseWrapper, self).prepare_database() diff --git a/setup.py b/setup.py index d5d6b86..36c9451 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ open(os.path.join(here, 'CHANGES'), encoding='utf-8').read(), license='LPGL, see LICENSE file.', install_requires=[ - 'Django>=4.0', + 'Django>=4.2', ], extras_require={ 'field': ['django-leaflet>=0.12'], @@ -34,10 +34,10 @@ 'Environment :: Web Environment', 'Framework :: Django', 'Development Status :: 5 - Production/Stable', - 'Programming Language :: Python :: 3.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', ], ) diff --git a/tox.ini b/tox.ini index 55f2d56..4b679f4 100644 --- a/tox.ini +++ b/tox.ini @@ -3,11 +3,11 @@ skipsdist = True envlist = flake8 isort - py38-django{40,41,42} py39-django{40,41,42} - py310-django{40,41,42,50} - py311-django{41,42,50} - py312-django{42,50} + py310-django{40,41,42,50,51} + py311-django{41,42,50,51} + py312-django{42,50,51} + py313-django{51} [testenv] setenv = @@ -18,6 +18,7 @@ deps = django41: Django>=4.1,<4.2 django42: Django>=4.2,<5.0 django50: Django>=5.0,<5.1 + django51: Django>=5.1,<5.2 commands = python \ -W error::DeprecationWarning \ @@ -33,19 +34,19 @@ changedir = docs deps = sphinx sphinx_rtd_theme - Django>=5.0,<5.1 + Django>=5.1,<5.2 commands = sphinx-build -W -b html -d build/doctrees . build/html [testenv:flake8] usedevelop = false -basepython = python3.12 +basepython = python3.13 deps = flake8 commands = flake8 --ignore=E501,W504 djgeojson [testenv:isort] usedevelop = false -basepython = python3.12 +basepython = python3.13 deps = isort commands = isort .