-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
315 lines (275 loc) · 9.27 KB
/
pyproject.toml
File metadata and controls
315 lines (275 loc) · 9.27 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
# NOTE: For OMERO extras, zeroc-ice is installed via direct URL references
# with environment markers. This allows pip to automatically download and install
# the appropriate zeroc-ice wheel from Glencoe Software's repository.
#
# When installing with OMERO support, use:
# pip install -e ".[omero]" # For editable installs
# pip install ".[omero]" # For regular installs
#
# For more information, see:
# https://www.glencoesoftware.com/blog/2023/12/08/ice-binaries-for-omero.html
[project]
name = "openhcs"
dynamic = ["version"]
description = "High-Content Screening image processing engine with native GPU support"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT License"}
authors = [
{name = "Tristan Simas", email = "tristan.simas@mail.mcgill.ca"}
]
keywords = [
"microscopy",
"image-processing",
"high-content-screening",
"gpu",
"computer-vision"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
# Core dependencies
dependencies = [
# Core image processing and scientific computing
"numpy>=1.26.4",
"scikit-image>=0.25.2",
"scikit-learn>=1.7.1",
"scipy>=1.12.0",
"pandas>=2.3.1",
# Image I/O and formats
"imageio>=2.37.0",
"tifffile>=2025.6.11",
"imagecodecs>=2025.3.30",
"opencv-python>=4.11.0.86",
"Multi-Template-Matching>=2.0.1",
"roifile>=2024.5.24", # Required for ROI saving to disk
# Storage and serialization
"PyYAML>=6.0.2",
"zarr>=2.18.7,<3.0",
"ome-zarr>=0.11.1",
"dill>=0.4.0",
# Core utilities
"setuptools",
"packaging>=21.0", # For version parsing (replaces deprecated pkg_resources)
"watchdog>=6.0.0",
"portalocker>=2.8.2", # Cross-platform file locking (Windows compatibility for fcntl)
"requests>=2.31.0", # HTTP library for LLM service communication
# System monitoring (required by ui/shared/system_monitor_core.py)
"psutil>=5.9.0",
# External dependencies (PyPI versions for production builds)
"zmqruntime>=0.1.0",
"pycodify>=0.1.0",
"objectstate>=0.1.0",
"python-introspect>=0.1.1",
"metaclass-registry>=0.1.0",
"arraybridge>=0.1.0",
"polystore>=0.1.0",
"pyqt-reactive>=0.1.0",
]
[project.optional-dependencies]
# Development dependencies (CPU-only testing)
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"coverage>=7.3.2",
"genbadge[coverage]",
"pytest-asyncio>=0.21.0",
"pyzmq>=26.0.0", # Required for ZMQ execution and OMERO integration tests
]
# GUI testing dependencies
dev-gui = [
"pytest-qt>=4.2.0",
]
# Terminal User Interface (TUI) - DEPRECATED, not available on PyPI
# TUI has external dependencies that require local development setup
# For development, use pip install -e ".[dev,gui]" (custom build backend handles it)
# PyQt6 Graphical User Interface (GUI) dependencies
gui = [
"PyQt6>=6.9.1",
"PyQt6-QScintilla>=2.14.1",
"pyqtgraph>=0.13.7", # Used for system monitor visualization
"PyOpenGL>=3.1.7", # GPU-accelerated flash overlay rendering (optional, auto-fallback to QPainter)
"GPUtil>=1.4.0",
"distinctipy>=1.2.2", # Perceptually distinct colors for scope-based visuals
"wcag-contrast-ratio>=0.9", # Contrast checking for scope colors
# plotext removed - PyQt GUI now uses pyqtgraph instead
# psutil moved to core dependencies (required by ui/shared/system_monitor_core.py)
]
# Napari viewer
napari = [
"napari>=0.4.18",
"napari-roi-manager>=0.0.6",
]
# Fiji/ImageJ integration
fiji = [
"pyimagej>=1.4.1",
"scyjava>=1.9.1",
]
# All visualization tools (napari + fiji)
viz = [
"napari>=0.4.18",
"napari-roi-manager>=0.0.6",
"pyimagej>=1.4.1",
"scyjava>=1.9.1",
]
# OMERO integration dependencies
#
# IMPORTANT: PyPI does not allow direct URL dependencies in project metadata.
# The zeroc-ice wheels required by omero-py must be installed via the helper script
# or requirements file instead of as an extra dependency here.
#
# Installation:
# python scripts/install_omero_deps.py
# # or
# pip install -r requirements-omero.txt
#
# Alternative installation (using requirements file):
# pip install -r requirements-omero.txt
#
# For more information, see:
# - https://www.glencoesoftware.com/blog/2023/12/08/ice-binaries-for-omero.html
# - scripts/install_omero_deps.py
# - requirements-omero.txt
omero = [
"omero-py>=5.19.0",
]
# Documentation dependencies
docs = [
"sphinx>=4.0.0",
"sphinx-rtd-theme>=1.0.0",
"sphinx-toolbox>=3.0.0",
"sphinx-design>=0.5.0",
]
# Remote execution and OMERO integration
#
# IMPORTANT: PyPI does not allow direct URL dependencies in project metadata.
# Install zeroc-ice for OMERO using scripts/install_omero_deps.py or requirements-omero.txt.
#
# See the 'omero' optional dependency section above for more details.
remote = [
"pyzmq>=26.0.0", # ZMQ-based remote execution and streaming
"omero-py>=5.19.0", # OMERO Python bindings for OMERO backend
]
# GPU acceleration dependencies
gpu = [
# PyTorch
"torch>=2.6.0,<2.8.0",
"torchvision>=0.21.0,<0.23.0",
# JAX
"jax>=0.5.3,<0.6.0",
"jaxlib>=0.5.3,<0.6.0",
# JAX CUDA plugins
"jax-cuda12-pjrt>=0.5.3,<0.6.0",
"jax-cuda12-plugin>=0.5.3,<0.6.0",
# CuPy
"cupy-cuda12x>=13.3.0,<14.0.0",
# CuCIM
"cucim-cu12>=25.6.0,<26.0.0",
# TensorFlow
"tensorflow>=2.19.0,<2.20.0",
# TensorFlow Probability
"tensorflow-probability[tf]>=0.25.0,<0.26.0",
# pyclesperanto
"pyclesperanto>=0.17.1",
# torbi - GPU-accelerated Viterbi decoding (git dependency, install manually if needed)
# "torbi @ git+https://github.com/OpenHCSDev/torbi.git",
]
# All non-dev extras combined (TUI excluded - deprecated)
all = [
# GUI
"PyQt6>=6.9.1",
"PyQt6-QScintilla>=2.14.1",
"pyqtgraph>=0.13.7",
"GPUtil>=1.4.0",
# plotext removed - PyQt GUI now uses pyqtgraph instead
# psutil moved to core dependencies (required by ui/shared/system_monitor_core.py)
# Viz
"napari>=0.4.18",
"napari-roi-manager>=0.0.6",
"pyimagej>=1.4.1",
"scyjava>=1.9.1",
# GPU
"torch>=2.6.0,<2.8.0",
"torchvision>=0.21.0,<0.23.0",
"jax>=0.5.3,<0.6.0",
"jaxlib>=0.5.3,<0.6.0",
"jax-cuda12-pjrt>=0.5.3,<0.6.0",
"jax-cuda12-plugin>=0.5.3,<0.6.0",
"cupy-cuda12x>=13.3.0,<14.0.0",
"cucim-cu12>=25.6.0,<26.0.0",
"tensorflow>=2.19.0,<2.20.0",
"tensorflow-probability[tf]>=0.25.0,<0.26.0",
"pyclesperanto>=0.17.1",
# "torbi @ git+https://github.com/OpenHCSDev/torbi.git", # Git dependency, install manually if needed
]
[project.urls]
Homepage = "https://github.com/OpenHCSDev/OpenHCS"
"Bug Reports" = "https://github.com/OpenHCSDev/OpenHCS/issues"
Source = "https://github.com/OpenHCSDev/OpenHCS"
Documentation = "https://github.com/OpenHCSDev/OpenHCS/blob/main/README.md"
[project.scripts]
# Main interfaces - GUI is now the default
openhcs = "openhcs.pyqt_gui.__main__:main"
openhcs-gui = "openhcs.pyqt_gui.__main__:main"
# openhcs-tui = "openhcs.textual_tui.__main__:main" # TUI deprecated, not in PyPI
# Utility scripts
openhcs-recache = "openhcs.utils.recache_function_registry:main"
[tool.setuptools]
# Automatically find all packages under openhcs/
zip-safe = false
[tool.setuptools.packages.find]
include = ["openhcs*"]
exclude = ["openhcs.textual_tui*"]
[tool.setuptools.dynamic]
version = {attr = "openhcs.__version__"}
[tool.setuptools.package-data]
openhcs = ["**/*.css", "**/*.yaml", "**/*.yml", "**/*.json"]
# GPU Dependencies Version Notes:
# - JAX 0.4.38: Last version compatible with CuDNN 9.5.x (JAX 0.5.0+ requires CuDNN 9.8+)
# - JAX CUDA plugins must exactly match JAX version for PJRT API compatibility
# - PyTorch 2.7.x: Compatible with CUDA 12.6 and CuDNN 9.5.x
# - TensorFlow 2.15-2.19: Stable DLPack support (2.12+ required for DLPack)
# - CuPy: Use cupy-cuda12x for broad CUDA 12.x compatibility (not cupy-cuda120)
# - CuCIM: PyPI cucim-cu12 package is incomplete (missing filters), use conda for full version
# - torbi: Using patched fork that fixes PyTorch 2.6+ CUDA compilation issues (py_limited_api)
#
# Installation Examples:
# - Base package only: pip install openhcs
# - With GUI: pip install "openhcs[gui]"
# - With GPU support: pip install "openhcs[gpu]"
# - Full installation: pip install "openhcs[all]"
#
# Development Installation:
# pip install -e ".[dev,gui]"
# (The custom build backend automatically uses local external modules)
#
# Force production mode in development:
# OPENHCS_DEV_MODE=0 pip install -e ".[dev,gui]"
#
# See docs/development_setup.md for more details
[tool.coverage.run]
omit = [
"openhcs/textual_tui/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]