Skip to content

Commit

Permalink
update CI to use CIBW as they now provide 3.13b support
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra committed May 13, 2024
1 parent d58080b commit b62002e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: " 3.13.0-alpha.3"
python-version: "3.13.0-beta.1"

- name: "Install project on ${{ matrix.os }}"
run: |
Expand All @@ -45,10 +45,30 @@ jobs:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.18.0
env:
CIBW_BUILD: "cp313-*"
CIBW_PRERELEASE_PYTHONS: true

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

upload_pypi:
if: github.event_name == 'push' && github.ref_type == 'tag'
name: Publish built wheels to Pypi
runs-on: ubuntu-latest
environment: release
needs: [install_and_test, build_wheels]
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
name: Publish to PyPI
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ classifiers = [
[project.urls]
Homepage = "https://github.com/AbstractUmbra/audioop"

[tool.setuptools]
packages = ["audioop"]
[tool.setuptools.exclude-package-data]
# Keep just the shared object when packing a wheel, not the C source code.
audioop = ["*.c", "*.h"]
Expand Down

0 comments on commit b62002e

Please sign in to comment.