-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
echo "🔨 Building macOS universal2 wheel..." | ||
maturin build --zig --release --target universal2-apple-darwin | ||
|
||
echo "🐋 Building Linux wheels using Zig..." | ||
# docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin build --release --zig | ||
maturin build --zig --release --target x86_64-unknown-linux-gnu | ||
maturin build --zig --release --target aarch64-unknown-linux-gnu | ||
|
||
|
||
echo "🎯 Building source distribution..." | ||
maturin sdist | ||
|
||
if [ -z "${MATURIN_PYPI_TOKEN}" ]; then | ||
echo "Error: MATURIN_PYPI_TOKEN is not set" >&2 | ||
exit 1 | ||
fi | ||
echo "⬆️ Uploading all distributions to PyPI..." | ||
# make sure to set MATURIN_PYPI_TOKEN | ||
maturin upload target/wheels/*.whl | ||
maturin upload target/wheels/*.tar.gz | ||
|
||
echo "✅ Done! Wheels and sdist have been uploaded to PyPI" |
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