Skip to content

Commit 202c5a6

Browse files
committed
chore: Use uv instead of Rye
1 parent 167f414 commit 202c5a6

File tree

6 files changed

+605
-192
lines changed

6 files changed

+605
-192
lines changed

.github/workflows/deploy-doc.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,13 @@ jobs:
1212
url: ${{ steps.deployment.outputs.page_url }}
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: actions/setup-python@v5
16-
with:
17-
python-version-file: '.python-version'
15+
- uses: astral-sh/setup-uv@v3
1816
- name: Configure venv
1917
run: |
20-
pip install uv
21-
uv venv
22-
uv pip install -r requirements.lock
23-
- name: Run tests
18+
uv sync --frozen --no-dev
19+
- name: Build doc
2420
run: |
25-
source .venv/bin/activate
26-
make -C doc dirhtml
21+
uv run make -C doc dirhtml
2722
- name: Publish
2823
uses: cloudflare/wrangler-action@v3
2924
with:

.github/workflows/main.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,10 @@ jobs:
3939
- name: 'Build'
4040
run: cargo build --verbose
4141
# Run pytest
42-
- uses: actions/setup-python@v5
43-
with:
44-
python-version-file: '.python-version'
45-
- name: 'Configure venv'
42+
- uses: astral-sh/setup-uv@v3
43+
- name: Configure venv
4644
run: |
47-
pip install uv
48-
uv venv
49-
uv pip install -r requirements.lock
45+
uv sync --frozen --no-dev
5046
- name: 'Run tests'
5147
run: |
52-
source .venv/bin/activate
53-
pytest
48+
uv run pytest

pyproject.toml

+1-6
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ dependencies = [
1414
readme = "README.md"
1515
requires-python = ">= 3.11"
1616

17-
[tool.rye]
18-
managed = true
19-
virtual = true
17+
[tool.uv]
2018
dev-dependencies = [
2119
"esbonio~=0.16.4",
2220
"sphinx-autobuild~=2024.2.4",
2321
]
2422

25-
[tool.rye.scripts]
26-
doc = "make -C doc"
27-
2823
[tool.ruff.lint]
2924
select = ["C90", "D", "E", "F", "I", "W"]
3025

requirements-dev.lock

-97
This file was deleted.

requirements.lock

-71
This file was deleted.

0 commit comments

Comments
 (0)