dev-python/fastapi: backport starlette-0.48.0 support

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander committed 2025-06-16 16:19:46 +02:00
1 parent 362b55edf8
commit 600bba15da
3 files changed
+29 -2

No files matched your search

@@ -22,7 +22,7 @@ KEYWORDS="~amd64"
RDEPEND="
<dev-python/pydantic-3.0.0[${PYTHON_USEDEP}]
>=dev-python/pydantic-1.7.4[${PYTHON_USEDEP}]
<dev-python/starlette-0.47.0[${PYTHON_USEDEP}]
<dev-python/starlette-0.48.0[${PYTHON_USEDEP}]
>=dev-python/starlette-0.40.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
"
@@ -51,7 +51,8 @@ BDEPEND="
# brottli and zstd due to starlette based tests expecting it
PATCHES=(
"${FILESDIR}"/fastaapi-0.115.6-httpx-0.28-test-fix.patch
"${FILESDIR}/${PN}-0.115.6-httpx-0.28-test-fix.patch"
"${FILESDIR}/${PN}-0.115.12-starlette-0.48.0.patch"
)
distutils_enable_tests pytest
@@ -0,0 +1,26 @@
From 037aff6a9c4e3ea94d9312f734efd79220ac94d2 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Thu, 29 May 2025 13:25:06 -0400
Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20Starlette=20to=20al?=
=?UTF-8?q?low=20up=20to=200.47.0:=20`>=3D0.40.0,<0.48.0`?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index 1c540e2f63b66..a0fe805cdb3b3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -43,7 +43,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
- "starlette>=0.40.0,<0.47.0",
+ "starlette>=0.40.0,<0.48.0",
"pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0",
"typing-extensions>=4.8.0",
]