Skip to content

Commit 506ad93

Browse files
committed
build: support uv.lock
1 parent f21545e commit 506ad93

File tree

12 files changed

+1485
-125
lines changed

12 files changed

+1485
-125
lines changed

.github/workflows/tox_matrix.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ jobs:
2222
cache: 'pip' # caching pip dependencies
2323
- name: Install requirements
2424
run: |
25-
pip install wheel
26-
pip install -r requirements/requirements_tox.txt
25+
pip install uv
2726
- name: Run tox
28-
run: tox -e py -vvv
27+
run: uv run --only-group tox --with tox-uv --isolated tox -e py -vvv
2928
env:
3029
PIP_EXTRA_INDEX_URL: ${{vars.PIP_EXTRA_INDEX_URL}}

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Include the license file
2-
include LICENSE tox.ini README.rst requirements.txt
2+
include LICENSE tox.ini README.rst
33

44
include docs/make.bat docs/Makefile
55

6-
recursive-include requirements *.txt
76
recursive-include docs/source *
87
recursive-include tests *.py

pyproject.toml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,33 @@ classifiers = [
2222
"Topic :: System :: Archiving :: Packaging",
2323
]
2424

25+
[dependency-groups]
26+
docs = ["sphinx"]
27+
type_checking = [
28+
"mypy",
29+
"lxml",
30+
]
31+
32+
lint = [
33+
"flake8",
34+
{include-group = "type_checking"},
35+
]
36+
tox = ["tox"]
37+
test = [
38+
"coverage[toml]",
39+
"pytest",
40+
]
41+
dev = [
42+
{include-group = "docs"},
43+
{include-group = "lint"},
44+
{include-group = "test"},
45+
{include-group = "tox"},
46+
]
47+
release = ["twine"]
48+
ci = [
49+
{include-group = "release"},
50+
{include-group = "dev"},
51+
]
2552

2653
[tool.setuptools]
2754
packages = [
@@ -59,7 +86,6 @@ testpaths = [
5986
"tests"
6087
]
6188

62-
63-
6489
[tool.mypy]
6590
ignore_missing_imports = true
91+

requirements-ci.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements/requirements-ci-freeze.txt

Lines changed: 0 additions & 52 deletions
This file was deleted.

requirements/requirements-ci.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

requirements/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

requirements/requirements_tox.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ testpaths = tests
77
addopts = --verbose
88

99
[testenv]
10-
deps = pytest
10+
dependency_groups = test
1111
commands = {envbindir}/pytest --basetemp={envtmpdir}/pytest {posargs}
1212

1313
[testenv:docs]

0 commit comments

Comments
 (0)