From c2d06ccb17d7a230bc4a114b31b479a72521e4fe Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 8 Jun 2024 23:26:54 -0700 Subject: [PATCH] .github/workflows/wheels.yml: Remove (replaced by dist.yml) --- .github/workflows/dist.yml | 3 ++ .github/workflows/wheels.yml | 85 ------------------------------------ 2 files changed, 3 insertions(+), 85 deletions(-) delete mode 100644 .github/workflows/wheels.yml diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 7aa1d37..07ee1ee 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -103,6 +103,9 @@ jobs: (cd unpacked && tar xfz - ) < dist/$pkg*.tar.gz "${{ steps.python.outputs.python-path }}" -m pipx run cibuildwheel==2.17.0 unpacked/$pkg* done + env: + # on pp310: build/src/cysignals/implementation.c:231:9: error: implicit declaration of function 'PyPyErr_SetInterrupt' is invalid in C99 [-Werror,-Wimplicit-function-declaration] + CIBW_SKIP: "pp31*" - uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml deleted file mode 100644 index 12771d1..0000000 --- a/.github/workflows/wheels.yml +++ /dev/null @@ -1,85 +0,0 @@ -name: Build wheels - -on: - push: - pull_request: - workflow_dispatch: - -concurrency: - # Cancel previous runs of this workflow for the same branch - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - - sdists_for_pypi: - name: Build sdist (and upload to PyPI on release tags) - runs-on: ubuntu-latest - env: - CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }} - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - - name: make sdist - run: | - make dist - - uses: actions/upload-artifact@v3 - with: - path: "dist/*.tar.gz" - name: dist - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.SAGEMATH_PYPI_API_TOKEN }} - skip_existing: true - verbose: true - if: env.CAN_DEPLOY == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macOS-latest] - - steps: - - uses: actions/checkout@v4 - - # Used to host cibuildwheel - - uses: actions/setup-python@v4 - - - name: Build wheels - uses: pypa/cibuildwheel@v2.16.0 - env: - # on pp310: build/src/cysignals/implementation.c:231:9: error: implicit declaration of function 'PyPyErr_SetInterrupt' is invalid in C99 [-Werror,-Wimplicit-function-declaration] - CIBW_SKIP: "pp31*" - - - uses: actions/upload-artifact@v3 - with: - name: wheels - path: ./wheelhouse/*.whl - - pypi-publish: - # https://github.com/pypa/gh-action-pypi-publish - name: Upload wheels to PyPI - needs: build_wheels - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - runs-on: ubuntu-latest - env: - CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }} - steps: - - - uses: actions/download-artifact@v3 - with: - name: wheels - path: wheelhouse - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.SAGEMATH_PYPI_API_TOKEN }} - packages_dir: wheelhouse/ - skip_existing: true - verbose: true - if: env.CAN_DEPLOY == 'true'