Skip to content

Commit

Permalink
Move cibuildwheel configuration to pyproject.toml.
Browse files Browse the repository at this point in the history
cibuildwheel can read requires-python.
  • Loading branch information
aaugustin committed Apr 6, 2023
1 parent 19be15b commit 659e562
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ jobs:
uses: pypa/cibuildwheel@v2.12.1
env:
BUILD_EXTENSION: yes
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_ARCHS_LINUX: "auto aarch64"
CIBW_SKIP: cp36-*
- name: Save wheels
uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ documentation = "https://websockets.readthedocs.io/"
funding = "https://tidelift.com/subscription/pkg/pypi-websockets?utm_source=pypi-websockets&utm_medium=referral&utm_campaign=readme"
tracker = "https://github.com/aaugustin/websockets/issues"

# On a macOS runner, build Intel, Universal, and Apple Silicon wheels.
[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]

# On an Linux Intel runner with QEMU installed, build Intel and ARM wheels.
[tool.cibuildwheel.linux]
archs = ["auto", "aarch64"]

[tool.coverage.run]
branch = true
omit = [
Expand Down

0 comments on commit 659e562

Please sign in to comment.