Skip to content

Commit 3fd55de

Browse files
committed
Drop support for Python 3.9, test on Django 5.2 and Python 3.13/3.14, packaging updates
1 parent 34f234c commit 3fd55de

File tree

4 files changed

+95
-102
lines changed

4 files changed

+95
-102
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ name: CI
33
on: [push, pull_request]
44

55
env:
6+
UV_SYSTEM_PYTHON: 1
67
UV_PYTHON_DOWNLOADS: never
78
UV_PYTHON_PREFERENCE: only-system
89

910
jobs:
1011
checks:
1112
runs-on: ubuntu-latest
1213
steps:
13-
- uses: actions/checkout@v4
14-
- uses: chartboost/ruff-action@v1
14+
- uses: actions/checkout@v5
15+
- uses: astral-sh/ruff-action@v3
1516

1617
test:
1718
runs-on: ubuntu-latest
@@ -30,22 +31,26 @@ jobs:
3031
- 5432:5432
3132
strategy:
3233
matrix:
33-
django-version: ["4.2", "5.0", "5.1"]
34-
python-version: ["3.10", "3.11", "3.12"]
35-
include:
34+
django-version: ["4.2", "5.0", "5.1", "5.2"]
35+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
36+
exclude:
3637
- django-version: "4.2"
37-
python-version: "3.9"
38+
python-version: "3.14"
39+
- django-version: "5.0"
40+
python-version: "3.14"
3841
- django-version: "5.1"
39-
python-version: "3.13"
42+
python-version: "3.14"
4043
steps:
41-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v5
4245
- name: Set up Python ${{ matrix.python-version }}
43-
uses: actions/setup-python@v5
46+
uses: actions/setup-python@v6
4447
with:
4548
python-version: ${{ matrix.python-version }}
4649
- name: Setup uv
47-
uses: astral-sh/setup-uv@v4
50+
uses: astral-sh/setup-uv@v6
4851
- name: Run Tests (PostgreSQL)
4952
run: uv run --with "Django~=${{ matrix.django-version }}" manage.py test
5053
- name: Run Tests (SQLite)
51-
run: TEST_ENGINE=sqlite uv run --with "Django~=${{ matrix.django-version }}" manage.py test
54+
run: uv run --with "Django~=${{ matrix.django-version }}" manage.py test
55+
env:
56+
TEST_ENGINE: sqlite

pyproject.toml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[project]
22
name = "django-history-triggers"
3+
version = "3.7.0"
34
authors = [
45
{name = "Dan Watson", email = "watsond@imsweb.com"},
56
]
6-
dynamic = ["version"]
77
description = "Management command and middleware for Django history triggers."
88
readme = "README.md"
9-
requires-python = ">=3.9"
9+
requires-python = ">=3.10"
1010
license = {text = "BSD-2-Clause"}
1111
dependencies = []
1212
classifiers = [
@@ -19,24 +19,21 @@ classifiers = [
1919
"Topic :: Utilities",
2020
]
2121

22+
[project.urls]
23+
Repository = "https://github.com/imsweb/django-history-triggers"
24+
2225
[dependency-groups]
2326
dev = [
2427
"django",
2528
"psycopg[binary]",
2629
]
2730

2831
[build-system]
29-
requires = ["hatchling"]
30-
build-backend = "hatchling.build"
31-
32-
[project.urls]
33-
Repository = "https://github.com/imsweb/django-history-triggers"
34-
35-
[tool.hatch.version]
36-
path = "src/history/__init__.py"
32+
requires = ["uv_build>=0.9.2,<0.10.0"]
33+
build-backend = "uv_build"
3734

38-
[tool.hatch.build.targets.wheel]
39-
packages = ["src/history"]
35+
[tool.uv.build-backend]
36+
module-name = "history"
4037

4138
[tool.ruff.lint]
4239
extend-select = ["I"]

src/history/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import re
1+
import importlib.metadata
22

33
from django.conf import settings
44

55
from .backends import get_backend, session # noqa
66
from .utils import get_history_model # noqa
77

8-
__version__ = "3.6.0"
8+
__version__ = importlib.metadata.version("django-history-triggers")
99
__version_info__ = tuple(
10-
int(num) if num.isdigit() else num
11-
for num in re.findall(r"([a-z\d]+)", __version__, re.I)
10+
int(num) if num.isdigit() else num for num in __version__.split(".")
1211
)
1312

1413

0 commit comments

Comments
 (0)