Skip to content

Commit a211572

Browse files
committed
Dependency groups in tox too.
Also adding tox-uv to dev group.
1 parent 26da1f4 commit a211572

File tree

2 files changed

+6
-43
lines changed

2 files changed

+6
-43
lines changed

pyproject.toml

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,6 @@ Documentation = "https://napari-matplotlib.github.io"
3939
[project.entry-points."napari.manifest"]
4040
"napari-matplotlib" = "napari_matplotlib:napari.yaml"
4141

42-
[project.optional-dependencies]
43-
docs = [
44-
"napari[all]",
45-
"numpydoc",
46-
"pydantic<2",
47-
"pydata-sphinx-theme",
48-
"sphinx",
49-
"sphinx-automodapi",
50-
"sphinx-gallery",
51-
]
52-
testing = [
53-
"napari[pyqt6_experimental]>=0.4.18",
54-
"pooch",
55-
"pyqt6",
56-
"pytest",
57-
"pytest-cov",
58-
"pytest-mock",
59-
"pytest-mpl",
60-
"pytest-qt",
61-
"tox",
62-
"pytest-xvfb; sys_platform == 'linux'",
63-
]
64-
6542
[tool.setuptools_scm]
6643
write_to = "src/napari_matplotlib/_version.py"
6744

@@ -157,7 +134,7 @@ docs = [
157134
"sphinx-automodapi",
158135
"sphinx-gallery",
159136
]
160-
test = [
137+
testing = [
161138
"napari[pyqt6_experimental]>=0.4.18",
162139
"pooch",
163140
"pyqt6",
@@ -167,24 +144,10 @@ test = [
167144
"pytest-mpl",
168145
"pytest-qt",
169146
"tox",
147+
"tox-uv",
170148
"pytest-xvfb; sys_platform == 'linux'",
171149
]
172150
dev = [
173-
"napari[all]",
174-
"numpydoc",
175-
"pydantic<2",
176-
"pydata-sphinx-theme",
177-
"sphinx",
178-
"sphinx-automodapi",
179-
"sphinx-gallery",
180-
"napari[pyqt6_experimental]>=0.4.18",
181-
"pooch",
182-
"pyqt6",
183-
"pytest",
184-
"pytest-cov",
185-
"pytest-mock",
186-
"pytest-mpl",
187-
"pytest-qt",
188-
"tox",
189-
"pytest-xvfb; sys_platform == 'linux'",
151+
{include-group = "testing"},
152+
{include-group = "docs"},
190153
]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{310,311,312}
2+
envlist = py{311,312,313}
33
isolated_build = true
44

55
[gh-actions]
@@ -9,6 +9,6 @@ python =
99
3.13: py313
1010

1111
[testenv]
12-
extras = testing
12+
dependency_groups = testing
1313
commands =
1414
python -m pytest --mpl --mpl-generate-summary=html --mpl-results-path={toxinidir}/reports -v --color=yes --cov=napari_matplotlib --cov-report=xml

0 commit comments

Comments
 (0)