-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (111 loc) · 4.09 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (111 loc) · 4.09 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "multiscale_spatial_image"
description = "Generate a multiscale, chunked, multi-dimensional spatial image data structure that can be serialized to OME-NGFF."
authors = [{name = "Matt McCormick", email = "matt@mmmccormick.com"}]
readme = "README.md"
license.file = "LICENSE"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
keywords = [
"itk",
"ngff",
"ome",
"zarr",
"dask",
"imaging",
"visualization"
]
dynamic = ["version"]
requires-python = ">=3.11"
dependencies = [
"numpy>=2.2.6,<3",
"dask>=2025.11.0,<2026",
"python-dateutil",
"spatial-image>=1.2.3,<2",
"xarray>=2025.6.1,<2026",
"xarray-dataclass>=3.0.0,<4",
"zarr>=3.1.3,<4",
"ngff-zarr>=0.18.2,<0.19"
]
[project.urls]
Home = "https://github.com/spatial-image/multiscale-spatial-image"
Source = "https://github.com/spatial-image/multiscale-spatial-image"
Issues = "https://github.com/spatial-image/multiscale-spatial-image"
[project.optional-dependencies]
test = [
"jsonschema",
"pooch",
"pytest",
"pytest-mypy",
"fsspec",
"urllib3",
"nbmake",
]
itk = [
"itk-filtering >=5.3.0",
]
dask-image = [
"dask-image",
]
imagej = [
"pyimagej",
]
notebooks = [
"matplotlib >=3.9.2,<4",
"ome-types >=0.5.1.post1,<0.6",
"tqdm >=4.66.4,<5"
]
[tool.black]
line-length = 88
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "multiscale_spatial_image/_version.py"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
multiscale-spatial-image = { path = ".", editable = true }
[tool.pixi.tasks]
[tool.pixi.environments]
default = { solve-group = "default" }
test = { features = ["test", "dask-image", "itk"], solve-group = "default" }
notebooks = { features = ["test", "dask-image", "itk", "imagej", "notebooks"], solve-group = "default" }
data = { features = ["data"], no-default-feature = true, solve-group = "default" }
lint = { features = ["lint"], no-default-feature = true, solve-group = "default" }
[tool.pixi.feature.test.tasks]
test = { cmd = "pytest", description = "Run the test suite" }
[tool.pixi.feature.test.dependencies]
python = "3.11.*"
[tool.pixi.feature.notebooks.dependencies]
openjdk = ">=25.0.1,<26"
maven = ">=3.9.11,<4"
jupyterlab = ">=4.4.10,<5"
python = "3.11.*"
jpype1 = ">=1.6.0,<2"
[tool.pixi.feature.notebooks.tasks]
init-imagej = { cmd = "python -c \"import imagej; ij = imagej.init('2.15.0'); print(ij.getVersion())\"", description = "Initialize the python imagej installation" }
test-notebooks = { cmd = "pytest --nbmake --nbmake-timeout=3000 examples/ConvertImageioImageResource.ipynb examples/ConvertITKImage.ipynb examples/ConvertPyImageJDataset.ipynb examples/ConvertTiffFile.ipynb examples/HelloMultiscaleSpatialImageWorld.ipynb", depends-on = ["init-imagej"], description = "Test the notebooks" }
dev-notebooks = { cmd = "jupyter lab examples", description = "Start Jupyter Lab" }
[tool.pixi.feature.data.dependencies]
python = ">=3.11.0,<4"
pooch = ">=1.8.2,<2"
[tool.pixi.feature.data.tasks]
hash-data = { cmd = "tar cvf ../data.tar * && gzip -9 -f ../data.tar && echo 'New SHA256:' && python3 -c 'import pooch; print(pooch.file_hash(\"../data.tar.gz\"))'", cwd = "test/data", description = "Update the testing data tarball and get its sha256 hash" }
[tool.pixi.feature.lint.dependencies]
pre-commit = ">=4.4.0,<5"
[tool.pixi.feature.lint.tasks]
pre-commit-install = { cmd = "pre-commit install", description = "Install pre-commit hooks" }
pre-commit-run = { cmd = "pre-commit run --all", description = "Run pre-commit hooks on all repository files" }
lint = { depends-on = ["pre-commit-run"], description = "Run linters" }