-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (147 loc) · 3.92 KB
/
pyproject.toml
File metadata and controls
163 lines (147 loc) · 3.92 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
[build-system]
requires = [
"setuptools>=42",
"setuptools-scm[simple]>=9.2",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "ImSwitchUC2"
description = "Microscopy control"
readme = "README.md"
license = {text = "GPL-3.0-or-later"}
authors = [
{name = "Benedict Diederich", email = "benedictdied@gmail.com"},
{name = "Xavier Casas Moreno"},
]
maintainers = [
{name = "Benedict Diederich", email = "benedictdied@gmail.com"},
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
]
dynamic = ["version"]
requires-python = ">=3.11"
dependencies = [
"setuptools >= 42",
"pydantic==2.11.4",
"coloredlogs >= 15",
"colour-science >= 0.3",
"dataclasses-json >= 0.5",
"h5py >= 2.10",
"pyvisa-py==0.4.1",
"lantzdev >= 0.5.2",
"luddite >= 1",
"nidaqmx >= 0.5.7",
"numpy==2.1.2",
"packaging >= 19",
"psutil >= 5.4.8",
"pyserial >= 3.4",
"requests >= 2.25",
"scikit-image==0.25.2",
"Send2Trash >= 1.8",
"tifffile >= 2020.11.26",
"dask[complete] >= 2024.8.0",
"fastapi >= 0.86.0",
"uvicorn[standard] >= 0.19.0",
"matplotlib == 3.9.2",
"opencv-python-headless",
"aiortc >= 1.9.0",
"jupyter",
"python-multipart >= 0.0.5",
"piexif >= 1.1.3",
"NanoImagingPack==2.1.5",
# Pin below 0.1.7: that PyPI release added imswitchuc2 as a dep, creating a
# circular dependency and an av==17 conflict with our aiortc-compatible av==13.
"imswitchclient>=0.1.2",
"psygnal",
"python-socketio[asyncio]==5.11.4",
"jupyterlab==4.2.5",
"python-dateutil >= 2.8.1",
"zarr>=3.0.0a0",
"numcodecs>=0.13.1",
"jsonschema>=4.0",
"aiohttp>=3.9.4",
"arkitekt-next[all]==0.40.4",
"koil>=2.0.5",
"msgpack>=1.0.4",
"esptool",
"av==13.1.0",
"uc2-rest>=0.2.0.33",
"unitelabs-sila",
"unitelabs-cdk",
"mikro-next>=1",
"pip>=26.1",
"opencv-contrib-python-headless>=4.13.0.92",
"opencv-contrib-python>=4.13.0.92",
"opencv-python>=4.13.0.92",
]
[project.optional-dependencies]
Microeye = [
"numba>=0.61.2",
]
Lepmon = [
"smbus2",
"smbus",
"RPi.GPIO",
"luma.oled",
]
Ashlar = [
"ashlarUC2",
]
imjoy = [
"imjoy-rpc==0.5.59",
"imjoy_rpc",
"imjoy",
]
dev = [
"pytest",
]
omero = [
"omero-py >= 5.6.0",
]
[project.urls]
Homepage = "https://github.com/openuc2/ImSwitch"
"Bug Tracker" = "https://github.com/openuc2/ImSwitch/issues"
[project.scripts]
imswitch = "imswitch.__main__:main"
[tool.setuptools.packages.find]
include = ["imswitch*"]
[tool.setuptools.package-data]
"*" = ["*"]
[tool.setuptools_scm]
fallback_version = "0.0.0.dev0"
[project.entry-points."imswitch.implugins.detectors"]
[project.entry-points."imswitch.implugins.lasers"]
[project.entry-points."imswitch.implugins.positioner"]
[project.entry-points."jupyter_client.kernel_provisioners"]
imswitch-provisioner = "imswitch.imcontrol.model.jupyter_connection:ExistingProvisioner"
[tool.uv]
# Force psygnal to be installed from source (no binary wheel).
# The compiled (mypyc) version forbids subclassing which ImSwitch requires.
# See https://github.com/pyapp-kit/psygnal/issues/330
no-binary-package = ["psygnal"]
[tool.ruff]
# Exclude directories
exclude = [
"imswitch/_data",
"build",
"ImTools",
"imswitch/imcontrol/model/interfaces/pyicic",
]
# Line length configuration (matching flake8's max-line-length)
line-length = 100
[tool.ruff.lint]
# Enable the following rule categories:
# E - pycodestyle errors
# F - Pyflakes
# W - pycodestyle warnings
# C90 - mccabe complexity
select = ["E", "F", "W", "C90"]
# Ignore F401 (unused imports) in __init__.py files (matching flake8 per-file-ignores)
per-file-ignores = {"__init__.py" = ["F401"]}
[tool.ruff.lint.mccabe]
# Maximum McCabe complexity (matching flake8's max-complexity)
max-complexity = 10