-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (96 loc) · 2.52 KB
/
pyproject.toml
File metadata and controls
109 lines (96 loc) · 2.52 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
[build-system]
requires = ["setuptools>=61", "wheel", "versioneer>=0.28"]
build-backend = "setuptools.build_meta"
[project]
name = "lettuce"
version = "0.2.3"
description = "Lattice Boltzmann Python GPU"
readme = "README.md"
requires-python = "==3.12.*"
license = { text = "MIT" }
dependencies = [
"click>=8.1.7",
"h5py==3.11.0",
"matplotlib>=3.9.2",
"mmh3>=4.1.0",
"numpy>=2.1.0",
"packaging>=24.1",
"pyevtk>=1.6.0",
"pytest>=8.3.2",
"setuptools>=78.1.1",
"torch>=2.6.0",
"vtk>=9.5.0",
]
[project.scripts]
lettuce = "lettuce.cli:main"
[project.urls]
Homepage = "https://github.com/lettucecfd/lettuce"
[tool.setuptools.packages.find]
include = ["lettuce*"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "lettuce/_version.py"
versionfile_build = "lettuce/_version.py"
tag_prefix = ""
parentdir_prefix_version = "lettuce-"
[project.optional-dependencies]
cpu = [
"torch>=2.7.0",
]
cu124 = [
"torch>=2.6.0",
]
cu126 = [
"torch>=2.7.0",
]
cu128 = [
"torch>=2.7.0",
]
cu130 = [
"torch>=2.9.0",
]
[tool.uv]
conflicts = [
[
{ extra = "cpu" },
{ extra = "cu124" },
{ extra = "cu126" },
{ extra = "cu128" },
{ extra = "cu130" },
],
]
[tool.uv.sources]
torch = [
# Korrekte Marker, die an die Extra-Marker gebunden sind.
# macOS wird standardmäßig auf CPU gesetzt
{ index = "pytorch-cpu", extra = "cpu", marker = "sys_platform == 'linux' or sys_platform == 'win32' or sys_platform == 'darwin'"},
{ index = "pytorch-cu124", extra = "cu124", marker = "sys_platform == 'linux' or sys_platform == 'win32'"},
{ index = "pytorch-cu126", extra = "cu126", marker = "sys_platform == 'linux' or sys_platform == 'win32'"},
{ index = "pytorch-cu128", extra = "cu128", marker = "sys_platform == 'linux' or sys_platform == 'win32'"},
{ index = "pytorch-cu130", extra = "cu130", marker = "sys_platform == 'linux' or sys_platform == 'win32'"},
]
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[[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
[[tool.uv.index]]
name = "pytorch-cu126"
url = "https://download.pytorch.org/whl/cu126"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true