Skip to content

Commit e7041db

Browse files
authored
chore: Migrate from pip to uv package manager (#100)
Switch to uv for Python package management with exclude-newer=1week to prevent supply chain attacks.
1 parent 644414d commit e7041db

5 files changed

Lines changed: 629 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
18-
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
20+
with:
21+
version: "0.11.2"
1922
- name: Set up Python ${{ matrix.python-version }}
2023
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
2124
with:
2225
python-version: ${{ matrix.python-version }}
23-
cache: "pip"
24-
cache-dependency-path: "requirements.txt"
25-
2626
- name: Install dependencies
27-
run: pip install -r requirements.txt
27+
run: uv sync --frozen
2828
- name: fmt
2929
run: make fmt-check

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fmt:
2-
black .
2+
uv run black .
33

44
fmt-check:
5-
black --check .
5+
uv run black --check .

pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[project]
2+
name = "benchmark"
3+
version = "0.1.0"
4+
requires-python = ">=3.11"
5+
dependencies = [
6+
"colorlog>=6.9.0",
7+
"fastparquet>=2024.11.0",
8+
"pandas>=2.3.2",
9+
"pyarrow>=21.0.0",
10+
"python-snappy>=0.7.3",
11+
"psutil>=7.0.0",
12+
]
13+
14+
[dependency-groups]
15+
dev = [
16+
"black>=24.3.0",
17+
]
18+
19+
[tool.uv]
20+
exclude-newer = "1 week"

requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)