-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zqfang
committed
May 8, 2024
1 parent
bd73182
commit 275972e
Showing
1 changed file
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,16 +75,12 @@ jobs: | |
env: | ||
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- -y" | ||
CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin"' | ||
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 | ||
# CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 | ||
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64:latest | ||
CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/manylinux2014_i686:latest | ||
CIBW_SKIP: cp36-* pp* *win32 *musl* | ||
CIBW_PRERELEASE_PYTHONS: True | ||
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
# CIBW_TEST_REQUIRES: numpy scipy pandas requests | ||
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ | ||
# - uses: actions/upload-artifact@v4 | ||
# with: | ||
# path: ./wheelhouse/*.whl | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
|
@@ -123,6 +119,7 @@ jobs: | |
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64:latest | ||
CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/manylinux2014_i686:latest | ||
CIBW_SKIP: cp36-* pp* *win32 *musl* | ||
CIBW_PRERELEASE_PYTHONS: True | ||
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
# CIBW_TEST_REQUIRES: numpy scipy pandas requests | ||
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ | ||
|
@@ -135,34 +132,35 @@ jobs: | |
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
TWINE_USERNAME: __token__ | ||
|
||
build-mac-arm-wheels: | ||
name: Build wheels on macos for arm | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build wheels | ||
uses: joerick/[email protected] | ||
env: | ||
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
CIBW_ARCHS_MACOS: arm64 | ||
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
# - uses: actions/upload-artifact@v4 | ||
# with: | ||
# path: ./wheelhouse/*.whl | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- name: Install twine | ||
run: | | ||
python -m pip install twine | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
TWINE_USERNAME: __token__ | ||
## mac arm64 build shipped with [email protected]. not extra builds for arm64 now | ||
# build-mac-arm-wheels: | ||
# name: Build wheels on macos for arm | ||
# runs-on: macos-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Build wheels | ||
# uses: joerick/[email protected] | ||
# env: | ||
# CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
# CIBW_ARCHS_MACOS: arm64 | ||
# CIBW_PRERELEASE_PYTHONS: True | ||
# CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
# CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
# # - uses: actions/upload-artifact@v4 | ||
# # with: | ||
# # path: ./wheelhouse/*.whl | ||
# - uses: actions/setup-python@v5 | ||
# name: Install Python | ||
# with: | ||
# python-version: '3.10' | ||
# - name: Install twine | ||
# run: | | ||
# python -m pip install twine | ||
# - name: Upload to PyPI | ||
# run: twine upload ./wheelhouse/*.whl | ||
# env: | ||
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
# TWINE_USERNAME: __token__ | ||
|
||
build-win32-wheels: | ||
name: Build wheels on win32 | ||
|
@@ -189,6 +187,7 @@ jobs: | |
env: | ||
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 | ||
CIBW_SKIP: cp36-* pp* *amd64 *musl* | ||
CIBW_PRERELEASE_PYTHONS: True | ||
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
# CIBW_TEST_REQUIRES: numpy scipy pandas requests | ||
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ | ||
|