Skip to content

Commit

Permalink
fix: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeee committed Nov 25, 2024
1 parent 17b33a8 commit 338dccf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py-denormalized/build_wheels.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -euo pipefail

rm ../target/wheels/*.whl
rm ../target/wheels/*.tar.gz

echo "🔨 Building macOS universal2 wheel..."
maturin build --zig --release --target universal2-apple-darwin

Expand All @@ -19,7 +22,7 @@ if [ -z "${MATURIN_PYPI_TOKEN}" ]; then
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
maturin upload ../target/wheels/*.whl
maturin upload ../target/wheels/*.tar.gz

echo "✅ Done! Wheels and sdist have been uploaded to PyPI"

0 comments on commit 338dccf

Please sign in to comment.