From 28a90f3383d6ccff006cfc2e86d5d91ab87539ac0e035f2ca6fe37a55c2804cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 11 Oct 2024 10:07:51 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-fastapi revision ef3caa0a37a2e584f0431ba50fddee66 --- allow-starlette-0.38.patch | 22 ---------------------- fastapi-0.112.0.tar.gz | 3 --- fastapi-0.114.2.tar.gz | 3 +++ python-fastapi.changes | 13 +++++++++++++ python-fastapi.spec | 6 ++---- 5 files changed, 18 insertions(+), 29 deletions(-) delete mode 100644 allow-starlette-0.38.patch delete mode 100644 fastapi-0.112.0.tar.gz create mode 100644 fastapi-0.114.2.tar.gz diff --git a/allow-starlette-0.38.patch b/allow-starlette-0.38.patch deleted file mode 100644 index 9a74dcc..0000000 --- a/allow-starlette-0.38.patch +++ /dev/null @@ -1,22 +0,0 @@ -From a03ad2aa8bc9bc974ebf340146bf8d9a8afc0dbb Mon Sep 17 00:00:00 2001 -From: "Benjamin A. Beasley" -Date: Tue, 23 Jul 2024 16:45:07 -0400 -Subject: [PATCH] Allow Starlette 0.38 - ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index dbaa42149897a..e231f330165fc 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -41,7 +41,7 @@ classifiers = [ - "Topic :: Internet :: WWW/HTTP", - ] - dependencies = [ -- "starlette>=0.37.2,<0.38.0", -+ "starlette>=0.37.2,<0.39.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/fastapi-0.112.0.tar.gz b/fastapi-0.112.0.tar.gz deleted file mode 100644 index 7cf8399..0000000 --- a/fastapi-0.112.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d262bc56b7d101d1f4e8fc0ad2ac75bb9935fec504d2b7117686cec50710cf05 -size 289904 diff --git a/fastapi-0.114.2.tar.gz b/fastapi-0.114.2.tar.gz new file mode 100644 index 0000000..5d21941 --- /dev/null +++ b/fastapi-0.114.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0adb148b62edb09e8c6eeefa3ea934e8f276dabc038c5a82989ea6346050c3da +size 295481 diff --git a/python-fastapi.changes b/python-fastapi.changes index 0f8678d..d11768f 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Sep 20 08:05:32 UTC 2024 - Steve Kowalik + +- Update to 0.114.2: + * Fix form field regression with alias. + * Improve performance in request body parsing with a cache for internal + model fields. + * Add support for Pydantic models in Form parameters. + * Fix allow_inf_nan option for Param and Body classes. + * Ensure that app.include_router merges nested lifespans. + * Allow Starlette 0.38.x, update the pin to >=0.37.2,<0.39.0 +- Drop patch allow-starlette-0.38.patch, included upstream. + ------------------------------------------------------------------- Wed Aug 14 02:13:46 UTC 2024 - Steve Kowalik diff --git a/python-fastapi.spec b/python-fastapi.spec index 08808d0..6a7421d 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -20,7 +20,7 @@ %bcond_with ringdisabled %{?sle15_python_module_pythons} Name: python-fastapi -Version: 0.112.0 +Version: 0.114.2 Release: 0 Summary: FastAPI framework License: MIT @@ -28,8 +28,6 @@ URL: https://github.com/tiangolo/fastapi Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz # PATCH-FIX-OPENSUSE Remove two unknown classifiers Patch0: remove-classifiers.patch -# PATCH-FIX-UPSTREAM gh#fastapi/fastapi#11876 -Patch1: allow-starlette-0.38.patch BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module pydantic-settings >= 2.0.0} @@ -48,13 +46,13 @@ BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module Flask >= 1.1.2} BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module PyYAML >= 5.3.1} +BuildRequires: %{python_module SQLAlchemy} BuildRequires: %{python_module anyio >= 3.2.1} BuildRequires: %{python_module coverage} BuildRequires: %{python_module dirty-equals} BuildRequires: %{python_module httpx >= 0.23.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-multipart >= 0.0.7} -BuildRequires: %{python_module sqlalchemy < 2.0} BuildRequires: %{python_module trio} %if !%{with ringdisabled} BuildRequires: %{python_module aiosqlite}