Skip to content

Commit 24f53ca

Browse files
authored
Migrate to uv (#114)
1 parent 998b728 commit 24f53ca

File tree

5 files changed

+346
-18
lines changed

5 files changed

+346
-18
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "pip"
3+
- package-ecosystem: "uv"
44
directory: "/"
55
schedule:
66
interval: "weekly"

.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==6.0.3",
10+
"djangorestframework==3.17.1",
11+
"drf-spectacular==0.29.0",
12+
"gunicorn==25.3.0",
13+
"inflection==0.5.1",
14+
"markdown==3.10.2",
15+
"psycopg[binary]==3.3.3",
16+
"pygments==2.20.0",
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)