Skip to content

Commit 2faec63

Browse files
committed
Use uv to build project in actions
Previously, it wasn't using the right setuptools version. We have a separate issue for switch our tox configuration over to tox-uv.
1 parent 942f5fb commit 2faec63

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/clang-analyzer.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ jobs:
2828
python-version: 3.13
2929

3030
- name: Install dependencies
31-
run: |
32-
python -m pip install --upgrade pip
33-
pip install setuptools wheel
31+
run: python -m pip install uv
3432

3533
- name: Build and run analyzer
3634
# We exclude extension/libmaxminddb/ as libmaxminddb has its own workflow
3735
# for this and we are not able to correct any issues with that code here.
38-
run: scan-build --exclude extension/libmaxminddb/ --status-bugs python setup.py build
36+
run: scan-build --exclude extension/libmaxminddb/ --status-bugs uv build
3937
env:
4038
CFLAGS: "-Werror -Wall -Wextra"
4139
MAXMINDDB_REQUIRE_EXTENSION: 1

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ jobs:
4848
# uses a compiled language
4949

5050
- name: Install dependencies
51-
run: |
52-
python -m pip install --upgrade pip
53-
pip install setuptools wheel
51+
run: python -m pip install uv
5452

55-
- run: python setup.py build
53+
- run: uv build
5654
env:
5755
MAXMINDDB_REQUIRE_EXTENSION: 1
5856

.github/workflows/test-libmaxminddb.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: |
4242
python -m pip install --upgrade pip
43-
pip install setuptools tox tox-gh-actions wheel
43+
pip install setuptools tox tox-gh-actions uv wheel
4444
4545
4646
- name: Install libmaxminddb
@@ -58,7 +58,7 @@ jobs:
5858
echo "LDFLAGS=-L/opt/homebrew/lib" >> "$GITHUB_ENV"
5959
6060
- name: Build with Werror and Wall
61-
run: python setup.py build
61+
run: uv build
6262
env:
6363
CFLAGS: "${{ env.CFLAGS }} -Werror -Wall -Wextra"
6464

0 commit comments

Comments
 (0)