-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (102 loc) · 2.98 KB
/
pyproject.toml
File metadata and controls
116 lines (102 loc) · 2.98 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
[build-system]
requires = ["scikit-build-core", "nanobind"]
build-backend = "scikit_build_core.build"
[project]
name = "genmetaballs"
authors = [
{ name = "Arijit Dasgupta", email = "arijitdg@mit.edu" },
{ name = "Matin Ghavami", email = "mghavami@mit.edu" },
{ name = "Xiaoyan Wang", email = "xyw@mit.edu" },
]
version = "0.0.1"
requires-python = ">=3.13"
dependencies = [
"numpy>=2.3.4,<3",
"jax[cuda12]>=0.8.0,<0.9",
"matplotlib>=3.10.7,<4",
"tqdm>=4.67.1,<5",
"transforms3d>=0.4.2,<0.5",
"trimesh>=4.9.0,<5",
"pyrender @ git+https://github.com/jasper-tms/pyrender.git",
"scipy>=1.16.3,<2",
"pyyaml>=6.0.3,<7", "rerun-sdk==0.25.1",
]
[tool.pixi.workspace]
channels = ["conda-forge"]
name = "python"
platforms = ["linux-64"]
version = "0.0.1"
[tool.pixi.dependencies]
python = ">=3.13"
cmake = ">=3.24"
cuda-toolkit = "12.8.*"
c-compiler = "*"
cxx-compiler = "*"
ninja = "*"
scikit-build-core = "*"
nanobind = "*"
gtest = ">=1.17.0,<2"
clang-tools = ">=18,<20" # Includes clang-format and clang-tidy
mesalib = ">=25.0.5,<26"
[tool.pixi.pypi-dependencies]
genmetaballs = { path = ".", editable = true }
ruff = ">=0.8.0"
pre-commit = ">=3.0.0"
[tool.pixi.pypi-options]
# Disable build isolation for genmetaballs to allow scikit-build to find cmake and other build tools
# See https://github.com/scikit-build/scikit-build-core/issues/1112#issuecomment-3025463521
no-build-isolation = ["genmetaballs"]
[tool.pixi.tasks]
ctest = "ctest --test-dir build"
pytest = "pytest"
test = { depends-on = ["pytest", "ctest"] }
# Simple lint/format/fix commands (C++/CUDA + Python)
format = { cmd = "scripts/format.sh" }
lint = { cmd = "scripts/lint.sh" }
fix = { cmd = "scripts/fix.sh" }
# Dev setup: install git hooks
dev-setup = "pre-commit install && pre-commit install --hook-type pre-push"
[tool.pixi.environments]
default = { solve-group = "default", features = ["dev"] }
[tool.scikit-build]
wheel.py-api = "cp313" # Or your Python version
wheel.packages = ["genmetaballs/src/genmetaballs"]
# use a persistent build directory to speed up rebuild & testing
build-dir = "build"
editable.rebuild = true
[dependency-groups]
dev = [
"pytest",
"ipykernel>=7.1.0,<8",
"ipywidgets>=8.1.8,<9",
"jupyter>=1.1.1,<2",
]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib", "--doctest-modules"]
testpaths = ["tests", "src"]
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["genmetaballs"]
[tool.pixi.activation.env]
PYOPENGL_PLATFORM = "osmesa"