This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to tag v0.12.0-a1 in repository https://gitbox.apache.org/repos/asf/fory.git
commit 7359ddd6add1aa8ca5b167688039d49f2993a80e Author: chaokunyang <[email protected]> AuthorDate: Fri Aug 15 14:02:58 2025 +0800 fix macos wheel --- ci/deploy.sh | 21 +++++---------------- python/pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/ci/deploy.sh b/ci/deploy.sh index 7de5af5a3..ac909986d 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -83,22 +83,11 @@ build_pyfory() { auditwheel repair ../dist/pyfory-*-linux_*.whl --plat "$PLAT" --exclude '*arrow*' --exclude '*parquet*' --exclude '*numpy*' -w ../dist/ rm ../dist/pyfory-*-linux_*.whl elif [[ "$OSTYPE" == "darwin"* ]]; then - # Check macOS version - MACOS_VERSION=$(sw_vers -productVersion | cut -d. -f1-2) - if [[ "$MACOS_VERSION" == "13"* ]]; then - # Check if wheel ends with x86_64.whl - for wheel in ../dist/pyfory-*-macosx*.whl; do - if [[ "$wheel" == *"x86_64.whl" ]]; then - echo "Fixing wheel tags for x86_64 wheel: $wheel" - wheel tags --platform-tag macosx_12_0_x86_64 "$wheel" - else - echo "Skipping wheel tags for non-x86_64 wheel: $wheel" - fi - done - else - # Other macOS versions: skip wheel repair - echo "Skipping wheel repair for macOS $MACOS_VERSION" - fi + for path in ../dist/pyfory-*-macosx*.whl; do + if [ -f "${path}" ]; then + cp "${path}" "${path//macosx_12_0_x86_64/macosx_10_13_x86_64}" + fi + done elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then echo "Skip windows wheel repair" fi diff --git a/python/pyproject.toml b/python/pyproject.toml index a18aa7b61..58b81674e 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -59,7 +59,7 @@ all = ["pyarrow"] dev = ["ruff"] [tool.setuptools] -packages = ["pyfory", "pyfory.format", "pyfory.lib", "pyfory.meta"] +packages = ["pyfory", "pyfory.format", "pyfory.lib", "pyfory.lib.mmh3", "pyfory.meta"] include-package-data = true zip-safe = false --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
