@@ -103,20 +103,14 @@ jobs:
103103 echo "CIBW_BEFORE_TEST=true" >> $GITHUB_ENV;
104104 echo "CIBW_BEFORE_TEST_WINDOWS=(exit 0)" >> $GITHUB_ENV;
105105
106- - uses : actions/setup-python@v5
107- name : Install Python
106+ - name : Install uv
107+ uses : astral-sh/setup-uv@v5
108108 with :
109109 python-version : ${{ inputs.python-version }}
110- allow-prereleases : ' true'
111-
112- - name : Enable pip installing globally
113- if : runner.os == 'MacOs' || runner.os == 'Windows'
114- run : |
115- echo "PIP_BREAK_SYSTEM_PACKAGES=1" >> $GITHUB_ENV
116110
117111 - name : Install cibuildwheel
118112 run : |
119- python3 -m pip install cibuildwheel==2.22.0
113+ uv tool install ' cibuildwheel==2.22.0'
120114
121115 - name : Install OpenSSL for Windows
122116 if : runner.os == 'Windows'
@@ -154,12 +148,12 @@ jobs:
154148 if : matrix.target != 'linux-aarch64'
155149 shell : bash
156150 run : |
157- GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" python3 -m cibuildwheel --output-dir wheelhouse
151+ GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" cibuildwheel --output-dir wheelhouse
158152
159153 - name : Build wheels for linux aarch64
160154 if : matrix.target == 'linux-aarch64'
161155 run : |
162- GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" CIBW_BUILD="cp3*" python -m cibuildwheel --archs aarch64 --output-dir wheelhouse
156+ GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" CIBW_BUILD="cp3*" cibuildwheel --archs aarch64 --output-dir wheelhouse
163157
164158 - uses : actions/upload-artifact@v4
165159 with :
@@ -172,14 +166,12 @@ jobs:
172166 steps :
173167 - uses : actions/checkout@v4
174168
175- - uses : actions/setup-python@v5
176- name : Install Python
169+ - name : Install uv
170+ uses : astral-sh/setup-uv@v5
177171
178172 - name : Build sdist
179- run : |
180- pip install build
181- python -m build --sdist
182-
173+ run : uv build --sdist
174+
183175 - uses : actions/upload-artifact@v4
184176 with :
185177 name : source-dist
0 commit comments