From b50248147377e2b7ed3dc8cff28dd3cbb78364f8 Mon Sep 17 00:00:00 2001 From: Victor Blomqvist Date: Sat, 7 Sep 2024 09:37:25 +0200 Subject: [PATCH] build pyodide with cibuildwheel, build for py3.12 --- .github/workflows/wheels.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index eb08dfed..57ca9f77 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -21,10 +21,10 @@ jobs: python3 -c "import pathlib,glob;pathlib.Path('GITHUB_ENV').write_text('SDIST_PATH' + glob.glob('dist/*.tar.gz')[0])" - name: Build wheels - uses: pypa/cibuildwheel@v2.18.1 + uses: pypa/cibuildwheel@v2.20.0 env: CIBW_BUILD: - "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* pp39-* pp310-*" + "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* pp39-* pp310-*" CIBW_TEST_COMMAND: "python -m pymunk.tests" CIBW_BUILD_VERBOSITY: 3 with: @@ -55,17 +55,9 @@ jobs: - uses: actions/checkout@v4 with: submodules: true - - uses: actions/setup-python@v5 - with: - python-version: "3.11.2" - - run: | - pip install pyodide-build>=0.23.3 - echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV - - uses: mymindstorm/setup-emsdk@v14 - with: - version: ${{ env.EMSCRIPTEN_VERSION }} - - run: pyodide build + - uses: pypa/cibuildwheel@v2.19 env: + CIBW_PLATFORM: pyodide PYMUNK_BUILD_SLIM: 1 - uses: actions/upload-artifact@v4 if: ${{ github.ref == 'refs/heads/master' }}