Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (49 loc) · 2.14 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (49 loc) · 2.14 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
[build-system]
requires = ["setuptools >= 80.9.0", "pybind11 >= 3.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "mapnik"
version = "4.2.0"
description = "Python bindings for Mapnik"
license = "LGPL-2.1-or-later"
keywords = ["mapnik", "beautiful maps", "cartography", "python-mapnik"]
classifiers = ["Development Status :: 4 - Beta"]
authors = [{ name = "Artem Pavlenko", email = "artem@mapnik.org" }]
maintainers = [{ name = "Artem Pavlenko", email = "artem@mapnik.org" }]
requires-python = ">= 3.12"
[project.optional-dependencies]
test = ["pytest >= 8.0", "pytest-cov >= 5.0"]
[project.urls]
Homepage = "https://mapnik.org"
Documentation = "https://github.com/mapnik/python-mapnik/wiki"
Repository = "https://github.com/mapnik/python-mapnik"
"Bug Tracker" = "https://github.com/mapnik/python-mapnik/issues"
Changelog = "https://github.com/mapnik/python-mapnik/blob/master/CHANGELOG.md"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["test/python_tests"]
[tool.uv]
# Pin uv version for CI/dev consistency (used by astral-sh/setup-uv).
required-version = ">=0.9.0"
[tool.cibuildwheel]
# Build Python 3.12+ (matches requires-python)
# Supports 3.12, 3.13, 3.14, etc.
build = "cp3{12,13,14}-*"
skip = ["*-win32", "*-manylinux_i686", "*-musllinux_*"]
# Use pytest directly (not uv run) as uv is not available in test environment
test-command = "pytest {project}/test/python_tests -v"
test-extras = ["test"]
# Linux build configuration
[tool.cibuildwheel.linux]
# Use manylinux_2_28 (Debian 12 / Bookworm based)
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64"
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64"
# macOS build configuration
[tool.cibuildwheel.macos]
# Note: archs are set per-runner in GitHub Actions workflow
# ARM64 runner builds arm64, x86_64 runner builds x86_64
# Set deployment target to match modern Homebrew libraries
# Homebrew libraries on macOS 15 require macOS 15.0+ deployment target
environment = { MACOSX_DEPLOYMENT_TARGET = "15.0" }
# Repair wheel settings - bundle all dependencies for standalone wheels
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"