-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (111 loc) · 2.92 KB
/
pyproject.toml
File metadata and controls
119 lines (111 loc) · 2.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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "slmsuite"
description = "Package for high-performance spatial light modulator (SLM) control and holography."
readme = "README_PYPI.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Holodyne Labs, Inc.", email = "slmsuite@holodyne.com" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dynamic = ["version"]
dependencies = [
"numpy",
"scipy",
"opencv-python",
"matplotlib",
"h5py",
"tqdm",
]
# GPU acceleration (CuPy): ``pip install slmsuite[gpu]`` installs cupy-cuda13x.
# Sometimes, installation is made complicated by a pre-installed version of CUDA.
# You can find the CUDA version with ``nvcc --version`` in a terminal, and then
# install an installation of :mod:`cupy` specific to CUDA version ``YY`` with
# ``pip install cupy-cudaYYx``(see https://docs.cupy.dev/en/stable/install.html).
# For example:
# pip install cupy-cuda12x # CUDA 12.x
# pip install cupy # Build from source (any CUDA version)
#
# Some hardware drivers require vendor-specific SDKs that are not available on
# PyPI. Download the SDK installer from the vendor and follow the installation
# instructions. This might involve installing a wheel .whl or building from source.
#
# PySpin — FLIR/Teledyne Spinnaker SDK
# thorlabs_tsi_sdk — Thorlabs ThorCam SDK
# vmbpy — Allied Vision Vimba X SDK
# vimba — Allied Vision Vimba SDK (legacy)
[project.optional-dependencies]
gpu = ["cupy-cuda13x"]
torch = ["torch"]
slms = [
"pyglet",
"hidapi",
]
cameras = [
"pylablib",
"pymmcore",
"pypylon",
"instrumental-lib",
]
images = [
"imageio",
"pygifsicle",
"scikit-image",
"av",
]
jupyter = [
"jupyter",
"ipywidgets",
"slmsuite[images]",
]
docs = [
"nbsphinx",
"IPython",
"docutils",
"sphinx",
"sphinx_copybutton",
"sphinx_last_updated_by_git",
"sphinx_rtd_theme",
"requests",
"pandoc",
"pydata-sphinx-theme",
"sphinx_design",
"sphinx-autodoc-typehints",
]
test = [
"imageio",
"pytest",
"pytest-benchmark",
"pytest-subtests",
"pytest-notebook",
"nbformat",
"imageio",
]
dev = [
"slmsuite[test]",
"slmsuite[jupyter]",
"slmsuite[docs]",
"slmsuite[gpu]",
"slmsuite[slms]",
"slmsuite[cameras]",
"line-profiler",
"snakeviz",
]
[project.urls]
"Homepage" = "https://github.com/holodyne/slmsuite"
"Documentation" = "https://slmsuite.readthedocs.io/en/latest/"
[tool.setuptools.dynamic]
version = { attr = "slmsuite.__version__" }
[tool.setuptools.packages.find]
include = ["slmsuite*"]
[tool.setuptools.package-data]
slmsuite = ["holography/toolbox/cuda.cu"]
[tool.uv]
# pyqt5-qt5 >= 5.15.3 dropped Windows wheels; cap to last working version.
constraint-dependencies = ["pyqt5-qt5<=5.15.2"]