-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (54 loc) · 1.23 KB
/
pyproject.toml
File metadata and controls
63 lines (54 loc) · 1.23 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
[project]
name = "tguf-py"
version = "0.1.0"
description = "Python bindings for tgn.cpp TGUF"
readme = "README.md"
requires-python = ">=3.10"
dependencies = []
[dependency-groups]
dev = [
"pytest",
"numpy",
"torch",
"nanobind>=2.0.0",
"scikit-build-core>=0.5.0",
]
[tool.uv]
managed = true
package = true
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[build-system]
requires = ["scikit-build-core>=0.5.0", "nanobind>=2.0.0"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
cmake.args = [
"-DCMAKE_CXX_COMPILER=clang++",
"-DOpenMP_CXX_FLAGS=-fopenmp=libomp",
"-DOpenMP_CXX_LIB_NAMES=omp",
]
install.components = ["python_bindings"]
build-dir = "build"
cmake.source-dir = ".."
wheel.packages = ["tguf"]
editable.rebuild = true
[[tool.scikit-build.overrides]]
if.platform-system = "linux"
cmake.args = [
"-DOpenMP_omp_LIBRARY=/usr/lib/llvm-18/lib/libomp.so"
]
[[tool.scikit-build.overrides]]
if.platform-system = "darwin"
cmake.args = [
"-DOpenMP_omp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib"
]
[tool.pytest.ini_options]
addopts = [
"--capture=no",
"--color=yes",
"-vvv",
]