Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[docs]"
python -m pip install "." --group docs
sudo apt install graphviz --yes

- name: Build Docs
Expand Down
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,58 @@
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "napari-matplotlib"
description = "A plugin to use Matplotlib with napari"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "David Stansby", email = "d.stansby@ucl.ac.uk" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: napari",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Testing",
]
dependencies = [
"matplotlib",
"napari>=0.5",
"numpy>=1.23",
"tinycss2",
]
dynamic = ["version"]

[project.urls]
"Bug Tracker" = "https://github.com/matplotlib/napari-matplotlib/issues"
Documentation = "https://napari-matplotlib.github.io"
"Source Code" = "https://github.com/matplotlib/napari-matplotlib"
"User Support" = "https://github.com/matplotlib/napari-matplotlib/issues"

[project.entry-points."napari.manifest"]
"napari-matplotlib" = "napari_matplotlib:napari.yaml"

[tool.setuptools_scm]
write_to = "src/napari_matplotlib/_version.py"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-dir]
"" = "src"

[tool.setuptools.package-data]
"*" = ["*.yaml"]

[tool.pytest.ini_options]
filterwarnings = [
"error",
Expand Down Expand Up @@ -74,3 +123,31 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
[[tool.mypy.overrides]]
module = ["napari_matplotlib/tests/*"]
disallow_untyped_defs = false

[dependency-groups]
docs = [
"napari[all]",
"numpydoc",
"pydantic<2",
"pydata-sphinx-theme",
"sphinx",
"sphinx-automodapi",
"sphinx-gallery",
]
testing = [
"napari[pyqt6_experimental]>=0.4.18",
"pooch",
"pyqt6",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-mpl",
"pytest-qt",
"tox",
"tox-uv",
"pytest-xvfb; sys_platform == 'linux'",
]
dev = [
{include-group = "testing"},
{include-group = "docs"},
]
70 changes: 0 additions & 70 deletions setup.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{310,311,312}
envlist = py{311,312,313}
isolated_build = true

[gh-actions]
Expand All @@ -9,6 +9,6 @@ python =
3.13: py313

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