-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
131 lines (104 loc) · 3.65 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
125
126
127
128
129
130
131
[project]
name = "torch-geopooling"
dynamic = ["version"]
license = {file = "LICENSE"}
description = "The geospatial pooling modules for neural networks in PyTorch"
authors = [
{name = "Yakau Bubnou", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.9"
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"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 = ["shapely>=2.0.0", "torch >= 2.3.0, < 2.4.0"]
[project.urls]
Funding = "https://github.com/sponsors/ybubnov"
Homepage = "https://github.com/ybubnov/torch_geopooling"
Source = "https://github.com/ybubnov/torch_geopooling"
[project.optional-dependencies]
test = ["pytest >= 8.0.0", "numpy >= 1.4.0, <2.0.0"]
[tool.setuptools.dynamic]
version = {attr = "torch_geopooling.__version__"}
[tool.setuptools.packages.find]
include = ["torch_geopooling*"]
[build-system]
build-backend = "setuptools_cxx.build_meta"
backend-path = [".", "setuptools_cxx"]
requires = [
"auditwheel >= 6.0.0",
"cibuildwheel >= 2.0.0",
"conan >= 2.0.0",
"ninja >= 1.0.0",
"numpy >= 1.4.0, < 2.0.0",
"pybind11 >= 2.0.0, < 3.0.0",
"python-dotenv >= 1.0.0",
"setuptools ~= 70.0.0",
"sympy >= 1.12",
"toml >= 0.7.0; python_version < '3.11'",
"torch >= 2.3.0, < 2.4.0; sys_platform == 'linux'",
"torch >= 2.3.0, < 2.4.0; sys_platform == 'darwin' or sys_platform == 'win'",
"typing-extensions >= 4.8.0",
"wheel >= 0.43.0"
]
[tool.setuptools_cxx]
remotes = [
{name = "conancenter", url = "https://center.conan.io", verify_ssl = true}
]
tool_requires = ["cmake/[>=3.20 <4]"]
generators = ["AutotoolsDeps"]
requires = ["llvm-openmp/17.0.6", "fmt/10.2.1"]
[tool.setuptools_cxx.settings]
"compiler.cppstd" = "gnu17"
# 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.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} \
"""