Skip to content

Commit 8d295ae

Browse files
committed
Migrate to uv
1 parent 259950c commit 8d295ae

File tree

4 files changed

+345
-17
lines changed

4 files changed

+345
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v6
14-
- uses: actions/setup-python@v6
15-
with:
16-
python-version-file: .python-version
17-
cache: 'pip'
14+
- uses: astral-sh/setup-uv@v7
1815

1916
- name: Install dependencies
20-
run: pip install -r requirements.txt
17+
run: uv sync --locked
2118

2219
- name: Run Django check
23-
run: python manage.py check
20+
run: uv run manage.py check

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[project]
2+
name = "rest-framework-tutorial"
3+
version = "1.0.0"
4+
description = "The Django REST framework tutorial. 🎓"
5+
readme = "README.md"
6+
requires-python = "==3.13.*"
7+
dependencies = [
8+
"dj-database-url==3.1.2",
9+
"django==5.2.12",
10+
"djangorestframework==3.17.0",
11+
"drf-spectacular==0.29.0",
12+
"gunicorn==25.1.0",
13+
"inflection==0.5.1",
14+
"markdown==3.10.2",
15+
"psycopg[binary]==3.3.3",
16+
"pygments==2.19.1",
17+
"pyyaml==6.0.3",
18+
"whitenoise==6.12.0",
19+
]

requirements.txt

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

0 commit comments

Comments
 (0)