-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
124 lines (101 loc) · 3.21 KB
/
pyproject.toml
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
123
124
[project]
name = "torch-delaunay"
dynamic = ["version"]
description = "The Delaunay triangulation for PyTorch"
authors = [
{name = "Yakau Bubnou", email = "girokompass@gmail.com"}
]
readme = "README.md"
requires-python = ">=3.9"
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS"
]
dependencies = [
"torch >= 2.5.0, < 2.6.0"
]
[project.urls]
Funding = "https://github.com/sponsors/ybubnov"
Homepage = "https://github.com/ybubnov/torch_delaunay"
Repository = "https://github.com/ybubnov/torch_delaunay"
[project.optional-dependencies]
test = [
"geopandas >= 1.0.0",
"numpy >= 1.4.0, <2.0.0",
"pytest >= 8.0.0",
"shapely >= 2.0.0",
]
[tool.setuptools]
include-package-data = false
[tool.setuptools.dynamic]
version = {attr = "torch_delaunay.__version__"}
[tool.setuptools.packages.find]
include = ["torch_delaunay*"]
[tool.setuptools.package-data]
torch_delaunay = ["*.cc"]
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"auditwheel >= 6.0.0",
"cibuildwheel >= 2.0.0",
"ninja >= 1.0.0",
"numpy >= 1.4.0, < 2.0.0",
"pybind11 >= 2.0.0, < 3.0.0",
"setuptools ~= 70.0.0",
"torch >= 2.5.0, < 2.6.0",
"typing-extensions >= 4.8.0",
"wheel >= 0.43.0"
]
# Configuration for Ruff linting and automatic formatting tool.
# See more in documentation for Ruff: https://docs.astral.sh/ruff/
[tool.ruff]
line-length = 100
[tool.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.codespell]
skip = "*.ipynb"
# Configuration to build wheels for different version of python, operating systems and
# architectures. See more in documentation: https://cibuildwheel.pypa.io/en/stable/options/
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-*"
build-verbosity = 3
skip = "*-musllinux_*"
repair-wheel-command = ""
# Try to find necessary dependencies (primarily torch) from torch index at first,
# and only then access Python's index for the remaining dependencies.
[tool.cibuildwheel.environment]
PIP_INDEX_URL = "https://download.pytorch.org/whl/cpu"
PIP_EXTRA_INDEX_URL = "https://pypi.python.org/simple"
[tool.cibuildwheel.windows]
archs = ["AMD64"]
[tool.cibuildwheel.macos]
archs = ["arm64"]
[tool.cibuildwheel.linux]
archs = ["aarch64", "x86_64"]
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
repair-wheel-command = """\
auditwheel repair --only-plat \
--exclude libc10.so \
--exclude libtorch.so \
--exclude libtorch_cpu.so \
--exclude libtorch_python.so \
-w {dest_dir} {wheel} \
"""