From 6ef4b3147a4b7d3110f78819c93a2ba67b91a632 Mon Sep 17 00:00:00 2001 From: Ben Howes Date: Mon, 8 Jan 2024 14:23:58 +0000 Subject: [PATCH 1/4] Update upload-to-test-pypi.yml --- .github/workflows/upload-to-test-pypi.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-to-test-pypi.yml b/.github/workflows/upload-to-test-pypi.yml index 930a966..e0bbf87 100644 --- a/.github/workflows/upload-to-test-pypi.yml +++ b/.github/workflows/upload-to-test-pypi.yml @@ -42,6 +42,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - uses: actions/setup-python@v2 - name: Install cibuildwheel @@ -52,6 +58,7 @@ jobs: CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*" CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*" CIBW_ARCHS_MACOS: "x86_64 arm64" + CIBW_ARCHS_LINUX: "auto aarch64" run: python -m cibuildwheel --output-dir wheelhouse - uses: actions/upload-artifact@v2 @@ -72,4 +79,4 @@ jobs: - uses: pypa/gh-action-pypi-publish@v1.4.1 with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ \ No newline at end of file + repository_url: https://test.pypi.org/legacy/ From 43d061f990163cbe64612fc430b216ef5f41b689 Mon Sep 17 00:00:00 2001 From: Ben Howes Date: Mon, 8 Jan 2024 14:26:46 +0000 Subject: [PATCH 2/4] Update upload-to-test-pypi.yml --- .github/workflows/upload-to-test-pypi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-to-test-pypi.yml b/.github/workflows/upload-to-test-pypi.yml index e0bbf87..70d8371 100644 --- a/.github/workflows/upload-to-test-pypi.yml +++ b/.github/workflows/upload-to-test-pypi.yml @@ -32,7 +32,8 @@ jobs: run: twine check dist/* build_wheels: - if: contains(github.event.head_commit.message, '[upload-to-test-pypi]') + # TODO: uncomment the following line after testing + # if: contains(github.event.head_commit.message, '[upload-to-test-pypi]') name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: From 345ccaa418cd3a08ede8d471e5f45d1802ca0119 Mon Sep 17 00:00:00 2001 From: Ben Howes Date: Mon, 8 Jan 2024 16:47:29 +0000 Subject: [PATCH 3/4] Update upload-to-pypi.yml --- .github/workflows/upload-to-pypi.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 887108e..f588ea6 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -43,6 +43,13 @@ jobs: steps: - uses: actions/checkout@v2 + # Allows building non-amd64 wheels on Linux. + - name: Set up QEMU + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - uses: actions/setup-python@v2 - name: Install cibuildwheel @@ -53,6 +60,7 @@ jobs: CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*" CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*" CIBW_ARCHS_MACOS: "x86_64 arm64" + CIBW_ARCHS_LINUX: "auto aarch64" run: python -m cibuildwheel --output-dir wheelhouse - uses: actions/upload-artifact@v2 @@ -72,4 +80,4 @@ jobs: - uses: pypa/gh-action-pypi-publish@v1.4.1 with: - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }} From 82e38cea63468e37a41ce40466b0b41f5a266a2e Mon Sep 17 00:00:00 2001 From: Ben Howes Date: Mon, 8 Jan 2024 16:48:50 +0000 Subject: [PATCH 4/4] remove test comments --- .github/workflows/upload-to-test-pypi.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/upload-to-test-pypi.yml b/.github/workflows/upload-to-test-pypi.yml index 70d8371..e0bbf87 100644 --- a/.github/workflows/upload-to-test-pypi.yml +++ b/.github/workflows/upload-to-test-pypi.yml @@ -32,8 +32,7 @@ jobs: run: twine check dist/* build_wheels: - # TODO: uncomment the following line after testing - # if: contains(github.event.head_commit.message, '[upload-to-test-pypi]') + if: contains(github.event.head_commit.message, '[upload-to-test-pypi]') name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: