29 Commits

Author SHA256 Message Date
622b5752ee Accepting request 1300291 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300291
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=43
2025-08-20 11:24:45 +00:00
061e027d72 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=97
2025-08-19 13:15:03 +00:00
8a7dd3277b Accepting request 1291283 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=42
2025-07-09 15:26:15 +00:00
a732f9cecb - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=95
2025-07-08 13:27:17 +00:00
0bf25acb8c Accepting request 1288758 from devel:languages:python
- Remove ringdisabled, switch to standard multibuild with a test flavor.

- Update to 0.115.13:
  * Fix truncating the model's description with form feed (\f) character
    for Pydantic V2.
- Ignore more test files with ringdisabled as inline_snapshot expands
  inside the testsuite.

- Add patch support-starlette-0.47.patch:
  * Allow starlette 0.47.

- Update to 0.115.12:
  * Fix convert_underscores=False for header Pydantic models.
  * Add docs examples and tests (support) for Annotated custom validations,
    like AfterValidator.
  * Update internal annotation usage for compatibility with Pydantic 2.11.
  * Ensure that HTTPDigest only raises an exception when auto_error is True.
- Drop remove-classifiers.patch, no longer required.

OBS-URL: https://build.opensuse.org/request/show/1288758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=41
2025-06-27 21:00:21 +00:00
162835260e - Remove ringdisabled, switch to standard multibuild with a test flavor.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=93
2025-06-27 00:44:33 +00:00
311127468d - Update to 0.115.13:
* Fix truncating the model's description with form feed (\f) character
    for Pydantic V2.
- Ignore more test files with ringdisabled as inline_snapshot expands
  inside the testsuite.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=92
2025-06-24 01:54:42 +00:00
546b785065 - 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
2025-06-06 05:59:31 +00:00
8ae5fcc01c - Update to 0.115.12:
* Fix convert_underscores=False for header Pydantic models.
  * Add docs examples and tests (support) for Annotated custom validations,
    like AfterValidator.
  * Update internal annotation usage for compatibility with Pydantic 2.11.
  * Ensure that HTTPDigest only raises an exception when auto_error is True.
- Drop remove-classifiers.patch, no longer required.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=90
2025-05-01 05:54:46 +00:00
fc94ed1a9c Accepting request 1244151 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1244151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=40
2025-02-09 18:59:05 +00:00
e439df6d66 Accepting request 1244123 from home:glaubitz:branches:devel:languages:python
- Update to 0.115.8
  * Fix `OAuth2PasswordRequestForm` and `OAuth2PasswordRequestFormStrict` fixed `grant_type` "password" RegEx.
  * Simplify tests for body_multiple_params.
  * Move duplicated code portion to a static method in the `APIKeyBase` super class.
  * Simplify tests for request_files.
  * Change the word "unwrap" to "unpack" in `docs/en/docs/tutorial/extra-models.md`.
  * Update Request Body's `tutorial002` to deal with `tax=0` case.
  * Update FastAPI People - Experts.
  * Add Japanese translation for `docs/ja/docs/environment-variables.md`.
  * Add Russian translation for `docs/ru/docs/advanced/async-tests.md`.
  * Update Russian translation for `docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md`.
  * Add Russian translation for `docs/ru/docs/tutorial/bigger-applications.md`.
  * Add support for Python 3.13.
  * Upgrade AnyIO max version for tests, new range: `>=3.2.1,<5.0.0`.
  * Update Sponsors badges.
  * Fix `notify_translations.py` empty env var handling for PR label events vs workflow_dispatch.
  * Refactor and move `scripts/notify_translations.py`, no need for a custom GitHub Action.
  * Update FastAPI People Experts script, refactor and optimize data fetching to handle rate limits.
  * Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4.
- from version 0.115.7
  * Upgrade `python-multipart` to >=0.0.18.
  * Bump Starlette to allow up to 0.45.0: `>=0.40.0,<0.46.0`.
  * Upgrade `jinja2` to >=3.1.5.
  * Simplify tests for websockets.
  * Simplify tests for request_form_models.
  * Simplify tests for separate_openapi_schemas.
  * Simplify tests for security.
  * Simplify tests for schema_extra_example.
  * Simplify tests for request_model.
  * Simplify tests for request_forms_and_files.

OBS-URL: https://build.opensuse.org/request/show/1244123
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=88
2025-02-07 13:03:04 +00:00
d347dce9a3 Accepting request 1230775 from devel:languages:python
Forwarded request #1230610 from bnavigator

- Skip a test because httpx 0.28 cosmetically changed the format
    of a body response. Note that fastapi technically does not yet
    support httpx 0.28 upstream.

OBS-URL: https://build.opensuse.org/request/show/1230775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=39
2024-12-13 21:33:10 +00:00
c96ad6bb8c Accepting request 1230610 from home:bnavigator:branches:devel:languages:python
- Skip a test because httpx 0.28 cosmetically changed the format
  of a body response. Note that fastapi technically does not yet
  support httpx 0.28 upstream.

OBS-URL: https://build.opensuse.org/request/show/1230610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=86
2024-12-13 10:42:59 +00:00
cbdb40e002 Accepting request 1228546 from devel:languages:python
- update to 0.115.6:
  * Preserve traceback when an exception is raised in sync
    dependency with `yield`. PR #5823 by @sombek.
  * Update tests and internals for compatibility with Pydantic
    >=2.10. PR #12971 by @tamird.

OBS-URL: https://build.opensuse.org/request/show/1228546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=38
2024-12-06 13:25:18 +00:00
778d7da896 - update to 0.115.6:
* Preserve traceback when an exception is raised in sync
    dependency with `yield`. PR #5823 by @sombek.
  * Update tests and internals for compatibility with Pydantic
    >=2.10. PR #12971 by @tamird.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=84
2024-12-05 14:50:18 +00:00
3046db595c Accepting request 1225489 from devel:languages:python
- update to 0.115.5:
  * Update internal checks to support Pydantic 2.10.
  * Fix error in `docs/en/docs/tutorial/middleware.md`.
- update to 0.115.4:
  * Update logic to import and check `python-multipart` for
    compatibility with newer version.
- update to 0.115.3:
  * Upgrade Starlette to `>=0.40.0,<0.42.0`.
  * Fix broken link in docs.
- drop allow-new-starlette.patch (obsolete)

OBS-URL: https://build.opensuse.org/request/show/1225489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=37
2024-11-21 14:13:35 +00:00
db7c878a9a - update to 0.115.5:
* Update internal checks to support Pydantic 2.10.
  * Fix error in `docs/en/docs/tutorial/middleware.md`.
- update to 0.115.4:
  * Update logic to import and check `python-multipart` for
    compatibility with newer version.
- update to 0.115.3:
  * Upgrade Starlette to `>=0.40.0,<0.42.0`.
  * Fix broken link in docs.
- drop allow-new-starlette.patch (obsolete)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=82
2024-11-21 08:54:16 +00:00
74b9032e86 Accepting request 1222081 from devel:languages:python
- disable PendingDeprecatingWarning

OBS-URL: https://build.opensuse.org/request/show/1222081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=36
2024-11-08 10:56:16 +00:00
e5a6aa1e02 - disable PendingDeprecatingWarning
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=80
2024-11-07 09:17:16 +00:00
1e8f8cf6ca Accepting request 1208759 from devel:languages:python
- Update to 0.115.2:
  * Upgrade Starlette to >=0.37.2,<0.41.0.
  * Fix openapi generation with responses kwarg.
  * Remove Required shadowing from fastapi using Pydantic v2.
  * Add support for Pydantic models for parameters using Query, Cookie, Header
- Add patch allow-new-starlette.patch.

OBS-URL: https://build.opensuse.org/request/show/1208759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=35
2024-10-20 08:13:06 +00:00
a1bf869751 - Update to 0.115.2:
* Upgrade Starlette to >=0.37.2,<0.41.0.
  * Fix openapi generation with responses kwarg.
  * Remove Required shadowing from fastapi using Pydantic v2.
  * Add support for Pydantic models for parameters using Query, Cookie, Header
- Add patch allow-new-starlette.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=78
2024-10-18 03:24:19 +00:00
7d647be56d Accepting request 1202122 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1202122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=34
2024-09-22 09:05:39 +00:00
e190f121cd Readd SQLAlchemy
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=76
2024-09-20 08:05:54 +00:00
27507f8a24 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=75
2024-09-17 05:46:48 +00:00
3e406b3a12 Accepting request 1193792 from devel:languages:python
- Add patch allow-starlette-0.38.patch:
  * Allow starlette 0.38.

OBS-URL: https://build.opensuse.org/request/show/1193792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=33
2024-08-15 07:57:29 +00:00
dce13137e4 - Add patch allow-starlette-0.38.patch:
* Allow starlette 0.38.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=73
2024-08-14 02:14:25 +00:00
a133c4c0af Accepting request 1192578 from devel:languages:python
- update to 0.112.0:
  * Add support for pip install "fastapi[standard]" with standard
    dependencies and python -m fastapi
- version 0.111.1:
  * Remove orjson and ujson from default dependencies. These
    dependencies are still installed when you install with pip install
    "fastapi[all]"
  * Restored Swagger-UI links to use the latest version possible
- version 0.111.0:
  * Add FastAPI CLI, the new fastapi command
  * Add configs and setup for fastapi-slim including optional extras
    fastapi-slim[standard], and fastapi including by default the same
    standard extras

OBS-URL: https://build.opensuse.org/request/show/1192578
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=32
2024-08-13 11:22:51 +00:00
8a553a62be - Use pdm-backend instead of pdm
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=71
2024-08-08 09:46:41 +00:00
646841f54f - update to 0.112.0:
* Add support for pip install "fastapi[standard]" with standard
    dependencies and python -m fastapi
- version 0.111.1:
  * Remove orjson and ujson from default dependencies. These
    dependencies are still installed when you install with pip install
    "fastapi[all]"
  * Restored Swagger-UI links to use the latest version possible
- version 0.111.0:
  * Add FastAPI CLI, the new fastapi command
  * Add configs and setup for fastapi-slim including optional extras
    fastapi-slim[standard], and fastapi including by default the same
    standard extras

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=70
2024-08-08 09:35:24 +00:00
5 changed files with 22 additions and 32 deletions

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

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

View File

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

View File

@@ -1,28 +1,3 @@
-------------------------------------------------------------------
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>

View File

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

View File

@@ -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",
]