From 4e547f9a28e0debb8601da3b4533c9cb3efa9df4 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Wed, 13 Nov 2024 09:33:15 -0800 Subject: [PATCH] Bump python version to 0.0.8 (#58) --- Cargo.lock | 2 +- py-denormalized/Cargo.toml | 2 +- py-denormalized/build_wheels.sh | 25 +++++++++++++++++++++++++ py-denormalized/pyproject.toml | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100755 py-denormalized/build_wheels.sh diff --git a/Cargo.lock b/Cargo.lock index 9e042d9..52f0185 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1634,7 +1634,7 @@ dependencies = [ [[package]] name = "denormalized-python" -version = "0.0.7" +version = "0.0.9" dependencies = [ "chrono", "datafusion", diff --git a/py-denormalized/Cargo.toml b/py-denormalized/Cargo.toml index 3f6562e..7c68ec8 100644 --- a/py-denormalized/Cargo.toml +++ b/py-denormalized/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "denormalized-python" -version = "0.0.7" +version = "0.0.9" edition = "2021" homepage = "https://github.com/probably-nothing-labs/denormalized.git" repository = "https://github.com/probably-nothing-labs/denormalized.git" diff --git a/py-denormalized/build_wheels.sh b/py-denormalized/build_wheels.sh new file mode 100755 index 0000000..bef594f --- /dev/null +++ b/py-denormalized/build_wheels.sh @@ -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" diff --git a/py-denormalized/pyproject.toml b/py-denormalized/pyproject.toml index b76a343..5d17649 100644 --- a/py-denormalized/pyproject.toml +++ b/py-denormalized/pyproject.toml @@ -7,7 +7,7 @@ name = "denormalized" requires-python = ">=3.12" classifiers = [] dynamic = ["version"] # Version specified in py-denormalized/Cargo.toml -description = "" +description = "Embeddable stream processing engine" dependencies = ["pyarrow>=17.0.0", "datafusion>=40.1.0"] [project.optional-dependencies]