Skip to content

Commit fd67595

Browse files
committed
chore: add support for uv
1 parent 0164aec commit fd67595

File tree

3 files changed

+1751
-1
lines changed

3 files changed

+1751
-1
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "django-oauth-toolkit"
77
dynamic = ["version"]
8-
requires-python = ">= 3.8"
8+
requires-python = ">= 3.8,<3.14"
99
authors = [
1010
{name = "Federico Frenguelli"},
1111
{name = "Massimiliano Pippi"},
@@ -92,3 +92,8 @@ select = ["E", "F", "I", "Q", "W"]
9292
[tool.ruff.lint.isort]
9393
lines-after-imports = 2
9494
known-first-party = ["oauth2_provider"]
95+
96+
[tool.uv.workspace]
97+
members = [
98+
"tests/app/idp",
99+
]

tests/app/idp/pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[project]
2+
name = "idp"
3+
version = "0.1.0"
4+
description = "Django OAuth Toolkit Identity Provider Test App"
5+
readme = "README.md"
6+
requires-python = ">=3.8,<3.14"
7+
dependencies = [
8+
"Django>=4.2,<=5.1",
9+
"django-cors-headers==3.14.0",
10+
"django-environ==0.11.2",
11+
"django-oauth-toolkit",
12+
]
13+
14+
15+
[tool.setuptools]
16+
# we're not packaging this as a module, so tell setup tools not to do anything.
17+
py-modules = []
18+
19+
[tool.uv.sources]
20+
# connect to the django-oauth-toolkit package in the parent workspace
21+
# so changes to it are reflected here without reinstalling.
22+
django-oauth-toolkit = { editable = true, workspace = true }

0 commit comments

Comments
 (0)