Skip to content

Commit d7437f5

Browse files
committed
lib-build-and-push.yml: Move to uv
1 parent a187eaa commit d7437f5

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

.github/workflows/lib-build-and-push.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ dev = [
5252
"pyyaml",
5353
"ccm @ git+https://[email protected]/scylladb/scylla-ccm.git@master",
5454
]
55+
ci = ["cibuildwheel==2.22.0"]
5556

5657
[tool.setuptools]
5758
include-package-data = true

0 commit comments

Comments
 (0)