@@ -37,32 +37,32 @@ jobs:
37
37
mkdir -p dist/
38
38
echo "${VERSION}" > dist/VERSION
39
39
40
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
40
+ - uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4 .3
41
41
with :
42
- name : dist
42
+ name : dist-version
43
43
path : dist/
44
44
45
45
build-sdist :
46
46
needs : validate-release-request
47
47
runs-on : ubuntu-latest
48
48
49
49
steps :
50
- - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
50
+ - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
51
51
with :
52
52
fetch-depth : 50
53
53
submodules : true
54
54
55
55
- name : Set up Python
56
- uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
56
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
57
57
58
58
- name : Build source distribution
59
59
run : |
60
60
python -m pip install -U setuptools wheel pip
61
61
python setup.py sdist
62
62
63
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
63
+ - uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4 .3
64
64
with :
65
- name : dist
65
+ name : dist-sdist
66
66
path : dist/*.tar.*
67
67
68
68
build-wheels :
@@ -73,19 +73,17 @@ jobs:
73
73
os : [ubuntu-latest, macos-latest, windows-latest]
74
74
cibw_arch : ["auto64", "aarch64", "universal2"]
75
75
cibw_python :
76
- - " cp38-*"
77
- - " cp39-*"
78
- - " cp310-*"
79
- - " cp311-*"
80
- - " cp312-*"
76
+ - " cp38"
77
+ - " cp39"
78
+ - " cp310"
79
+ - " cp311"
80
+ - " cp312"
81
+ - " cp313"
81
82
exclude :
82
83
- os : ubuntu-latest
83
84
cibw_arch : universal2
84
85
- os : macos-latest
85
86
cibw_arch : aarch64
86
- - os : macos-latest
87
- cibw_python : " cp37-*"
88
- cibw_arch : universal2
89
87
- os : windows-latest
90
88
cibw_arch : universal2
91
89
- os : windows-latest
@@ -99,45 +97,46 @@ jobs:
99
97
PIP_DISABLE_PIP_VERSION_CHECK : 1
100
98
101
99
steps :
102
- - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
100
+ - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
103
101
with :
104
102
fetch-depth : 50
105
103
submodules : true
106
104
107
105
- name : Set up QEMU
108
106
if : matrix.os == 'ubuntu-latest' && matrix.cibw_arch == 'aarch64'
109
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0 .0
107
+ uses : docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2 .0
110
108
with :
111
109
platforms : arm64
112
110
113
- - uses : pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
111
+ - uses : pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
114
112
env :
115
113
CIBW_BUILD_VERBOSITY : 1
116
- CIBW_BUILD : ${{ matrix.cibw_python }}
114
+ CIBW_BUILD : ${{ matrix.cibw_python }}-*
117
115
CIBW_ARCHS : ${{ matrix.cibw_arch }}
118
116
CIBW_TEST_EXTRAS : " test"
119
117
CIBW_TEST_COMMAND : " python {project}/tests/__init__.py"
120
118
CIBW_TEST_COMMAND_WINDOWS : " python {project}\\ tests\\ __init__.py"
121
119
CIBW_TEST_SKIP : " *universal2:arm64"
122
120
123
- - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1 .3
121
+ - uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4 .3
124
122
with :
125
- name : dist
123
+ name : dist-${{ matrix.os }}-${{ matrix.cibw_arch }}-${{ matrix.cibw_python }}
126
124
path : wheelhouse/*.whl
127
125
128
126
publish :
129
127
needs : [build-sdist, build-wheels]
130
128
runs-on : ubuntu-latest
131
129
132
130
steps :
133
- - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
131
+ - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
134
132
with :
135
133
fetch-depth : 5
136
134
submodules : false
137
135
138
- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
136
+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
139
137
with :
140
- name : dist
138
+ pattern : dist-*
139
+ merge-multiple : true
141
140
path : dist/
142
141
143
142
- name : Extract Release Version
@@ -171,7 +170,7 @@ jobs:
171
170
ls -al dist/
172
171
173
172
- name : Upload to PyPI
174
- uses : pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
173
+ uses : pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3
175
174
with :
176
175
user : __token__
177
176
password : ${{ secrets.PYPI_TOKEN }}
0 commit comments