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 20, 2024
1 parent e9dc5a7 commit 0d1869a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
submodules: recursive

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- 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: |
make ci-check
uv v && . .venv/bin/activate
make install ci-check
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ all:

.PHONY: install
install:
python -m pip install -U pip -r requirements.txt
uv pip install -r requirements.txt

.PHONY: pip-compile
pip-compile:
uv pip compile --upgrade requirements.in -o requirements.txt

.PHONY: ci-check
ci-check:
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This file was autogenerated by uv v0.1.2 via the following command:
# uv pip compile requirements.in -o requirements.txt
# This file was autogenerated by uv v0.1.5 via the following command:
# uv pip compile --upgrade requirements.in -o requirements.txt
mypy==1.8.0
mypy-extensions==1.0.0
# via mypy
ruff==0.2.1
ruff==0.2.2
typing-extensions==4.9.0
# via mypy

0 comments on commit 0d1869a

Please sign in to comment.