diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index ddce07e4..8d58663a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -39,9 +39,10 @@ jobs: env: CIBW_ARCHS_MACOS: x86_64 arm64 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./wheelhouse/*.whl + name: artifacts-${{ matrix.os }} build_sdist: name: build dist @@ -53,16 +54,15 @@ jobs: - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz + name: artifacts-sdist upload_all: name: publish (PyPI) needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - # upload to PyPI on every tag starting with 'v' - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # upload to PyPI on release event if: github.event_name == 'release' && success() steps: @@ -72,8 +72,9 @@ jobs: - uses: actions/download-artifact@v4 with: - name: artifact + pattern: artifacts-* path: dist + merge-multiple: true - uses: pypa/gh-action-pypi-publish@v1.9.0 with: diff --git a/pyproject.toml b/pyproject.toml index 913f9a0e..bf36f88b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,24 @@ addopts = "-ra -q" testpaths = ["tests"] [tool.cibuildwheel] -build = ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"] +build = [ + "cp37-*", + "cp38-*", + "cp39-*", + "cp310-*", + "cp311-*", + "cp312-*", + "cp313-*", +] +skip = [ + "cp27-*", + "cp36*", + "pp*", + "*-win32", + "*-musllinux*", + "*_i686", + "*_universal2", +] build-frontend = "build" build-verbosity = 1 test-command = "pytest {project}/tests/test_import.py" @@ -64,16 +81,16 @@ test-requires = ["pytest", "pytest-cov", "pytest-benchmark", "scikit-image"] [tool.cibuildwheel.linux] before-all = ["bash {package}/scripts/build-opencl-linux.sh"] repair-wheel-command = "auditwheel show {wheel} && auditwheel repair --lib-sdir .libs -w {dest_dir} {wheel}" -skip = ["cp27-*", "pp*", "*-musllinux*", "*_i686"] +# skip = ["cp27-*", "pp*", "*-musllinux*", "*_i686"] [tool.cibuildwheel.windows] before-all = "bash {package}/scripts/build-opencl-windows.sh" environment = { SKBUILD_CMAKE_ARGS = "-DOpenCL_LIBRARIES:FILEPATH='C:/Program Files/OpenCL-ICD-Loader/lib/OpenCL.lib';-DOpenCL_INCLUDE_DIRS:PATH='C:/Program Files/OpenCL-ICD-Loader/include/'" } -skip = ["cp27-*", "pp*", "*-win32"] +# skip = ["cp27-*", "pp*", "*-win32"] [tool.cibuildwheel.macos] environment = { MACOSX_DEPLOYMENT_TARGET = '10.14' } -skip = ["cp27-*", "pp*", "*_universal2"] +# skip = ["cp27-*", "pp*", "*_universal2"] [tool.isort] profile = "black"