-
Notifications
You must be signed in to change notification settings - Fork 311
/
Copy pathpyproject.toml
141 lines (131 loc) · 2.75 KB
/
pyproject.toml
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
[project]
name = "neuroglancer"
requires-python = ">= 3.10"
dynamic = ["version"]
description = "Python integration for neuroglancer, a WebGL-based viewer for volumetric data"
readme = "README.md"
authors = [
{ name = "Jeremy Maitin-Shepard", email = "[email protected]" },
]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"atomicwrites>=1.4.1",
"google-apitools>=0.5.32",
"google-auth>=2.38.0",
"numpy>=1.11.0",
"pillow>=3.2.0",
"requests>=2.32.3",
"tornado>=6.4.2",
]
[project.optional-dependencies]
webdriver = [
"selenium>=4",
]
[project.urls]
Repository = "https://github.com/google/neuroglancer"
Issues = "https://github.com/google/neuroglancer/issues"
Documentation = "https://neuroglancer-docs.web.app"
[build-system]
requires = [
"setuptools>=64",
"wheel",
"setuptools_scm>=8.1.0",
"numpy>=2",
"nodejs-wheel>=22",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# It would be nice to include the commit hash in the version, but that
# can't be done in a PEP 440-compatible way.
version_scheme = "no-guess-dev"
# Test PyPI does not support local versions.
local_scheme = "no-local-version"
fallback_version = "0.0.0"
parentdir_prefix_version = "neuroglancer-"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"NPY", # numpy
]
ignore = [
"E501", # Line length regulated by ruff format
]
[tool.mypy]
show_error_codes = true
pretty = true
exclude = [
"noxfile\\.py",
"^src/",
"/guide_video_recorder/",
"^docs/",
"^build/",
"^testdata/",
]
[[tool.mypy.overrides]]
module = [
"apitools",
"apitools.*",
"numcodecs",
"google",
"google.*",
"zarr",
"zarrita",
"tensorstore",
"dask",
"dask.*",
"scipy",
"scipy.*",
"cloudvolume",
"trio",
]
ignore_missing_imports = true
[dependency-groups]
dev = [
"requests>=2.32.3",
"selenium>=4",
"tensorstore>=0.1.71",
]
ruff = [
"ruff==0.3.2",
]
mypy = [
"mypy>=1.14.1",
"pandas-stubs>=2.2.3.241126",
"types-atomicwrites>=1.4.5.1",
"types-pillow>=10.2.0.20240822",
"types-requests>=2.32.0.20241016",
"types-setuptools>=75.8.0.20250110",
]
test = [
"pytest>=6.1.2",
"pytest-rerunfailures>=9.1.1",
"pytest-timeout>=1.4.2",
"tensorstore>=0.1.71",
]
docs = [
"jsonschema>=4.23.0",
"numpy>=2.2.2",
"pyyaml>=6.0.2",
"sphinx>=7.4.0,<8.2",
"sphinx-immaterial[black,json]>=0.12.0",
"tensorstore>=0.1.71",
]
cibuildwheel = [
"cibuildwheel>=2.22.0",
]
[tool.uv]
required-version = ">=0.6.2"
default-groups = ["dev", "ruff", "mypy", "test", "docs"]
[tool.pytest.ini_options]
testpaths = [
"python/tests",
]