Skip to content

Commit

Permalink
Update tested Python and Django versions (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Jan 6, 2025
1 parent 2db9499 commit 9ea88ef
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
3 changes: 2 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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)
==================
Expand Down
4 changes: 3 additions & 1 deletion quicktest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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',
],
)
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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 \
Expand All @@ -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 .

Expand Down

0 comments on commit 9ea88ef

Please sign in to comment.