From 7e275f9213cc250c3d6b0a1dd063f79e72d02ddf Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 7 Aug 2023 23:36:24 +0200 Subject: [PATCH] Fixes release scripts - Release ready version (#312) * Creating 0.3.2.rc1 release * Fixing release. * Fix mv 2 * Ignore failing mv. * ? * Wtf ? * ??? * What is happenin to my files... * macos-latest. * Fixing up release. --- .github/workflows/python-release.yml | 11 +++++------ bindings/python/py_src/safetensors/__init__.py | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index f9c9e399..eaeaef52 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -1,5 +1,4 @@ name: Python Release - on: push: tags: @@ -78,7 +77,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, macos-10.15] + os: [windows-latest, macos-latest] python: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - name: Checkout repository @@ -108,7 +107,7 @@ jobs: - name: Rename wheels shell: bash working-directory: ./bindings/python/dist - run: for file in *.whl ; do mv $file ${file//macosx_10_1[0-9]/macosx_10_11} ; done + run: for file in *.whl ; do mv $file ${file//macosx_10_1[0-9]/macosx_10_11} || true; done - name: Upload wheels shell: bash @@ -121,10 +120,10 @@ jobs: runs-on: macos-arm64 strategy: matrix: - python: ["3.8.16", "3.9.13", "3.10.6", "3.11.0"] + python: ["3.9.13", "3.10.6", "3.11.0"] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust uses: actions-rs/toolchain@v1 @@ -154,7 +153,7 @@ jobs: needs: [create_wheels_manylinux, create_wheels_windows_32bit, create_wheels_others_64bit, create_wheels_macos_arm64] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Install Python uses: actions/setup-python@v4 diff --git a/bindings/python/py_src/safetensors/__init__.py b/bindings/python/py_src/safetensors/__init__.py index dbd739fc..b53e31bd 100644 --- a/bindings/python/py_src/safetensors/__init__.py +++ b/bindings/python/py_src/safetensors/__init__.py @@ -1,4 +1,5 @@ -__version__ = "0.3.2.rc1" +__version__ = "0.3.2" + # Re-export this from ._safetensors_rust import SafetensorError, deserialize, safe_open, serialize, serialize_file # noqa: F401