diff --git a/.github/workflows/build-ci.yaml b/.github/workflows/build-ci.yaml index 1433d86..4ffe82d 100644 --- a/.github/workflows/build-ci.yaml +++ b/.github/workflows/build-ci.yaml @@ -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: | @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 932178f..37671b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]