-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (56 loc) · 1.56 KB
/
pyproject.toml
File metadata and controls
61 lines (56 loc) · 1.56 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
[project]
name = "pytorch-sparse-utils"
description = "Low-level utilities and operations for Pytorch sparse tensors"
authors = [
{name = "Matthew A. Wright", email = "mawright@lbl.gov"}
]
readme = "README.md"
dynamic = ["version"]
requires-python = ">= 3.9"
dependencies = [
"numpy",
"torch",
"sparse",
]
[tool.setuptools.packages.find]
include = [
"pytorch_sparse_utils",
"pytorch_sparse_utils.*",
]
[project.optional-dependencies]
tests = [
"pytest",
"pytest-env",
"hypothesis",
"pytest-cov",
"pytest-xdist",
]
minkowskiengine = ["MinkowskiEngine"]
spconv = ["spconv"]
docs = ["mkdocs", "mkdocstrings", "mkdocstrings-python"]
[tool.pytest.ini_options]
env = [
"OMP_NUM_THREADS=16", # MinkowskiEngine issues a warning on import if this is unset
"CUDA_LAUNCH_BLOCKING=1", # Makes debugging easier
]
markers = [
"cuda_if_available: mark test to run on CUDA when available, otherwise fall back to CPU",
"cpu_and_cuda: mark test to run on both cpu as well as CUDA if available"
]
filterwarnings = [
"ignore:.*custom_[fb]wd.*:FutureWarning:spconv.pytorch.functional", # spconv import
"ignore:.*Importing from timm\\.models\\.layers.*:FutureWarning:timm.models.layers",
"ignore:.*locale.getdefaultlocale.*:DeprecationWarning",
]
[tool.coverage.run]
source = ["pytorch_sparse_utils"]
parallel = true
[tool.coverage.report]
exclude_also = [
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if torch\\.jit\\.is_scripting\\(\\):",
]