mirror of
https://github.com/mii443/tokenizers.git
synced 2025-09-01 14:59:20 +00:00
Update python-release with some more wheels
This commit is contained in:
82
.github/workflows/python-release.yml
vendored
82
.github/workflows/python-release.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
name: Python Release
|
name: Python Release - Debug
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
# push:
|
||||||
tags:
|
# tags:
|
||||||
- python-v*
|
# - python-v*
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
@ -29,8 +29,12 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, macos-latest]
|
os: [windows-latest, macos-10.15]
|
||||||
python: [3.5, 3.6, 3.7, 3.8]
|
python: [3.5, 3.6, 3.7, 3.8]
|
||||||
|
architecture: [x64, x86]
|
||||||
|
exclude:
|
||||||
|
- os: macos-10.15
|
||||||
|
architecture: x86
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
@ -45,7 +49,7 @@ jobs:
|
|||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
architecture: 'x64'
|
architecture: ${{ matrix.architecture }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -56,39 +60,43 @@ jobs:
|
|||||||
working-directory: ./bindings/python
|
working-directory: ./bindings/python
|
||||||
run: python setup.py bdist_wheel
|
run: python setup.py bdist_wheel
|
||||||
|
|
||||||
|
- name: Rename wheels
|
||||||
|
wordking-directory: ./bindings/python/dist
|
||||||
|
run: rename -s 'macosx_10_15' 'macosx_10_10' *.whl
|
||||||
|
|
||||||
- name: Upload wheels
|
- name: Upload wheels
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install awscli
|
pip install awscli
|
||||||
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$GITHUB_SHA"
|
aws s3 sync --exact-timestamps ./bindings/python/dist "s3://tokenizers-releases/python/$GITHUB_SHA"
|
||||||
|
|
||||||
upload_package:
|
# upload_package:
|
||||||
name: Upload package to PyPi
|
# name: Upload package to PyPi
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: [create_wheels_manylinux, create_wheels_others]
|
# needs: [create_wheels_manylinux, create_wheels_others]
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v1
|
# - uses: actions/checkout@v1
|
||||||
|
#
|
||||||
- name: Install Python
|
# - name: Install Python
|
||||||
uses: actions/setup-python@v1
|
# uses: actions/setup-python@v1
|
||||||
|
#
|
||||||
- name: Retrieve all wheels
|
# - name: Retrieve all wheels
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
pip install awscli
|
# pip install awscli
|
||||||
aws s3 sync "s3://tokenizers-releases/python/$GITHUB_SHA" ./bindings/python/dist
|
# aws s3 sync "s3://tokenizers-releases/python/$GITHUB_SHA" ./bindings/python/dist
|
||||||
|
#
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: |
|
# run: |
|
||||||
pip install setuptools wheel setuptools-rust
|
# pip install setuptools wheel setuptools-rust
|
||||||
|
#
|
||||||
- name: Create source distribution
|
# - name: Create source distribution
|
||||||
working-directory: ./bindings/python
|
# working-directory: ./bindings/python
|
||||||
run: sh build-sdist.sh
|
# run: sh build-sdist.sh
|
||||||
|
#
|
||||||
- name: Upload to PyPi
|
# - name: Upload to PyPi
|
||||||
working-directory: ./bindings/python
|
# working-directory: ./bindings/python
|
||||||
run: |
|
# run: |
|
||||||
pip install twine
|
# pip install twine
|
||||||
twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
|
# twine upload dist/* -u __token__ -p "$PYPI_TOKEN"
|
||||||
|
Reference in New Issue
Block a user