forked from harfbuzz/uharfbuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
42 lines (34 loc) · 959 Bytes
/
pyproject.toml
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
[build-system]
requires = [
"setuptools >= 36.4",
"wheel",
"setuptools_scm >= 2.1",
"cython >= 0.28.1",
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
# only build for 64-bit
skip = ["*-manylinux_i686", "*-musllinux_i686"]
test-requires = "pytest"
test-command = "pytest {project}/tests"
[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
before-all = "brew install ccache"
before-test = "ccache --show-stats"
[tool.cibuildwheel.macos.environment]
CC = "/usr/local/opt/ccache/libexec/cc"
[tool.cibuildwheel.linux]
before-all = [
"yum install -y ccache",
"ln -s $(which ccache) /usr/lib64/ccache/gcc",
]
before-test = "ccache --show-stats"
[tool.cibuildwheel.linux.environment]
CC = "/usr/lib64/ccache/gcc"
CFLAGS = "-g0"
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = "apk add ccache"
environment = {CC = "/usr/lib/ccache/bin/gcc"}
[tool.black]
extend-exclude = "harfbuzz"