Skip to content

Commit eb22d13

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

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

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

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

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ skip = [
106106
"*musllinux*",
107107
]
108108
build = ["cp3*", "pp3*"]
109-
110-
before-test = "pip install -r {project}/test-requirements.txt"
109+
test-groups = ['dev']
111110

112111
manylinux-x86_64-image = "manylinux_2_28"
113112
manylinux-aarch64-image = "manylinux_2_28"

0 commit comments

Comments
 (0)