diff --git a/.github/workflows/release-to-pypi.yml b/.github/workflows/release-to-pypi.yml index 60a6db449..450d93c6a 100644 --- a/.github/workflows/release-to-pypi.yml +++ b/.github/workflows/release-to-pypi.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3.6.0 with: platforms: arm64 if: runner.os == 'Linux' @@ -33,9 +33,10 @@ jobs: run: python -m pip install twine - name: Build wheels - uses: pypa/cibuildwheel@v2.11.2 + uses: pypa/cibuildwheel@v3.2.1 - name: Check and upload wheels + if: ${{ github.event_name == 'release' }} env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} @@ -63,9 +64,10 @@ jobs: run: python -m build --sdist - name: Publish sdist to PyPI + if: ${{ github.event_name == 'release' }} env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python -m twine check --strict dist/* - python -m twine upload dist/* \ No newline at end of file + python -m twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index 46901ad2a..2df963475 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,10 +3,10 @@ requires = ["cython", "numpy>=2", "setuptools", "wheel"] build-backend = "setuptools.build_meta" [tool.cibuildwheel] -skip = "pp* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*" +skip = "pp* *-manylinux_i686 *_ppc64le *_s390x *-musllinux* cp36-* cp37-* cp38-* cp39-*" [tool.cibuildwheel.macos] -archs = "x86_64 universal2" +archs = "x86_64 universal2 arm64" [tool.cibuildwheel.linux] archs = 'x86_64 aarch64' diff --git a/setup.py b/setup.py index f3b1fcafa..ab3f2aeb5 100644 --- a/setup.py +++ b/setup.py @@ -367,5 +367,5 @@ def resolve_version(): packages=find_packages(), platforms=["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"], zip_safe=False, - python_requires=">=3.9", + python_requires=">=3.10", )