-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (122 loc) · 3.56 KB
/
pyproject.toml
File metadata and controls
141 lines (122 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["setuptools>=77.0.3", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "napari-metadata"
description = "View and edit layer metadata"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{name = "Andy Sweet", email = "andrewdsweet@gmail.com"},
{name = 'napari team', email = 'napari-steering-council@googlegroups.com'},
{name = 'napari-metadata contributors'},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: napari",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Image Processing",
]
requires-python = ">=3.10"
dependencies = [
"numpy",
"qtpy",
"pint",
"superqt",
"typing_extensions", # only needed for python 3.10 import of Self
]
dynamic = ["version"]
[project.urls]
"Bug Tracker" = "https://github.com/napari/napari-metadata/issues"
"Documentation" = "https://napari.org/napari-metadata"
"Source Code" = "https://github.com/napari/napari-metadata"
"User Support" = "https://github.com/napari/napari-metadata/issues"
[project.entry-points."napari.manifest"]
napari-metadata = "napari_metadata:napari.yaml"
[dependency-groups]
dev = [
"napari[qt]",
"npe2",
"pytest",
"coverage>7",
"pytest-qt",
"tox-uv",
"prek",
]
docs = [
"sphinx>6",
"sphinx-autobuild",
"sphinx-external-toc",
"sphinx-copybutton",
"sphinx-favicon",
"myst-nb",
"napari-sphinx-theme>=0.3.0",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"*" = ["*.yaml"]
[tool.setuptools_scm]
write_to = "src/napari_metadata/_version.py"
fallback_version = "0.0.1+nogit"
[tool.ruff]
line-length = 79
fix = true
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
select = [
"E", "F", "W", #flake8
"UP", # pyupgrade
"I", # isort
"BLE", # flake8-blind-exception
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PIE", # flake8-pie
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long. handled by formatter
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
]
[tool.coverage.run]
omit = [
"*/napari_metadata/_version.py",
]
source = [
"src/napari_metadata",
"napari_metadata",
]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
napari-metadata = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev"], solve-group = "default" }
docs = { features = ["docs"], solve-group = "default" }
[tool.pixi.feature.docs.tasks.docs-clean]
cmd = "rm -rf docs/_build"
[tool.pixi.feature.docs.tasks.docs-build]
cmd = "sphinx-build -b html docs/ docs/_build"
env = { NAPARI_APPLICATION_IPY_INTERACTIVE = "0" }
depends-on = ["docs-clean"]
[tool.pixi.feature.docs.tasks.docs-live]
cmd = "sphinx-autobuild -b html docs/ docs/_build --open-browser --port=0"
env = { NAPARI_APPLICATION_IPY_INTERACTIVE = "0" }