File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ jobs:
25
25
# available yet which can cause the build to fail. Keep going, and upload
26
26
# the wheels for all of the previous versions when that happens.
27
27
continue-on-error : true
28
- uses : pypa/cibuildwheel@v2.20 .0
28
+ uses : pypa/cibuildwheel@v2.22 .0
29
29
30
30
- uses : actions/upload-artifact@v4
31
31
with :
32
+ name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
32
33
path : ./wheelhouse/*.whl
33
34
34
35
build_sdist :
@@ -50,19 +51,21 @@ jobs:
50
51
51
52
- uses : actions/upload-artifact@v4
52
53
with :
54
+ name : cibw-sdist
53
55
path : dist/*.tar.gz
54
56
55
57
upload_pypi :
56
58
name : Upload to PyPI
57
59
needs : [build_wheels, build_sdist]
58
60
runs-on : ubuntu-latest
61
+ permissions :
62
+ id-token : write
63
+ if : startsWith(github.ref, 'refs/tags/v')
59
64
steps :
60
65
- uses : actions/download-artifact@v4
61
66
with :
62
- name : artifact
63
- path : dist
67
+ pattern : cibw-*
68
+ path : dist
69
+ merge-multiple : true
64
70
65
71
- uses : pypa/gh-action-pypi-publish@release/v1
66
- with :
67
- user : __token__
68
- password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ requires = [
3
3
" wheel" ,
4
4
" setuptools" ,
5
5
" Cython>=0.29.2" ,
6
- " oldest-supported- numpy; python_version<'3.9'" ,
6
+ " numpy<2 ; python_version<'3.9'" ,
7
7
" numpy>=2; python_version>='3.9'" ,
8
8
]
9
9
build-backend = ' setuptools.build_meta'
You can’t perform that action at this time.
0 commit comments