From 3d2c3179574646a2404ca04daaa803dbee8761ba Mon Sep 17 00:00:00 2001 From: Thomas VINCENT Date: Tue, 14 Jan 2025 13:44:15 +0100 Subject: [PATCH] Test and build wheel for python3.13 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 24 ++++++++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ce7297e1d..139ea75a22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: QT_API: PyQt6 with_opencl: true - os: ubuntu-latest - python-version: "3.12" + python-version: "3.13" QT_API: PySide6 with_opencl: true @@ -37,7 +37,7 @@ jobs: QT_API: PyQt5 with_opencl: true - os: macos-13 - python-version: "3.12" + python-version: "3.13" QT_API: PyQt6 with_opencl: true - os: macos-13 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 951d5b3840..abf47025af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,19 +132,14 @@ jobs: include: - os: ubuntu-20.04 cibw_archs: "auto64" - with_sse2: true - os: ubuntu-20.04 cibw_archs: "aarch64" - with_sse2: false - os: ubuntu-20.04 cibw_archs: "ppc64le" - with_sse2: false - os: windows-2019 cibw_archs: "auto64" - with_sse2: true - - os: macos-12 + - os: macos-13 cibw_archs: "universal2" - with_sse2: true steps: - uses: actions/checkout@v4 @@ -152,7 +147,7 @@ jobs: if: runner.os == 'Linux' with: platforms: all - - uses: pypa/cibuildwheel@v2.16.5 + - uses: pypa/cibuildwheel@v2.22.0 env: # Configure silx build SILX_FORCE_CYTHON: "True" @@ -166,7 +161,7 @@ jobs: CIBW_ENVIRONMENT_PASS_LINUX: SILX_FORCE_CYTHON SILX_WITH_OPENMP WITH_QT_TEST WITH_GL_TEST SILX_OPENCL SILX_TEST_LOW_MEM CIBW_BUILD_VERBOSITY: 1 - CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* + CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* # Do not build for pypy and muslinux CIBW_SKIP: pp* *-musllinux_* CIBW_ARCHS: ${{ matrix.cibw_archs }} @@ -176,7 +171,8 @@ jobs: CIBW_TEST_COMMAND: python -c "import silx.test, sys; sys.exit(silx.test.run_tests(verbosity=3))" # Skip tests for emulated architectures and arm64 macos # Skip cp38 test on macos: Issue with libOpenGL - CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *-macosx_arm64 *-macosx_universal2:arm64 cp38-macosx*" + # Skip tests for Python3.13 on Windows: Missing pyopencl wheel and fails to install + CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *-macosx_arm64 *-macosx_universal2:arm64 cp38-macosx* cp313-win*" - uses: actions/upload-artifact@v4 with: @@ -184,7 +180,15 @@ jobs: path: ./wheelhouse/*.whl pypi-publish: - needs: [build_doc, build_sdist, build_wheels, test_sdist, build_windows_installer, test_windows_installer] + needs: + [ + build_doc, + build_sdist, + build_wheels, + test_sdist, + build_windows_installer, + test_windows_installer, + ] name: Upload release to PyPI runs-on: ubuntu-latest environment: