Fix building wheels for Python 3.7 (#1933)
This commit is contained in:
@@ -34,7 +34,11 @@ jobs:
|
|||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install -U pip wheel setuptools twine==5.0.0
|
if [[ ${{ matrix.python-version }} == "3.7" ]]; then
|
||||||
|
pip install -U pip wheel setuptools twine
|
||||||
|
else
|
||||||
|
pip install -U pip wheel setuptools twine==5.0.0
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build alsa-lib
|
- name: Build alsa-lib
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -110,6 +110,10 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
python3 -m pip install $opts --upgrade pip
|
python3 -m pip install $opts --upgrade pip
|
||||||
python3 -m pip install $opts wheel twine==5.0.0 setuptools
|
if [[ ${{ matrix.python-version }} == "cp37" ]]; then
|
||||||
|
python3 -m pip install $opts wheel twine setuptools
|
||||||
|
else
|
||||||
|
python3 -m pip install $opts wheel twine==5.0.0 setuptools
|
||||||
|
fi
|
||||||
|
|
||||||
twine upload ./wheelhouse/*.whl
|
twine upload ./wheelhouse/*.whl
|
||||||
|
|||||||
7
.github/workflows/build-wheels-win64.yaml
vendored
7
.github/workflows/build-wheels-win64.yaml
vendored
@@ -89,11 +89,16 @@ jobs:
|
|||||||
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-wheels main
|
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-wheels main
|
||||||
|
|
||||||
- name: Publish wheels to PyPI
|
- name: Publish wheels to PyPI
|
||||||
|
shell: bash
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
python3 -m pip install wheel twine==5.0.0 setuptools
|
if [[ ${{ matrix.python-version }} == "3.7" ]]; then
|
||||||
|
python3 -m pip install wheel twine setuptools
|
||||||
|
else
|
||||||
|
python3 -m pip install wheel twine==5.0.0 setuptools
|
||||||
|
fi
|
||||||
|
|
||||||
twine upload ./wheelhouse/*.whl
|
twine upload ./wheelhouse/*.whl
|
||||||
|
|||||||
2
.github/workflows/test-go-package.yaml
vendored
2
.github/workflows/test-go-package.yaml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.12'
|
go-version: '>=1.17'
|
||||||
|
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
2
.github/workflows/test-go.yaml
vendored
2
.github/workflows/test-go.yaml
vendored
@@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.12'
|
go-version: '>=1.17'
|
||||||
|
|
||||||
- name: Display go version
|
- name: Display go version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
|
|||||||
function linux() {
|
function linux() {
|
||||||
echo "Process linux"
|
echo "Process linux"
|
||||||
git clone git@github.com:k2-fsa/sherpa-onnx-go-linux.git
|
git clone git@github.com:k2-fsa/sherpa-onnx-go-linux.git
|
||||||
|
|
||||||
rm -v ./sherpa-onnx-go-linux/*.go
|
rm -v ./sherpa-onnx-go-linux/*.go
|
||||||
|
|
||||||
cp -v ./sherpa_onnx.go ./sherpa-onnx-go-linux/
|
cp -v ./sherpa_onnx.go ./sherpa-onnx-go-linux/
|
||||||
|
|||||||
Reference in New Issue
Block a user