-
Notifications
You must be signed in to change notification settings - Fork 139
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (54 loc) · 2.25 KB
/
pyproject.toml
File metadata and controls
63 lines (54 loc) · 2.25 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
[build-system]
requires = ["Cython>=3.2.4", "setuptools", "wheel"]
[tool.cibuildwheel]
build-verbosity = 2
environment = {LUPA_USE_BUNDLE = "true"}
environment-pass = ["LUPA_LIMITED_API"]
skip = [
"pp*-manylinux_aarch64",
"pp*-manylinux_i686",
# Minimum Python version (for wheels) is 3.9.
"cp38*",
# FT on i686 crashes for some reason
"cp31?t-*_i686",
]
enable = [
"cpython-prerelease",
"pypy",
]
test-skip = ["*-macosx_*"]
test-command = "python -c \"import lupa\" && python -c \"import lupa.lua54\" "
[tool.cibuildwheel.windows]
archs = ["AMD64", "x86", "ARM64"]
test-command = "python -c \"import lupa\" && python -c \"import lupa.lua54\" && python -c \"import lupa.luajit21\" "
[tool.cibuildwheel.macos]
# https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
# x86_64 and one of universal2 or arm64 wheels. x86_64 is still required by older pips,
# so additional arm64 wheels would suffice. However, since the library build uses a mixed
# amd64/arm64 setup, we build universal2 wheels regardless.
archs = ["x86_64", "arm64", "universal2"]
[tool.cibuildwheel.macos.environment]
LUPA_WITH_LUA_DLOPEN = "true"
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64", "i686", "armv7l", "ppc64le", "riscv64"]
repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
environment = {AR = "gcc-ar", NM = "gcc-nm", RANLIB = "gcc-ranlib", LDFLAGS = "-fPIC -flto", LUPA_USE_BUNDLE = "true", LUPA_WITH_LUA_DLOPEN = "true"}
[[tool.cibuildwheel.overrides]]
select = "*linux_i686 *linux_x86_64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g0 -mtune=generic -pipe -fPIC -flto"
[[tool.cibuildwheel.overrides]]
select = "*aarch64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-a72"
[[tool.cibuildwheel.overrides]]
select = "*armv7l"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto"
[[tool.cibuildwheel.overrides]]
#select = "*i686 *musllinux* *win32 *win_arm64 *macosx_x86_64 *armv7l"
select = "*i686 *musllinux* *macosx_x86_64 *armv7l *ppc64le *riscv64"
inherit.test-requires = "append"
test-requires = ["abi3audit>=0.0.25"]
inherit.test-command = "append"
test-command = ["abi3audit --strict --report {wheel}"]