Skip to content

Commit 666a7c3

Browse files
authored
Fix the release pypi workflow (#922)
- Update pypa and docker actions to the latest - Update skipped python versions - Update build archs for macos - Do not upload to pypi when the workflow is manually triggered (helps with debugging the worfklow) - Update minimum Python requirement for chaco (it should be 3.10)
1 parent 7bdb2cf commit 666a7c3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/release-to-pypi.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v3
2020

2121
- name: Set up QEMU
22-
uses: docker/setup-qemu-action@v2
22+
uses: docker/setup-qemu-action@v3.6.0
2323
with:
2424
platforms: arm64
2525
if: runner.os == 'Linux'
@@ -33,9 +33,10 @@ jobs:
3333
run: python -m pip install twine
3434

3535
- name: Build wheels
36-
uses: pypa/cibuildwheel@v2.11.2
36+
uses: pypa/cibuildwheel@v3.2.1
3737

3838
- name: Check and upload wheels
39+
if: ${{ github.event_name == 'release' }}
3940
env:
4041
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
4142
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
@@ -63,9 +64,10 @@ jobs:
6364
run: python -m build --sdist
6465

6566
- name: Publish sdist to PyPI
67+
if: ${{ github.event_name == 'release' }}
6668
env:
6769
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
6870
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
6971
run: |
7072
python -m twine check --strict dist/*
71-
python -m twine upload dist/*
73+
python -m twine upload dist/*

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ requires = ["cython", "numpy>=2", "setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.cibuildwheel]
6-
skip = "pp* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
6+
skip = "pp* *-manylinux_i686 *_ppc64le *_s390x *-musllinux* cp36-* cp37-* cp38-* cp39-*"
77

88
[tool.cibuildwheel.macos]
9-
archs = "x86_64 universal2"
9+
archs = "x86_64 universal2 arm64"
1010

1111
[tool.cibuildwheel.linux]
1212
archs = 'x86_64 aarch64'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,5 +367,5 @@ def resolve_version():
367367
packages=find_packages(),
368368
platforms=["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
369369
zip_safe=False,
370-
python_requires=">=3.9",
370+
python_requires=">=3.10",
371371
)

0 commit comments

Comments
 (0)