- implement shape in Rust

- implement more readers
- fix downloading of bioformats jar
- (mostly) compatible with python version
This commit is contained in:
w.pomp
2026-07-13 13:40:34 +02:00
parent 705ca16379
commit ff7cd562af
36 changed files with 7946 additions and 2843 deletions
+17 -29
View File
@@ -1,55 +1,43 @@
[build-system]
requires = ["maturin>=1.8,<2.0"]
requires = ["maturin>=1.9.4,<2.0"]
build-backend = "maturin"
[project]
name = "ndbioimage"
description = "Bio image reading, metadata and some affine registration."
authors = [
{ name = "W. Pomp", email = "w.pomp@nki.nl" }
]
license = "MIT"
readme = "README.md"
keywords = ["bioformats", "imread", "numpy", "metadata"]
version = "2027.0.0"
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Rust",
"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",
]
dynamic = ["version"]
dynamic = [
"description",
"readme",
"license",
"license-files",
"authors",
"maintainers",
"keywords",
"urls",
]
dependencies = [
"numpy",
"tiffwrite",
"ome-metadata >= 0.2.1",
"tqdm",
"numpy >= 1.16.0",
]
[project.optional-dependencies]
test = ["pytest"]
write = ["matplotlib", "scikit-video"]
[project.urls]
Repository = "https://github.com/wimpomp/ndbioimage/tree/rs"
[project.scripts]
ndbioimage = "ndbioimage:main"
[tool.pytest.ini_options]
filterwarnings = ["ignore:::(colorcet)"]
ndbioimage = "ndbioimage:ndbioimage_rs.main"
ndbioimage_generate_stub = "ndbioimage:ndbioimage_generate_stub"
[tool.maturin]
python-source = "py"
features = ["pyo3/extension-module", "python", "gpl-formats"]
features = ["python", "bioformats_java", "tiffwrite", "czi"]
module-name = "ndbioimage.ndbioimage_rs"
exclude = ["py/ndbioimage/jassets/*", "py/ndbioimage/deps/*"]
include = ["py/ndbioimage/jassets/j4rs*", "py/ndbioimage/deps/libj4rs*"]
strip = true
[tool.isort]