-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: macOS arm64 and musllinux wheels
* Build macOS arm64 wheels - use macOS 11 to build wheels - update cibuildwheel version - add universal2 tag to the macOS architectures * Use PEP 517 build system - switch to PEP 517 build system - switch CI to use `pip install .` rather than `setup.py install` * Switch to macos-11 in test.yml workflow as well * Fix musl linux build * Migrate cibuildwheel configuration to pyproject.toml * Keep pre-release build *only* for builds that won't go to to PyPI * Simplify list of builds to build
- Loading branch information
Showing
5 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "cffi>=1.5.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.cibuildwheel] | ||
build = "cp3*" | ||
|
||
[tool.cibuildwheel.linux] | ||
archs = ["auto", "aarch64"] | ||
before-all = """ | ||
set -eux | ||
# musllinux_* | ||
if command -v apk; then | ||
apk add libffi-dev | ||
fi | ||
# manylinux_2_24 | ||
if command -v apt; then | ||
apt install libffi-dev | ||
fi | ||
# manylinux_* | ||
if command -v yum; then | ||
yum install -y libffi-devel | ||
fi | ||
""" | ||
|
||
[tool.cibuildwheel.macos] | ||
archs = ["x86_64", "universal2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters