Skip to content

Commit 3fec310

Browse files
committed
Remove optionals in favour of groups.
1 parent 7d6329b commit 3fec310

1 file changed

Lines changed: 9 additions & 38 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ description = "A plugin to use Matplotlib with napari"
88
readme = "README.md"
99
requires-python = ">=3.11"
1010
license = { text = "BSD-3-Clause" }
11-
authors = [
12-
{ name = "David Stansby", email = "d.stansby@ucl.ac.uk" },
13-
]
11+
authors = [{ name = "David Stansby", email = "d.stansby@ucl.ac.uk" }]
1412
classifiers = [
1513
"Development Status :: 5 - Production/Stable",
1614
"Framework :: napari",
@@ -22,12 +20,7 @@ classifiers = [
2220
"Programming Language :: Python :: 3 :: Only",
2321
"Topic :: Software Development :: Testing",
2422
]
25-
dependencies = [
26-
"matplotlib",
27-
"napari>=0.5",
28-
"numpy>=1.23",
29-
"tinycss2",
30-
]
23+
dependencies = ["matplotlib", "napari>=0.5", "numpy>=2", "tinycss2"]
3124
dynamic = ["version"]
3225

3326
[project.urls]
@@ -39,7 +32,7 @@ Documentation = "https://napari-matplotlib.github.io"
3932
[project.entry-points."napari.manifest"]
4033
"napari-matplotlib" = "napari_matplotlib:napari.yaml"
4134

42-
[project.optional-dependencies]
35+
[dependency-groups]
4336
docs = [
4437
"napari[all]",
4538
"numpydoc",
@@ -51,6 +44,7 @@ docs = [
5144
]
5245
testing = [
5346
"napari[pyqt6_experimental]>=0.5",
47+
"numpy>=2.1",
5448
"pooch",
5549
"pyqt6",
5650
"pytest",
@@ -61,6 +55,10 @@ testing = [
6155
"tox",
6256
"pytest-xvfb; sys_platform == 'linux'",
6357
]
58+
dev = [
59+
{ include-group = "testing" },
60+
{ include-group = "docs" }
61+
]
6462

6563
[tool.setuptools_scm]
6664
write_to = "src/napari_matplotlib/_version.py"
@@ -147,33 +145,6 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
147145
module = ["napari_matplotlib/tests/*"]
148146
disallow_untyped_defs = false
149147

150-
[dependency-groups]
151-
docs = [
152-
"napari[all]",
153-
"numpydoc",
154-
"pydantic<2",
155-
"pydata-sphinx-theme",
156-
"sphinx",
157-
"sphinx-automodapi",
158-
"sphinx-gallery",
159-
]
160-
test = [
161-
"napari[pyqt6_experimental]>=0.5",
162-
"pooch",
163-
"pyqt6",
164-
"pytest",
165-
"pytest-cov",
166-
"pytest-mock",
167-
"pytest-mpl",
168-
"pytest-qt",
169-
"tox",
170-
"pytest-xvfb; sys_platform == 'linux'",
171-
]
172-
dev = [
173-
{include-group = "test"},
174-
{include-group = "docs"},
175-
]
176-
177148
[tool.tox]
178149
requires = ["tox>=4.19"]
179150
env_list = ["py311", "py312", "py313"]
@@ -196,5 +167,5 @@ commands = [[
196167
"-v",
197168
"--color=yes",
198169
"--cov=napari_matplotlib",
199-
"--cov-report=xml"
170+
"--cov-report=xml",
200171
]]

0 commit comments

Comments
 (0)