-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (73 loc) · 2.56 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (73 loc) · 2.56 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
84
85
86
87
[build-system]
requires = [
"scikit-build-core",
"nanobind==2.9.2"
]
build-backend = "scikit_build_core.build"
[project]
name = "nanogui"
dynamic = ["version"]
description = "A minimalistic GUI library for OpenGL, GLES 2, and Metal"
readme = "README.rst"
requires-python = ">=3.8"
authors = [
{ name = "Wenzel Jakob", email = "wenzel.jakob@epfl.ch" }
]
license = { text = "BSD" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces"
]
[project.urls]
Homepage = "https://github.com/mitsuba-renderer/nanogui"
Repository = "https://github.com/mitsuba-renderer/nanogui"
Issues = "https://github.com/mitsuba-renderer/nanogui/issues"
[tool.scikit-build]
minimum-version = "0.4"
build-dir = "build/{wheel_tag}"
cmake.verbose = true
logging.level = "INFO"
wheel.py-api = "cp312"
cmake.args = [
"-DCMAKE_INSTALL_LIBDIR=nanogui",
"-DCMAKE_INSTALL_BINDIR=nanogui",
"-DCMAKE_INSTALL_INCLUDEDIR=nanogui/include",
"-DCMAKE_INSTALL_DATAROOTDIR=nanogui/share",
"-DNANOGUI_BUILD_EXAMPLES=OFF"
]
wheel.packages = ["nanogui"]
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "include/nanogui/common.h"
regex = '''(?sx)
\#define \s+ NANOGUI_VERSION_MAJOR \s+ (?P<major>\d+) .*?
\#define \s+ NANOGUI_VERSION_MINOR \s+ (?P<minor>\d+) .*?
\#define \s+ NANOGUI_VERSION_PATCH \s+ (?P<patch>\d+) .*?
'''
result = "{major}.{minor}.{patch}"
[tool.cibuildwheel]
build-verbosity = 1
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*"]
skip = "*-musllinux* pp*"
test-command = "python -c \"import nanogui\""
# Platform-specific settings
[tool.cibuildwheel.linux]
archs = ["auto64"]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
before-build = "yum install -y mesa-libGLU-devel libXi-devel libXcursor-devel libXinerama-devel libXrandr-devel xorg-x11-server-devel libxkbcommon-devel wayland-devel dbus-devel kernel-headers"
environment = { CFLAGS="-D_GNU_SOURCE", CXXFLAGS="-D_GNU_SOURCE" }
[tool.cibuildwheel.windows]
archs = ["auto64"]
[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" }