From 7e809e3b0f6841bd4b6aea7634e56deb3fa0b212 Mon Sep 17 00:00:00 2001 From: zqfang Date: Wed, 8 May 2024 11:04:45 -0700 Subject: [PATCH] wheels --- .github/workflows/wheels.yml | 49 ++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 93f2ebc..d0f86d8 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -30,11 +30,11 @@ jobs: runs-on: ubuntu-latest # needs: ["build_wheels"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.10' - uses: actions-rs/toolchain@v1 with: toolchain: stable @@ -42,7 +42,7 @@ jobs: run: pip install -U twine setuptools-rust - name: Build sdist run: python setup.py sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./dist/* - name: Upload to PyPI @@ -62,13 +62,13 @@ jobs: - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.10' - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.5 twine wheel + python -m pip install cibuildwheel==2.17.0 twine wheel - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -82,9 +82,9 @@ jobs: 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 + # - uses: actions/upload-artifact@v4 + # with: + # path: ./wheelhouse/*.whl - name: Upload to PyPI run: twine upload ./wheelhouse/*.whl env: @@ -102,7 +102,7 @@ jobs: - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.10' - uses: dtolnay/rust-toolchain@stable with: toolchain: stable @@ -112,7 +112,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.5 twine + python -m pip install cibuildwheel==2.17.0 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -127,9 +127,9 @@ jobs: # CIBW_TEST_REQUIRES: numpy scipy pandas requests # CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ CIBW_ARCHS_LINUX: aarch64 - - uses: actions/upload-artifact@v4 - with: - path: ./wheelhouse/*.whl + # - uses: actions/upload-artifact@v4 + # with: + # path: ./wheelhouse/*.whl - name: Upload to PyPI run: twine upload ./wheelhouse/*.whl env: @@ -142,19 +142,19 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build wheels - uses: joerick/cibuildwheel@v2.16.5 + uses: joerick/cibuildwheel@v2.17.0 env: CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin CIBW_ARCHS_MACOS: arm64 universal2 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/upload-artifact@v4 + # with: + # path: ./wheelhouse/*.whl - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.10' - name: Install twine run: | python -m pip install twine @@ -172,18 +172,17 @@ jobs: - uses: actions/setup-python@v5 name: Install Python with: - python-version: '3.8' + python-version: '3.10' architecture: 'x86' - uses: dtolnay/rust-toolchain@stable with: toolchain: stable target: i686-pc-windows-msvc - default: true - name: Force win32 rust run: rustup default stable-i686-pc-windows-msvc - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.5 twine + python -m pip install cibuildwheel==2.17.0 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -193,9 +192,9 @@ jobs: 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 + # - uses: actions/upload-artifact@v4 + # with: + # path: ./wheelhouse/*.whl - name: Upload to PyPI run: twine upload ./wheelhouse/*.whl env: