-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (65 loc) · 2.54 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (65 loc) · 2.54 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
[project]
name = "lupa"
description = "Python wrapper around Lua and LuaJIT"
authors = [
{name="Stefan Behnel", email="stefan_ml@behnel.de"},
]
maintainers = [
{name="Lupa-dev mailing list", email="lupa-dev@freelists.org"},
]
dynamic = ["classifiers", "license", "readme", "version"]
requires-python = ">= 3.8"
# Work around new-twine + old-packaging validation bug.
# See https://github.com/pypa/twine/issues/1216
#license-files = ["LICENSE.txt"]
[project.urls]
Homepage = "https://github.com/scoder/lupa"
Issues = "https://github.com/scoder/lupa/issues"
Changelog = "https://github.com/scoder/lupa/blob/master/CHANGES.rst"
[build-system]
requires = ["Cython>=3.2.4", "setuptools"]
[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"