Skip to content

Commit 05a804d

Browse files
committed
build: install packaging in upload containers
twine is depending on the newer version of packaging. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent dd82787 commit 05a804d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/release-python.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ jobs:
2222
container:
2323
image: ghcr.io/linux-nvme/debian.python:latest
2424
steps:
25-
- name: Install Python (if missing)
26-
run: apt-get update && apt-get install -y python3 python3-pip
27-
28-
- name: Update python dependencies
29-
run: python3 -m pip install -U packaging --break-system-packages
30-
3125
- uses: actions/checkout@v4
3226

3327
- name: Allow workspace
@@ -45,6 +39,12 @@ jobs:
4539
needs: [build_sdist]
4640
runs-on: ubuntu-latest
4741
steps:
42+
- name: Install Python (if missing)
43+
run: apt-get update && apt-get install -y python3 python3-pip
44+
45+
- name: Update python dependencies
46+
run: python3 -m pip install -U packaging --break-system-packages
47+
4848
- uses: actions/download-artifact@v4
4949
with:
5050
name: artifact
@@ -60,6 +60,12 @@ jobs:
6060
runs-on: ubuntu-latest
6161
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme'
6262
steps:
63+
- name: Install Python (if missing)
64+
run: apt-get update && apt-get install -y python3 python3-pip
65+
66+
- name: Update python dependencies
67+
run: python3 -m pip install -U packaging --break-system-packages
68+
6369
- name: Check if it is a release tag
6470
id: check-tag
6571
run: |

0 commit comments

Comments
 (0)