Skip to content

Commit e15a788

Browse files
committed
Prune the CI
1 parent 011a7c5 commit e15a788

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

.github/workflows/tests.yml

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
python-version:
17-
- "3.8"
18-
- "3.9"
1917
- "3.10"
2018
- "3.11"
2119
- "3.12"

CHANGELOG.rst

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Change log
55
Next version
66
~~~~~~~~~~~~
77

8+
- Raised the minimum version requirements to Python 3.10 and Django 4.2.
9+
- Added Django 5.2.
10+
811

912
0.7 (2024-10-28)
1013
~~~~~~~~~~~~~~~~

feincms3_data/data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io
22
import json
33
from collections import defaultdict
4-
from functools import lru_cache
4+
from functools import cache
55
from itertools import chain, count
66

77
from django.apps import apps
@@ -238,7 +238,7 @@ def _finalize(
238238

239239

240240
def pk_cache():
241-
@lru_cache(maxsize=None)
241+
@cache
242242
def pks(model):
243243
return set(model._default_manager.values_list("pk", flat=True))
244244

pyproject.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = { text = "BSD-3-Clause" }
1111
authors = [
1212
{ name = "Matthias Kestenholz", email = "[email protected]" },
1313
]
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.10"
1515
classifiers = [
1616
"Environment :: Web Environment",
1717
"Framework :: Django",
@@ -20,8 +20,6 @@ classifiers = [
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python",
2222
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.8",
24-
"Programming Language :: Python :: 3.9",
2523
"Programming Language :: Python :: 3.10",
2624
"Programming Language :: Python :: 3.11",
2725
"Programming Language :: Python :: 3.12",
@@ -34,7 +32,7 @@ dynamic = [
3432
"version",
3533
]
3634
dependencies = [
37-
"django>=3.2",
35+
"django>=4.2",
3836
]
3937
optional-dependencies.tests = [
4038
"coverage",
@@ -45,7 +43,7 @@ urls.Homepage = "https://github.com/matthiask/feincms3-data/"
4543
path = "feincms3_data/__init__.py"
4644

4745
[tool.ruff]
48-
target-version = "py38"
46+
target-version = "py310"
4947

5048
fix = true
5149
show-fixes = true

tox.ini

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[tox]
22
envlist =
3-
py{38,39,310}-dj{32,40,41,42}
4-
py{310,311,312}-dj{32,40,41,42,50,main}
5-
py{313}-dj{51,main}
3+
py{310}-dj{42}
4+
py{310,311,312}-dj{42,51,52}
5+
py{312}-dj{51,52,main}
6+
py{313}-dj{51,52,main}
67

78
[testenv]
89
usedevelop = true
@@ -11,12 +12,9 @@ commands =
1112
python -Wd {envbindir}/coverage run tests/manage.py test -v2 --keepdb {posargs:testapp}
1213
coverage report -m
1314
deps =
14-
dj32: Django>=3.2,<4.0
15-
dj40: Django>=4.0,<4.1
16-
dj41: Django>=4.1,<4.2
1715
dj42: Django>=4.2,<5.0
18-
dj50: Django>=5.0,<5.1
1916
dj51: Django>=5.1,<5.2
17+
dj52: Django>=5.2a1,<6.0
2018
djmain: https://github.com/django/django/archive/main.tar.gz
2119

2220
[testenv:docs]

0 commit comments

Comments
 (0)