-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into generic-signal
- Loading branch information
Showing
14 changed files
with
221 additions
and
52 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
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 |
---|---|---|
|
@@ -2,60 +2,66 @@ name: Publish to PyPI | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" | ||
branches: [main] | ||
tags: [v*] | ||
|
||
jobs: | ||
main: | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
name: sdist + pure wheel | ||
test: | ||
uses: pyapp-kit/workflows/.github/workflows/test-pyrepo.yml@v2 | ||
with: | ||
hatch-build-hooks-enable: true | ||
coverage-upload: none | ||
|
||
deploy-sdist: | ||
needs: test | ||
if: success() && startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up latest Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "*" | ||
python-version: "3.x" | ||
|
||
- name: Install latest pip, build, twine | ||
- name: 👷 Build | ||
run: | | ||
python -m pip install --upgrade --disable-pip-version-check pip | ||
python -m pip install --upgrade build twine | ||
- name: Build wheel and source distributions | ||
run: python -m build | ||
python -m pip install build | ||
python -m build | ||
- name: Upload to PyPI via Twine | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.pypi_token }} | ||
run: twine upload --verbose -u '__token__' dist/* | ||
- name: 🚢 Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
- uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
files: "./dist/*" | ||
|
||
mypyc: | ||
deploy-wheel: | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
needs: deploy-sdist | ||
name: mypyc wheels (${{ matrix.name }}) | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
id-token: write | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
name: linux-x86_64 | ||
- os: windows-2019 | ||
- os: windows-latest | ||
name: windows-amd64 | ||
- os: macos-11 | ||
- os: macos-13 | ||
name: macos-x86_64 | ||
macos_arch: "x86_64" | ||
- os: macos-11 | ||
- os: macos-14 | ||
name: macos-arm64 | ||
macos_arch: "arm64" | ||
|
||
|
@@ -65,17 +71,17 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Build wheels via cibuildwheel | ||
uses: pypa/[email protected] | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
env: | ||
CIBW_ARCHS_MACOS: "${{ matrix.macos_arch }}" | ||
|
||
- name: Upload wheels as workflow artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.name }}-mypyc-wheels | ||
path: ./wheelhouse/*.whl | ||
path: ./dist/*.whl | ||
|
||
- name: Upload wheels to PyPI via Twine | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.pypi_token }} | ||
run: pipx run twine upload --verbose -u '__token__' wheelhouse/*.whl | ||
- name: 🚢 Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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
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
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
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
Oops, something went wrong.