-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (114 loc) · 2.89 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (114 loc) · 2.89 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
117
118
119
120
121
122
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "torchsparsegradutils"
version = "0.2.6"
description = "A collection of utility functions to work with PyTorch sparse tensors"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
authors = [
{name = "CAI4CAI research group", email = "contact@cai4cai.uk"}
]
keywords = ["sparse", "torch", "utility"]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"torch>=2.5",
"scipy",
"packaging",
]
[project.optional-dependencies]
cupy = ["cupy-cuda12x>=13.0"]
jax = ["jax[cuda12]"]
all = ["cupy-cuda12x>=13.0", "jax[cuda12]"]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"sphinx-copybutton>=0.5.0",
"myst-parser>=2.0.0",
"sphinx-autobuild>=2021.3.14",
"matplotlib>=3.5.0",
"sphinx-autodoc-typehints>=1.24.0",
"sphinxcontrib-bibtex>=2.5.0",
"sphinx-gallery>=0.13.0",
]
dev = [
"pytest",
"pytest-cov",
"black",
"isort",
"flake8",
]
[project.urls]
Homepage = "https://github.com/cai4cai/torchsparsegradutils"
Documentation = "https://torchsparsegradutils.readthedocs.io"
Repository = "https://github.com/cai4cai/torchsparsegradutils"
Issues = "https://github.com/cai4cai/torchsparsegradutils/issues"
Changelog = "https://github.com/cai4cai/torchsparsegradutils/releases"
[tool.setuptools]
zip-safe = false
include-package-data = true
[tool.setuptools.packages.find]
exclude = ["tests*"]
[tool.black]
line-length = 120
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
(
/(
# exclude a few common directories in the root of the project
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.pytype
| _build
| buck-out
| build
| dist
)/
# also separately exclude other files if needed
#| some_file
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
known_first_party = ["torchsparsegradutils"]
force_grid_wrap = 0
combine_as_imports = true
include_trailing_comma = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-v"]
testpaths = [
"torchsparsegradutils/tests",
]
pythonpath = [
"torchsparsegradutils/tests",
]
# Fail tests when deprecated upstream APIs are exercised outside intentional compatibility paths.
filterwarnings = [
'error:torch\.norm is deprecated.*:UserWarning',
'error:torch\.triangular_solve is deprecated.*:UserWarning',
'error:.*torch\.jit\.script.*is deprecated.*:DeprecationWarning',
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ELLIPSIS"
]
# Separate command for doctests due to potential issues
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]