Skip to content

Commit 26da1f4

Browse files
Merge setup.cfg into pyproject.toml and use dependency groups (#316)
1 parent a922dd6 commit 26da1f4

File tree

2 files changed

+114
-70
lines changed

2 files changed

+114
-70
lines changed

pyproject.toml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,81 @@
22
requires = ["setuptools", "setuptools_scm"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "napari-matplotlib"
7+
description = "A plugin to use Matplotlib with napari"
8+
readme = "README.md"
9+
requires-python = ">=3.11"
10+
license = { text = "BSD-3-Clause" }
11+
authors = [
12+
{ name = "David Stansby", email = "d.stansby@ucl.ac.uk" },
13+
]
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Framework :: napari",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: BSD License",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3 :: Only",
23+
"Topic :: Software Development :: Testing",
24+
]
25+
dependencies = [
26+
"matplotlib",
27+
"napari>=0.5",
28+
"numpy>=1.23",
29+
"tinycss2",
30+
]
31+
dynamic = ["version"]
32+
33+
[project.urls]
34+
"Bug Tracker" = "https://github.com/matplotlib/napari-matplotlib/issues"
35+
Documentation = "https://napari-matplotlib.github.io"
36+
"Source Code" = "https://github.com/matplotlib/napari-matplotlib"
37+
"User Support" = "https://github.com/matplotlib/napari-matplotlib/issues"
38+
39+
[project.entry-points."napari.manifest"]
40+
"napari-matplotlib" = "napari_matplotlib:napari.yaml"
41+
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+
565
[tool.setuptools_scm]
666
write_to = "src/napari_matplotlib/_version.py"
767

68+
[tool.setuptools]
69+
include-package-data = true
70+
71+
[tool.setuptools.packages.find]
72+
where = ["src"]
73+
74+
[tool.setuptools.package-dir]
75+
"" = "src"
76+
77+
[tool.setuptools.package-data]
78+
"*" = ["*.yaml"]
79+
880
[tool.pytest.ini_options]
981
filterwarnings = [
1082
"error",
@@ -74,3 +146,45 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
74146
[[tool.mypy.overrides]]
75147
module = ["napari_matplotlib/tests/*"]
76148
disallow_untyped_defs = false
149+
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.4.18",
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+
"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'",
190+
]

setup.cfg

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

0 commit comments

Comments
 (0)