Skip to content

Commit be1d8cf

Browse files
committed
Migrate the package manager from Rye to uv
1 parent 591f3af commit be1d8cf

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28-
- name: Install Rye
29-
run: |
30-
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v5
3130

3231
- name: Install dependencies
3332
run: |
34-
"${HOME}/.rye/shims/rye" sync
33+
uv sync
3534
3635
- name: Test with pytest
3736
run: |
38-
"${HOME}/.rye/shims/rye" run python -m pytest
37+
uv run python -m pytest
3938
4039
examples:
4140
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ build/
55
dist/
66
wheels/
77
*.egg-info
8+
uv.lock
89

910
# venv
1011
.python-version

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ dynamic = ["version"]
1616
requires = ["hatchling"]
1717
build-backend = "hatchling.build"
1818

19-
[tool.rye]
20-
managed = true
21-
dev-dependencies = [
19+
[dependency-groups]
20+
dev = [
2221
"black>=22",
2322
"flake8>=5",
2423
"isort>=5",

0 commit comments

Comments
 (0)