Skip to content

Commit ac45ab3

Browse files
authored
Merge pull request #816 from mavlink/pr-fix-license-again-again
CI: try older setuptools
2 parents 91f2011 + e241d3c commit ac45ab3

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install prerequisites
3535
run: |
3636
python3 -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
37-
python3 -m pip install auditwheel "twine<6"
37+
python3 -m pip install "setuptools<77" auditwheel twine
3838
3939
- name: Create wheel
4040
run: |
@@ -47,6 +47,11 @@ jobs:
4747
run: |
4848
ls -lh "wheelhouse/"
4949
50+
- name: Validate wheel metadata
51+
run: |
52+
export PATH=$PATH:$HOME/.local/bin
53+
twine check wheelhouse/*.whl
54+
5055
- name: Create docs
5156
run: |
5257
export PATH=$PATH:$HOME/.local/bin
@@ -100,7 +105,7 @@ jobs:
100105
- name: Install prerequisites
101106
run: |
102107
python3 -m pip install -r requirements.txt -r requirements-dev.txt
103-
python3 -m pip install "twine<6"
108+
python3 -m pip install "setuptools<77" twine
104109
105110
- name: Create wheel
106111
run: |
@@ -112,6 +117,11 @@ jobs:
112117
run: |
113118
ls -lh "dist/"
114119
120+
- name: Validate wheel metadata
121+
run: |
122+
export PATH=$PATH:$HOME/.local/bin
123+
twine check dist/*.whl
124+
115125
- name: Upload to PyPi
116126
env:
117127
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
@@ -149,7 +159,7 @@ jobs:
149159
- name: Install prerequisites
150160
run: |
151161
python -m pip install -r requirements.txt
152-
python -m pip install setuptools "twine<6" wheel
162+
python -m pip install "setuptools<77" twine wheel
153163
python -m pip install --user delocate
154164
155165
- name: Create wheel
@@ -163,6 +173,11 @@ jobs:
163173
run: |
164174
ls -lh "wheelhouse/"
165175
176+
- name: Validate wheel metadata
177+
run: |
178+
export PATH=$PATH:$HOME/.local/bin
179+
twine check wheelhouse/*.whl
180+
166181
- name: Upload to PyPi
167182
env:
168183
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
@@ -206,7 +221,7 @@ jobs:
206221
- name: Install prerequisites
207222
run: |
208223
python3 -m pip install -r requirements.txt -r requirements-dev.txt
209-
python3 -m pip install "twine<6" wheel
224+
python3 -m pip install "setuptools<77" twine wheel
210225
211226
- name: Create wheel
212227
run: |
@@ -218,6 +233,10 @@ jobs:
218233
run: |
219234
ls "dist/"
220235
236+
- name: Validate wheel metadata
237+
run: |
238+
twine check dist/*.whl
239+
221240
- name: Upload to PyPi
222241
env:
223242
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}

0 commit comments

Comments
 (0)