-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f54d55c
commit 72155af
Showing
6 changed files
with
35 additions
and
33 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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*.*.*' | ||
on: push | ||
#push: | ||
# branches: | ||
# - main | ||
# tags: | ||
# - 'v*.*.*' | ||
|
||
jobs: | ||
build_wheels: | ||
|
@@ -21,9 +21,9 @@ jobs: | |
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* | ||
CIBW_BUILD: cp3*-* | ||
CIBW_SKIP: pp* *i686* *win32 *musllinux* | ||
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.8,<3.13' | ||
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.9' | ||
CIBW_BEFORE_BUILD: pip install --verbose --editable . | ||
CIBW_ARCHS_LINUX: auto64 | ||
CIBW_ARCHS_MACOS: x86_64 universal2 arm64 | ||
|
@@ -43,7 +43,8 @@ jobs: | |
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
allow-prereleases: true | ||
|
||
- run: pip install build | ||
|
||
|
@@ -55,22 +56,22 @@ jobs: | |
name: artifact-source | ||
path: dist/*.tar.gz | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
#upload_pypi: | ||
# needs: [build_wheels, build_sdist] | ||
# runs-on: ubuntu-latest | ||
|
||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
pattern: artifact-* | ||
merge-multiple: true | ||
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
# steps: | ||
# - uses: actions/download-artifact@v4 | ||
# with: | ||
# path: dist | ||
# pattern: artifact-* | ||
# merge-multiple: true | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} | ||
# To test, uncomment the following: | ||
# password: ${{ secrets.TEST_PYPI_PASSWORD }} | ||
# repository-url: https://test.pypi.org/legacy/ | ||
# - uses: pypa/[email protected] | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.PYPI_PASSWORD }} | ||
# # To test, uncomment the following: | ||
# # password: ${{ secrets.TEST_PYPI_PASSWORD }} | ||
# # repository-url: https://test.pypi.org/legacy/ |
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