-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (75 loc) · 2.64 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (75 loc) · 2.64 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
[project]
name = "convertbng"
version = "1.0.0"
description = "Fast lon, lat to and from ETRS89 and BNG (OSGB36) using the OS OSTN15 transform via Rust FFI"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"numpy >= 2.0.0",
]
authors = [{ name = "Stephan Hügel" }, { email = "urschrei@gmail.com" }]
maintainers = [{ name = "Stephan Hügel" }, { email = "urschrei@gmail.com" }]
license = "BlueOak-1.0.0"
license-files = ["LICENSE.md"]
keywords = ["Geo", "OSTN02", "OSTN15", "BNG", "OSGB36", "GIS"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: GIS"
]
[project.urls]
Repository = "https://github.com/urschrei/convertbng"
Tracker = "https://github.com/urschrei/convertbng/issues"
[dependency-groups]
dev = [
"pytest>=8.4.1",
]
[tool.scikit-build]
minimum-version = "build-system.requires"
wheel.packages = ["src/convertbng"]
# Build a single Stable ABI (abi3) wheel for CPython 3.11+. Typed memoryviews,
# which cutil.pyx relies on, are only available under the Limited API from
# CPython 3.11 onwards, so that is the floor. CPython 3.10 still receives a
# regular, version-specific wheel.
wheel.py-api = "cp311"
[build-system]
requires = [
"scikit-build-core>=0.11",
"numpy >= 2.0.0",
"cython >= 3.1.0",
"cython-cmake"
]
build-backend = "scikit_build_core.build"
[tool.uv]
cache-keys = [{ file = "pyproject.toml" }, { file = "src/**/*.{h,c,pyx,pxd,dylib,so,dll}" }, { file = "CMakeLists.txt" }]
[tool.pytest.ini_options]
minversion = "8.4.1"
addopts = [
"--import-mode=importlib",
]
testpaths = [
"tests",
]
[tool.cibuildwheel]
build-frontend = "build[uv]"
test-requires = ["pytest"]
test-command = "pytest {package}"
[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" }
[tool.cibuildwheel.windows]
# cibuildwheel 4.0.0 runs delvewheel by default on Windows. We already bundle
# lonlat_bng.dll next to the extension module via CMake, and it is resolved at
# runtime from the module's own directory, so the repair step is unnecessary and
# fails because delvewheel does not search the wheel's package directory for
# lonlat_bng.dll.
repair-wheel-command = ""