Skip to content

Commit edbe0f8

Browse files
authored
Support Django 5.2 and Python 3.13, drop Python 3.8 (#388)
* Support Django 5.2 and Python 3.13, drop Python 3.8 * fix syntax * Exclude django 4.2 from python 3.13
1 parent f51ce8e commit edbe0f8

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

.github/workflows/python-app.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,33 @@ jobs:
1919
- '4.2'
2020
- '5.0'
2121
- '5.1'
22+
- '5.2'
2223
python_version:
23-
- '3.8'
2424
- '3.9'
2525
- '3.10'
2626
- '3.11'
2727
- '3.12'
28+
- '3.13'
2829
database: [ 'postgres' ]
2930
exclude:
30-
- django_version: '5.0'
31-
python_version: '3.8'
31+
- django_version: '4.2'
32+
python_version: '3.13'
3233

3334
- django_version: '5.0'
3435
python_version: '3.9'
3536

36-
- django_version: '5.1'
37-
python_version: '3.8'
37+
- django_version: '5.0'
38+
python_version: '3.13'
3839

3940
- django_version: '5.1'
4041
python_version: '3.9'
4142

43+
- django_version: '5.2'
44+
python_version: '3.9'
45+
4246
include:
4347
- django_version: '4.2'
44-
python_version: '3.8'
48+
python_version: '3.9'
4549
database: 'sqlite'
4650
env:
4751
SPATIALITE_LIBRARY_PATH: 'mod_spatialite'
@@ -77,7 +81,7 @@ jobs:
7781
sudo apt-get install -y libproj-dev libgeos-dev gdal-bin libgdal-dev
7882
python -m pip install --upgrade pip
7983
pip install -U flake8 psycopg2-binary argparse
80-
pip install -U Django~=${{ matrix.django_version }}.0
84+
pip install -U Django~=${{ matrix.django_version }}.0a1
8185
- name: Lint with flake8
8286
run: |
8387
flake8 --ignore=E501,W504 leaflet

CHANGES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ CHANGELOG
55
0.31.1 (unreleased)
66
-------------------
77

8-
-
8+
- Support Django 5.2 and Python 3.13 (`#388 <https://github.com/makinacorpus/django-leaflet/pull/388>`__).
9+
- Drop support for Python 3.8 (`#388 <https://github.com/makinacorpus/django-leaflet/pull/388>`__).
910

1011
0.31.0 (2024-10-14)
1112
-------------------

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
description="Use Leaflet in your django projects",
2424
long_description=long_descr,
2525
license='LPGL, see LICENSE file.',
26-
python_requires='>=3.8',
26+
python_requires='>=3.9',
2727
install_requires=requires,
2828
extras_require={
2929
'docs': ['sphinx', 'sphinx-autobuild'],
@@ -40,10 +40,10 @@
4040
'Framework :: Django',
4141
'Development Status :: 5 - Production/Stable',
4242
'Programming Language :: Python :: 3 :: Only',
43-
'Programming Language :: Python :: 3.8',
4443
'Programming Language :: Python :: 3.9',
4544
'Programming Language :: Python :: 3.10',
4645
'Programming Language :: Python :: 3.11',
4746
'Programming Language :: Python :: 3.12',
47+
'Programming Language :: Python :: 3.13',
4848
],
4949
)

tox.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
[tox]
22
envlist =
3-
{py38,py39,py310,py311,py312}-django42
4-
{py310,py311,py312}-django50
5-
{py310,py311,py312}-django51
6-
{py310,py311,py312}-djangomain
3+
py{39,310,311,312}-django42
4+
py{310,311,312}-django50
5+
py{310,311,312,313}-django51
6+
py{310,311,312,313}-django52
7+
py{312,313}-djangomain
78

89
[testenv]
910
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run ./quicktest.py leaflet --db={env:DATABASE:}
1011
deps =
1112
django42: Django~=4.2
1213
django50: Django~=5.0
1314
django51: Django~=5.1
15+
django52: Django~=5.2.0a1
1416
djangomain: https://github.com/django/django/archive/main.tar.gz
1517
postgres: psycopg
1618
coverage
1719
passenv = DATABASE,SPATIALITE_LIBRARY_PATH
18-

0 commit comments

Comments
 (0)