Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git v0.4.4 rc0 #512

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 30 additions & 23 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Python Release
on:
push:
tags:
- v*
# tags:
# - v*

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -124,17 +124,16 @@ jobs:
- run: twine check --strict dist/*
working-directory: ./bindings/python

- name: Upload wheels
shell: bash
run: |
pip install awscli
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://safetensors-releases/python/$DIST_DIR"

# - uses: actions/upload-artifact@v3
# working-directory: ./bindings/python/
# with:
# name: pypi_files
# path: dist
# - name: Upload wheels
# shell: bash
# run: |
# pip install awscli
# aws s3 sync --exact-timestamps ./bindings/python/dist "s3://safetensors-releases/python/$DIST_DIR"

- uses: actions/upload-artifact@v4
with:
name: pypi_files
path: ./bindings/python/dist
build-sdist:
name: build sdist
needs: [lock_exists]
Expand All @@ -147,11 +146,15 @@ jobs:
command: sdist
args: --out dist
rust-toolchain: stable
- name: Upload wheels
shell: bash
run: |
pip install awscli
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://safetensors-releases/python/$DIST_DIR"
# - name: Upload wheels
# shell: bash
# run: |
# pip install awscli
# aws s3 sync --exact-timestamps ./bindings/python/dist "s3://safetensors-releases/python/$DIST_DIR"
- uses: actions/upload-artifact@v4
with:
name: pypi_files
path: ./bindings/python/dist


upload_package:
Expand All @@ -168,11 +171,15 @@ jobs:
python-version: "3.12"
architecture: x64

- name: Retrieve all wheels
shell: bash
run: |
pip install awscli
aws s3 sync "s3://safetensors-releases/python/$DIST_DIR" ./bindings/python/dist
# - name: Retrieve all wheels
# shell: bash
# run: |
# pip install awscli
# aws s3 sync "s3://safetensors-releases/python/$DIST_DIR" ./bindings/python/dist
- uses: actions/download-artifact@v4
with:
name: pypi_files
path: ./bindings/python/dist

- name: Upload to PyPi
working-directory: ./bindings/python
Expand Down
234 changes: 234 additions & 0 deletions bindings/python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "safetensors-python"
version = "0.4.5-dev.0"
version = "0.4.4-rc.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion safetensors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "safetensors"
version = "0.4.5-dev.0"
version = "0.4.4-rc.0"
edition = "2021"
homepage = "https://github.com/huggingface/safetensors"
repository = "https://github.com/huggingface/safetensors"
Expand Down
Loading