From 2ada11d8bf80d8a9c7676fad5156facc75d0ffbd Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 16 Feb 2024 22:42:14 +0800 Subject: [PATCH] chore: replace pip with uv Signed-off-by: Jack Cherng --- .github/workflows/python.yml | 5 +++-- Makefile | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 4887beb..40fa154 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -43,9 +43,10 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip wheel - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m pip install -U uv - name: Do linting run: | + python -m uv v && . .venv/bin/activate + uv pip install -r requirements.txt make ci-check diff --git a/Makefile b/Makefile index 28bc3e5..1a3e24a 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,12 @@ all: .PHONY: install -install: - python -m pip install -U pip -r requirements.txt +install: pip-compile + python -m uv pip install -r requirements.txt + +.PHONY: pip-compile +pip-compile: + python -m uv pip compile requirements.in -o requirements.txt .PHONY: ci-check ci-check: