Skip to content

Commit cfc8f67

Browse files
committed
update tox, gh-actions and pyproject.toml
1 parent 853d814 commit cfc8f67

File tree

4 files changed

+46
-370
lines changed

4 files changed

+46
-370
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,16 @@ jobs:
5252
python-version: ${{ matrix.python-version }}
5353
enable-cache: true
5454

55-
# - name: Get uv cache dir
56-
# id: uv-cache
57-
# run: echo "dir=$(uv run pip cache dir)" >> $GITHUB_OUTPUT
58-
#
59-
# - name: Cache uv dependencies
60-
# uses: actions/cache@v4
61-
# with:
62-
# path: ${{ steps.uv-cache.outputs.dir }}
63-
# key: uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/tox.ini') }}
64-
# restore-keys: |
65-
# uv-${{ matrix.python-version }}-
66-
6755
- name: Install tox
6856
run: |
6957
uv tool install tox --with tox-uv
7058
7159
- name: Verify tox plugins
72-
run: uv run --group test --no-sources tox --version
60+
run: uv run --active --no-sources tox --version
7361

7462
- name: Tox tests
7563
run: |
76-
uv run --active --group test --no-sources tox
64+
uv run --active --no-sources tox
7765
env:
7866
DJANGO: ${{ matrix.django-version }}
7967

pyproject.toml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
[build-system]
2-
requires = ["uv_build>=0.8.2,<0.9.0"]
3-
build-backend = "uv_build"
4-
5-
[tool.uv.build-backend]
6-
module-root = "src"
7-
source-exclude = ["bin"]
8-
namespace = false
9-
101
[project]
112
name = "django_audit_fields"
123
version = "2.0.3"
@@ -35,13 +26,23 @@ license-files = ["LICEN[CS]E*"]
3526
requires-python = ">=3.12"
3627
dependencies = ["django-revision>=2.0.0"]
3728

38-
3929
[project.urls]
4030
Homepage = "https://github.com/erikvw/django-audit-fields"
4131
Documentation = "https://github.com/erikvw/django-audit-fields/docs"
4232
Repository = "https://github.com/erikvw/django-audit-fields.git"
4333
Changelog = "https://github.com/erikvw/django-audit-fields/blob/main/CHANGES"
4434

35+
36+
[build-system]
37+
requires = ["uv_build>=0.9.0"]
38+
build-backend = "uv_build"
39+
40+
[tool.uv.build-backend]
41+
module-root = "src"
42+
source-exclude = ["bin"]
43+
namespace = false
44+
45+
4546
[tool.ruff]
4647
line-length = 95
4748
indent-width = 4
@@ -115,10 +116,6 @@ ignore_directives = ["toctree", "code-block"]
115116

116117
[dependency-groups]
117118

118-
develop = [
119-
"django>=5.2.5",
120-
]
121-
122119
docs = [
123120
"furo>=2025.7.19",
124121
"sphinx>=8.2.3",
@@ -129,14 +126,6 @@ lint = [
129126
"ruff>=0.12.5",
130127
]
131128

132-
test = [
133-
"coverage>=7.10.3",
134-
"django>=5.2",
135-
"edc-test-settings>=1.1.2",
136-
"tox-uv>=1.28.0",
137-
]
138-
139-
140129
[tool.uv.sources]
141130
django-audit-fields = { workspace = true }
142131
django-revision = { path = "../django-revision", editable = true }

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ DJANGO =
1818

1919
[testenv]
2020
deps =
21-
dj51: Django>=5.2,<5.3
21+
dj52: Django>=5.2,<5.3
2222
djdev: git+https://github.com/django/django.git@main
2323

2424
commands =
25-
uv run --group test --no-sources coverage run -a runtests.py
26-
uv run --group test --no-sources coverage report
25+
uv run --active --no-sources coverage run -a runtests.py
26+
uv run --active --no-sources coverage report
2727

2828
[testenv:lint]
2929
commands =

0 commit comments

Comments
 (0)