-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
63 lines (50 loc) · 1.37 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling>=1.16", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "spfluo-app"
authors = [
{ name="Jean Plumail", email="jplumail@unistra.fr" },
]
dependencies = [
"scipion-fluo-singleparticle",
"scipion-app-spfluo",
"napari[pyqt5]",
]
dynamic = ["version"]
requires-python = "==3.11.*"
[project.optional-dependencies]
cpu = ["torch==2.5.1+cpu"]
cu124 = ["torch==2.5.1+cu124"]
[project.urls]
Repository = "https://github.com/jplumail/spfluo-app.git"
[project.gui-scripts]
spfluo-app = "spfluo_app:main"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/spfluo_app"]
[tool.hatch.build.targets.sdist]
exclude = ["packages/*"]
[tool.uv]
constraint-dependencies = ["pyqt5-qt5 <=5.15.2"] # pyqt5-qt5 doesn't have source dist for recent versions, so windows requirements.txt is broken
conflicts = [
[
{ extra = "cpu" },
{ extra = "cu124" },
],
]
[tool.uv.sources]
scipion-fluo-singleparticle = { workspace = true }
scipion-app-spfluo = { workspace = true }
torch = [{index = "pytorch-cu124", extra="cu124"}, {index = "pytorch-cpu", extra="cpu"}]
[tool.uv.workspace]
members = ["packages/*"]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true