-
Notifications
You must be signed in to change notification settings - Fork 283
/
pyproject.toml
43 lines (38 loc) · 1.21 KB
/
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
43
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0", "pybind11>=2.10.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
local_scheme = "no-local-version"
[tool.cibuildwheel]
test-requires = "pytest"
test-command = "pytest -v {project}/tests"
skip = "*-manylinux_i686 *-win32 *-musllinux_*"
[tool.cibuildwheel.linux]
build-verbosity = 1
environment = {CP_USE_GREEN_REAPER=1}
before-all = '''
set -eo pipefail && set -x && set -eo pipefail && ARCH=$(uname -m)
if [[ $ARCH == x86_64 ]]; then
.github/actions/fetch_bladebit_harvester.sh linux x86-64
else
.github/actions/fetch_bladebit_harvester.sh linux arm64
fi
'''
before-build = "python -m pip install --upgrade pip"
[tool.cibuildwheel.macos]
build-verbosity = 1
before-all = '''
brew install gmp boost cmake
set -eo pipefail
ARCH=$(uname -m)
if [[ $ARCH == x86_64 ]]; then
.github/actions/fetch_bladebit_harvester.sh macos x86-64
else
.github/actions/fetch_bladebit_harvester.sh macos arm64
fi
'''
before-build = "python -m pip install --upgrade pip"
environment = {MACOSX_DEPLOYMENT_TARGET="11", SYSTEM_VERSION_COMPAT=0, CP_USE_GREEN_REAPER=1}
[tool.cibuildwheel.windows]
build-verbosity = 1
environment = "CP_USE_GREEN_REAPER=1"