commit: 600bba15da9227c7bda2ee59e979573efe6c9711
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Jun 15 13:02:16 2025 +0000
Commit: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Mon Jun 16 14:19:46 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=600bba15
dev-python/fastapi: backport starlette-0.48.0 support
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
...-0.115.12.ebuild => fastapi-0.115.12-r1.ebuild} | 5 +++--
.../files/fastapi-0.115.12-starlette-0.48.0.patch | 26 ++++++++++++++++++++++
...h => fastapi-0.115.6-httpx-0.28-test-fix.patch} | 0
3 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/dev-python/fastapi/fastapi-0.115.12.ebuild
b/dev-python/fastapi/fastapi-0.115.12-r1.ebuild
similarity index 95%
rename from dev-python/fastapi/fastapi-0.115.12.ebuild
rename to dev-python/fastapi/fastapi-0.115.12-r1.ebuild
index 40fc4faf8e..b8b38a4ec4 100644
--- a/dev-python/fastapi/fastapi-0.115.12.ebuild
+++ b/dev-python/fastapi/fastapi-0.115.12-r1.ebuild
@@ -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
diff --git a/dev-python/fastapi/files/fastapi-0.115.12-starlette-0.48.0.patch
b/dev-python/fastapi/files/fastapi-0.115.12-starlette-0.48.0.patch
new file mode 100644
index 0000000000..7783ed459a
--- /dev/null
+++ b/dev-python/fastapi/files/fastapi-0.115.12-starlette-0.48.0.patch
@@ -0,0 +1,26 @@
+From 037aff6a9c4e3ea94d9312f734efd79220ac94d2 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <[email protected]>
+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",
+ ]
diff --git
a/dev-python/fastapi/files/fastaapi-0.115.6-httpx-0.28-test-fix.patch
b/dev-python/fastapi/files/fastapi-0.115.6-httpx-0.28-test-fix.patch
similarity index 100%
rename from dev-python/fastapi/files/fastaapi-0.115.6-httpx-0.28-test-fix.patch
rename to dev-python/fastapi/files/fastapi-0.115.6-httpx-0.28-test-fix.patch