Skip to content

Commit 44d1c02

Browse files
authored
Merge pull request #312 from agateblue/latest-python
Drop support for python 3.8, django 3.2, run tests on python 3.12, 3.13 and django 5.1
2 parents 68a1214 + cc81f20 commit 44d1c02

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version:
17-
- '3.7'
1817
- '3.8'
1918
- '3.9'
2019
- '3.10'
2120
- '3.11'
21+
- '3.12'
22+
- '3.13'
2223
steps:
2324

2425
- uses: actions/checkout@v3

requirements-test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ pytest-cov
1010
pytest-django
1111
pytest-sugar
1212
django-nose
13-
ipdb
13+
ipdb
14+
setuptools

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
packages=["dynamic_preferences"],
3434
include_package_data=True,
3535
install_requires=[
36-
"django>=3.2",
36+
"django>=4.2",
3737
"persisting_theory==1.0",
3838
],
3939
license="BSD",

tox.ini

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
[tox]
77
envlist =
8-
{py37,py38,py39,py310}-django-32
9-
{py38,py39,py310,py311}-django-42
10-
{py311}-django-main
8+
{py38,py39,py310,py311,py312}-django-42
9+
{py310,py311,py312,py313}-django-51
10+
{py313}-django-main
1111

1212

1313
[testenv]
@@ -16,19 +16,20 @@ setenv =
1616
PYTHONPATH = {toxinidir}
1717
commands = pytest --cov=dynamic_preferences {posargs}
1818
deps =
19-
django-{32,42,main}: djangorestframework>=3.13,<4
20-
django-32: Django>=3.2,<3.3
19+
django-{42,51,main}: djangorestframework>=3.13,<4
2120
django-42: Django>=4.2,<5.0
21+
django-51: Django>=5.1,<6.0
2222
django-main: https://github.com/django/django/archive/main.tar.gz
2323
-r{toxinidir}/requirements-test.txt
2424

2525

2626
basepython =
27+
py313: python3.13
28+
py312: python3.12
2729
py311: python3.11
2830
py310: python3.10
2931
py39: python3.9
3032
py38: python3.8
31-
py37: python3.7
3233

33-
[testenv:py311-django-main]
34+
[testenv:py313-django-main]
3435
ignore_outcome = true

0 commit comments

Comments
 (0)