From 546b785065d62e8b951c9896d17b545cff8390d63af3132515f480df1fa9c199 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Jun 2025 05:59:31 +0000 Subject: [PATCH] - Add patch support-starlette-0.47.patch: * Allow starlette 0.47. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=91 --- python-fastapi.changes | 6 ++++++ python-fastapi.spec | 6 ++++-- support-starlette-0.47.patch | 13 +++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 support-starlette-0.47.patch diff --git a/python-fastapi.changes b/python-fastapi.changes index 45492cb..214ac6f 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 6 05:58:54 UTC 2025 - Steve Kowalik + +- Add patch support-starlette-0.47.patch: + * Allow starlette 0.47. + ------------------------------------------------------------------- Thu May 1 05:53:56 UTC 2025 - Steve Kowalik diff --git a/python-fastapi.spec b/python-fastapi.spec index c7cb3eb..a6d2b25 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -26,16 +26,18 @@ Summary: FastAPI framework License: MIT URL: https://github.com/tiangolo/fastapi Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Support starlette 0.47 +Patch0: support-starlette-0.47.patch BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module pydantic-settings >= 2.0.0} -BuildRequires: %{python_module starlette >= 0.40.0 with %python-starlette < 0.47.0} +BuildRequires: %{python_module starlette >= 0.40.0 with %python-starlette < 0.48.0} BuildRequires: %{python_module typing_extensions >= 4.8.0} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pydantic >= 1.8.2 Requires: python-typing_extensions >= 4.8.0 -Requires: (python-starlette >= 0.40.0 with python-starlette < 0.47.0) +Requires: (python-starlette >= 0.40.0 with python-starlette < 0.48.0) Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch diff --git a/support-starlette-0.47.patch b/support-starlette-0.47.patch new file mode 100644 index 0000000..6d332c6 --- /dev/null +++ b/support-starlette-0.47.patch @@ -0,0 +1,13 @@ +Index: fastapi-0.115.12/pyproject.toml +=================================================================== +--- fastapi-0.115.12.orig/pyproject.toml ++++ fastapi-0.115.12/pyproject.toml +@@ -45,7 +45,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", + ]