Skip to content

Commit

Permalink
Build wheels only for cp311
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainv committed Dec 18, 2023
1 parent 1dce1cd commit 185f123
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wheel-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- master
tags:
- "v*"
release:

jobs:
build_wheels:
Expand All @@ -34,7 +33,8 @@ jobs:
run: |
python3 -m cibuildwheel --output-dir wheelhouse
env:
CIBW_SKIP: pp* cp27-win* cp312-*
CIBW_BUILD: cp311-*
CIBW_SKIP: pp*
CIBW_BEFORE_BUILD: pip install numpy
- uses: actions/upload-artifact@v3
with:
Expand All @@ -61,7 +61,7 @@ jobs:

upload_pypi:
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
name: Upload to PyPI
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/wheel-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
push:
branches:
- 'dev'
tags:
- "v*"

env:
CONFIGURATIONS_FOLDER: .github/label-configuration-files
Expand All @@ -35,7 +37,8 @@ jobs:
run: |
python3 -m cibuildwheel --output-dir wheelhouse
env:
CIBW_SKIP: pp* cp27-win* cp312-*
CIBW_BUILD: cp311-*
CIBW_SKIP: pp*
CIBW_BEFORE_BUILD: pip install numpy
- uses: actions/upload-artifact@v3
with:
Expand All @@ -61,7 +64,7 @@ jobs:
path: dist/*.tar.gz

upload_pypi:
if: startsWith(github.event.ref, 'refs/tags/v')
# if: startsWith(github.event.ref, 'refs/tags/v')
# upload to PyPI on every tag starting with 'v'
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
Expand Down

0 comments on commit 185f123

Please sign in to comment.