mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-09 06:08:22 +00:00
Python release CI (#2)
This commit is contained in:
@@ -4,9 +4,7 @@ set -ex
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2019-11-01 -y
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
cd /io/bindings/python
|
||||
|
||||
for PYBIN in /opt/python/{cp35-cp35m,cp36-cp36m,cp37-cp37m}/bin; do
|
||||
for PYBIN in /opt/python/{cp35-cp35m,cp36-cp36m,cp37-cp37m,cp38-cp38}/bin; do
|
||||
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
|
||||
|
||||
"${PYBIN}/pip" install -U setuptools-rust
|
||||
@@ -16,3 +14,10 @@ done
|
||||
for whl in dist/*.whl; do
|
||||
auditwheel repair "$whl" -w dist/
|
||||
done
|
||||
|
||||
# Keep only manylinux wheels
|
||||
rm dist/*-linux_*
|
||||
|
||||
# Upload wheels
|
||||
/opt/python/cp37-cp37m/bin/pip install -U awscli
|
||||
/opt/python/cp37-cp37m/bin/python -m awscli s3 sync --exact-timestamps ./dist "s3://tokenizers-releases/python/$GITHUB_SHA"
|
||||
|
||||
Reference in New Issue
Block a user