14
0

Accepting request 1307029 from devel:languages:python

- Update to 0.117.1:
  * Features
    + Allow None as return type for bodiless responses.
    + Allow array values for OpenAPI schema type field.
    + Add OpenAPI external_docs parameter to FastAPI.
    + Add support for deploying to FastAPI Cloud with fastapi deploy.
  * Upgrades
    + Upgrade Starlette supported version range to >=0.40.0,<0.49.0.
  * Fixes
    + Fix validation error when File is declared after Form parameter.
    + Fix default_factory for response model field with Pydantic V1.
    + Fix inconsistent processing of model docstring formfeed char with
      Pydantic V1.
    + Fix jsonable_encoder alters json_encoders of Pydantic v1 objects.
    + Reenable allow_arbitrary_types when only 1 argument is used on the API
      endpoint.
    + Fix inspect.getcoroutinefunction() can break testing with
      unittest.mock.patch().
    + Fix support for unions when using Form.
- Update URL.
- Drop patch support-starlette-0.47.patch, no longer required.

OBS-URL: https://build.opensuse.org/request/show/1307029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=44
This commit is contained in:
2025-09-26 20:24:10 +00:00
committed by Git OBS Bridge
5 changed files with 32 additions and 22 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55d1d25c2e1e0a0a50aceb1c8705cd932def273c102bff0b1c1da88b3c6eb307
size 295680

3
fastapi-0.117.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb2d42082d22b185f904ca0ecad2e195b851030bd6c5e4c032d1c981240c631a
size 307155

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Thu Sep 25 05:36:00 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.117.1:
* Features
+ Allow None as return type for bodiless responses.
+ Allow array values for OpenAPI schema type field.
+ Add OpenAPI external_docs parameter to FastAPI.
+ Add support for deploying to FastAPI Cloud with fastapi deploy.
* Upgrades
+ Upgrade Starlette supported version range to >=0.40.0,<0.49.0.
* Fixes
+ Fix validation error when File is declared after Form parameter.
+ Fix default_factory for response model field with Pydantic V1.
+ Fix inconsistent processing of model docstring formfeed char with
Pydantic V1.
+ Fix jsonable_encoder alters json_encoders of Pydantic v1 objects.
+ Reenable allow_arbitrary_types when only 1 argument is used on the API
endpoint.
+ Fix inspect.getcoroutinefunction() can break testing with
unittest.mock.patch().
+ Fix support for unions when using Form.
- Update URL.
- Drop patch support-starlette-0.47.patch, no longer required.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 19 13:10:16 UTC 2025 - Markéta Machová <mmachova@suse.com> Tue Aug 19 13:10:16 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-fastapi # spec file for package python-fastapi
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -31,14 +31,12 @@
%endif %endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-fastapi%{psuffix} Name: python-fastapi%{psuffix}
Version: 0.115.13 Version: 0.117.1
Release: 0 Release: 0
Summary: FastAPI framework Summary: FastAPI framework
License: MIT License: MIT
URL: https://github.com/tiangolo/fastapi URL: https://github.com/fastapi/fastapi
Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz 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 hatchling}
BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
@@ -46,7 +44,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pydantic >= 1.8.2 Requires: python-pydantic >= 1.8.2
Requires: python-typing_extensions >= 4.8.0 Requires: python-typing_extensions >= 4.8.0
Requires: (python-starlette >= 0.40.0 with python-starlette < 0.48.0) Requires: (python-starlette >= 0.40.0 with python-starlette < 0.49.0)
BuildArch: noarch BuildArch: noarch
%if %{with libalternatives} %if %{with libalternatives}
BuildRequires: alts BuildRequires: alts

View File

@@ -1,13 +0,0 @@
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",
]