Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (58 loc) · 2.01 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (58 loc) · 2.01 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
[build-system]
requires = ["hatchling>=1.27"] # 1.27 understands license-files
build-backend = "hatchling.build"
[project]
name = "subcellseg"
version = "0.1.0"
description = "SubCellSeg: one 3D segmentation model for many fluorescently tagged cellular structures"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">=3.10"
keywords = ["segmentation", "microscopy", "3D", "deep learning", "cell biology"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"torch>=2.2",
"pytorch-lightning>=2.2",
"monai>=1.4",
"bioio>=1.5",
"bioio-ome-tiff",
"bioio-tifffile",
"tifffile>=2024.1",
"numpy>=1.24",
"tqdm",
]
[project.optional-dependencies]
# Extra file formats. Each one is a bioio reader plugin.
czi = ["bioio-czi"]
zarr = ["bioio-ome-zarr"]
nd2 = ["bioio-nd2"]
all = ["bioio-czi", "bioio-ome-zarr", "bioio-nd2"]
notebook = ["jupyterlab", "matplotlib"]
dev = ["pytest>=8", "pytest-timeout"]
[project.urls]
Homepage = "https://github.com/AllenCell/SubCellSeg"
Issues = "https://github.com/AllenCell/SubCellSeg/issues"
[project.scripts]
subcellseg = "subcellseg.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/subcellseg"]
# Note on PyTorch: which build is right (CUDA version, or CPU-only) depends on
# the machine, and on Windows the default from PyPI is CPU-only. The install
# instructions therefore use `uv ... --torch-backend auto`, which detects the
# GPU and picks the matching build. See docs/INSTALL.md.
[tool.pytest.ini_options]
testpaths = ["tests"]
timeout = 600 # a hung data worker should fail the run, not stall it
filterwarnings = ["ignore::DeprecationWarning", "ignore::FutureWarning"]
[tool.ruff]
line-length = 100
extend-exclude = ["examples"]
[tool.ruff.lint]
# E/W pycodestyle, F pyflakes, I isort, UP pyupgrade, B bugbear
select = ["E", "W", "F", "I", "UP", "B"]