-
Notifications
You must be signed in to change notification settings - Fork 123
/
pyproject.toml
111 lines (98 loc) · 2.78 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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "Rtree"
authors = [
{name = "Sean Gillies", email = "[email protected]"},
]
maintainers = [
{name = "Howard Butler", email = "[email protected]"},
{name = "Mike Taves", email = "[email protected]"},
]
description = "R-Tree spatial index for Python GIS"
readme = "README.md"
requires-python = ">=3.9"
keywords = ["gis", "spatial", "index", "r-tree"]
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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.13",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Database",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://rtree.readthedocs.io"
Repository = "https://github.com/Toblerity/rtree"
[tool.setuptools]
packages = ["rtree"]
zip-safe = false
include-package-data = false
[tool.setuptools.dynamic]
version = {attr = "rtree.__version__"}
[tool.setuptools.package-data]
rtree = ["py.typed"]
[tool.cibuildwheel]
build = "cp39-*"
build-verbosity = 3
before-all = "pip install wheel"
repair-wheel-command = "python scripts/repair_wheel.py -w {dest_dir} {wheel}"
test-requires = "tox"
test-command = "tox --conf {project} --installpkg {wheel}"
test-skip = [
"*aarch64", # slow!
"*-macosx_arm64",
]
[tool.cibuildwheel.linux]
archs = ["auto", "aarch64"]
before-build = [
"yum install -y cmake libffi-devel",
"sh {project}/scripts/install_libspatialindex.sh",
]
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-build = [
"apk add cmake libffi-dev",
"sh {project}/scripts/install_libspatialindex.sh",
]
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
environment = { MACOSX_DEPLOYMENT_TARGET="10.9" }
before-build = [
"brew install coreutils cmake",
"sh {project}/scripts/install_libspatialindex.sh",
]
[tool.cibuildwheel.windows]
archs = ["AMD64"]
before-build = [
"call {project}\\scripts\\install_libspatialindex.bat",
]
[tool.coverage.report]
# Ignore warnings for overloads
# https://github.com/nedbat/coveragepy/issues/970#issuecomment-612602180
exclude_lines = [
"pragma: no cover",
"@overload",
]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
"NPY", # NumPy-specific
]
[tool.mypy]
exclude = ["docs", "build"]
ignore_missing_imports = true
show_error_codes = true