-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BLD: enable ABI3 forward-compatible wheels for CPython
- Loading branch information
1 parent
857b73e
commit cac1b4c
Showing
3 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.11.2 | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir dist | ||
|
||
uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
|
@@ -39,19 +36,34 @@ jobs: | |
- uses: actions/setup-python@v3 | ||
|
||
- name: Create source distribution | ||
run: python ./setup.py sdist | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: ./dist/*.tar.gz | ||
|
||
audit_abi3_wheels: | ||
name: Audit ABI3 wheels | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build_wheels | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: ./dist/ | ||
- uses: actions/setup-python@v3 | ||
- run: pipx run abi3audit dist/*abi3*.whl | ||
|
||
publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build_wheels | ||
- build_sdist | ||
- audit_abi3_wheels | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters