]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Fixes release scripts - Release ready version (#312)
authorNicolas Patry <patry.nicolas@protonmail.com>
Mon, 7 Aug 2023 21:36:24 +0000 (23:36 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 21:36:24 +0000 (23:36 +0200)
* 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
bindings/python/py_src/safetensors/__init__.py

index f9c9e3991249e07f0fe5456e06badd3ac32f7e51..eaeaef52b9d55a5e904896a7a13673e883e2dcdb 100644 (file)
@@ -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
index dbd739fc2f9e715d1419f7a982e4429586946593..b53e31bda1c49795aaa5dad76bbb4b08a9fda80b 100644 (file)
@@ -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