@@ -103,20 +103,10 @@ 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
116-
117- - name : Install cibuildwheel
118- run : |
119- python3 -m pip install cibuildwheel==2.22.0
120110
121111 - name : Install OpenSSL for Windows
122112 if : runner.os == 'Windows'
@@ -154,12 +144,12 @@ jobs:
154144 if : matrix.target != 'linux-aarch64'
155145 shell : bash
156146 run : |
157- GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" python3 -m cibuildwheel --output-dir wheelhouse
147+ GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" uv run --group ci cibuildwheel --output-dir wheelhouse
158148
159149 - name : Build wheels for linux aarch64
160150 if : matrix.target == 'linux-aarch64'
161151 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
152+ GITHUB_WORKFLOW_REF="scylladb/python-driver/.github/workflows/lib-build-and-push.yml@refs/heads/master" CIBW_BUILD="cp3*" uv run --group ci cibuildwheel --archs aarch64 --output-dir wheelhouse
163153
164154 - uses : actions/upload-artifact@v4
165155 with :
@@ -172,14 +162,12 @@ jobs:
172162 steps :
173163 - uses : actions/checkout@v4
174164
175- - uses : actions/setup-python@v5
176- name : Install Python
165+ - name : Install uv
166+ uses : astral-sh/setup-uv@v5
177167
178168 - name : Build sdist
179- run : |
180- pip install build
181- python -m build --sdist
182-
169+ run : uv build --sdist
170+
183171 - uses : actions/upload-artifact@v4
184172 with :
185173 name : source-dist
0 commit comments