Skip to content

Commit

Permalink
[ci] Add Linux PyPy builds to CI (#203)
Browse files Browse the repository at this point in the history
* Don't build for Python 3.8 anymore.
* Add PyPy to build identifiers for cibuildwheel in `pyproject.tml`.
* Install all supported Python versions in GH workflows.
  • Loading branch information
SpotlightKid committed May 26, 2024
1 parent bd87768 commit ef41837
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pr_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
3.12
pypy3.9
pypy3.10
- name: Build wheels
uses: pypa/cibuildwheel@v2.16
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/push_to_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
3.12
pypy3.9
pypy3.10
- name: Build wheels
uses: pypa/cibuildwheel@v2.16
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: |
3.9
3.10
3.11
3.12
pypy3.9
pypy3.10
- name: Build wheels
uses: pypa/cibuildwheel@v2.16
env:
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ authors = [
{ name="Christopher Arndt", email="info@chrisarndt.de" },
]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: MacOS X",
Expand Down Expand Up @@ -90,7 +90,6 @@ markers = [
[tool.cibuildwheel]
# Switch to using build
build-frontend = "build"
skip = "pp*"
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
# Run the package tests using `pytest`
Expand All @@ -99,7 +98,7 @@ test-command = "pytest -v -m ci {package}/tests"

# Install system library
[tool.cibuildwheel.linux]
build = "cp3{8,9,10,11,12}-manylinux*"
build = ["cp3{9,10,11,12}-manylinux*", "pp3{9,10}-manylinux*"]
archs = ["auto64"]
before-all = [
"dnf -y install alsa-lib-devel alsa-utils",
Expand All @@ -113,9 +112,9 @@ before-all = [
repair-wheel-command = "auditwheel repair --exclude libasound.so.2 --lib-sdir . -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
build = "cp3{8,9,10,11,12}-macosx*"
build = "cp3{9,10,11,12}-macosx*"
archs = ["x86_64", "arm64"]

[tool.cibuildwheel.windows]
build = "cp3{8,9,10,11,12}-win*"
build = "cp3{9,10,11,12}-win*"
archs = ["AMD64"]

0 comments on commit ef41837

Please sign in to comment.