mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 00:35:35 +00:00
Fixing release CI strict (taken from safetensors).
This commit is contained in:
34
.github/workflows/python-release.yml
vendored
34
.github/workflows/python-release.yml
vendored
@ -124,17 +124,10 @@ jobs:
|
|||||||
- run: twine check --strict dist/*
|
- run: twine check --strict dist/*
|
||||||
working-directory: ./bindings/python
|
working-directory: ./bindings/python
|
||||||
|
|
||||||
- name: Upload wheels
|
- uses: actions/upload-artifact@v4
|
||||||
shell: bash
|
with:
|
||||||
run: |
|
name: pypi_files-${{ matrix.os }}-${{ matrix.platform }}-${{ matrix.manylinux }}
|
||||||
pip install awscli
|
path: ./bindings/python/dist
|
||||||
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$DIST_DIR"
|
|
||||||
|
|
||||||
# - uses: actions/upload-artifact@v3
|
|
||||||
# working-directory: ./bindings/python/
|
|
||||||
# with:
|
|
||||||
# name: pypi_files
|
|
||||||
# path: dist
|
|
||||||
build-sdist:
|
build-sdist:
|
||||||
name: build sdist
|
name: build sdist
|
||||||
needs: [lock_exists]
|
needs: [lock_exists]
|
||||||
@ -147,11 +140,10 @@ jobs:
|
|||||||
command: sdist
|
command: sdist
|
||||||
args: --out dist
|
args: --out dist
|
||||||
rust-toolchain: stable
|
rust-toolchain: stable
|
||||||
- name: Upload wheels
|
- uses: actions/upload-artifact@v4
|
||||||
shell: bash
|
with:
|
||||||
run: |
|
name: pypi_files-srt
|
||||||
pip install awscli
|
path: ./bindings/python/dist
|
||||||
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$DIST_DIR"
|
|
||||||
|
|
||||||
|
|
||||||
upload_package:
|
upload_package:
|
||||||
@ -168,12 +160,10 @@ jobs:
|
|||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- name: Retrieve all wheels
|
- uses: actions/download-artifact@v4
|
||||||
shell: bash
|
with:
|
||||||
run: |
|
path: ./bindings/python/dist
|
||||||
pip install awscli
|
merge-multiple: true
|
||||||
aws s3 sync "s3://tokenizers-releases/python/$DIST_DIR" ./bindings/python/dist
|
|
||||||
|
|
||||||
- name: Upload to PyPi
|
- name: Upload to PyPi
|
||||||
working-directory: ./bindings/python
|
working-directory: ./bindings/python
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user