Skip to content

Commit

Permalink
Fixes release scripts - Release ready version (#312)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Narsil authored Aug 7, 2023
1 parent f6dd871 commit 7e275f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Python Release

on:
push:
tags:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion bindings/python/py_src/safetensors/__init__.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e275f9

Please sign in to comment.