Skip to content

Commit

Permalink
chore: replace pip with uv
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
  • Loading branch information
jfcherng committed Feb 16, 2024
1 parent e9dc5a7 commit 2ada11d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2ada11d

Please sign in to comment.