1
0

31 Commits

Author SHA256 Message Date
0f00a3afd3 Accepting request 1320604 from devel:languages:python
Forwarded request #1320446 from mgrossu

- Update to version 0.122.0:
    * Use 401 status code in security classes when credentials are missing
    * Configure labeler to exclude files that start from underscore for lang-all label. 
    * Add pre-commit config with local script for permalinks.
    * Use font Fira Code to fix display of Rich panels in docs in Windows
    * Add custom pre-commit CI
    * Bump actions/checkout from 5 to 6
    * Upgrade latest-changes GitHub Action and pin actions/checkout@v5
    * Add add-permalinks and add-permalinks-page to scripts/docs.py
    * Upgrade Material for MkDocs and remove insiders
    * Make the result of Depends() and Security() hashable, as a workaround for other tools interacting with these internal parts
    * Bump Starlette to <0.51.0
    * Add missing hash parts
    * Fix typos in code comments
    * Add docs for using FastAPI Cloud
    * Fix handling of JSON Schema attributes named "$ref"
    * Fix links and add missing permalink in docs
    * Fix Depends(func, scope='function') for top level (parameterless) dependencies
    * Upate docs for advanced dependencies with yield, noting the changes in 0.121.0, adding scope
    * Bump ruff from 0.13.2 to 0.14.3
    * [pre-commit.ci] pre-commit autoupdate
  - Update to version 0.121.0:
    * Add support for dependencies with scopes, support scope="request" for dependencies with yield that exit before the response is sent
    * Update FastAPI People - Contributors and Translators
    * Update FastAPI People - Sponsors
    * Update FastAPI GitHub topic repositories
    * Bump mkdocs-macros-plugin from 1.4.0 to 1.4.1
    * Bump mkdocstrings[python] from 0.26.1 to 0.30.1
    * Fix security schemes in OpenAPI when added at the top level app
    * Reduce internal cyclic recursion in dependencies, from 2 functions calling each other to 1 calling itself
    * Refactor internals of dependencies, simplify code and remove get_param_sub_dependant
    * Refactor internals of dependencies, simplify using dataclasses

OBS-URL: https://build.opensuse.org/request/show/1320604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=46
2025-12-02 12:18:59 +00:00
942d191f7f - Update to version 0.122.0:
* Use 401 status code in security classes when credentials are missing
  * Configure labeler to exclude files that start from underscore for lang-all label. 
  * Add pre-commit config with local script for permalinks.
  * Use font Fira Code to fix display of Rich panels in docs in Windows
  * Add custom pre-commit CI
  * Bump actions/checkout from 5 to 6
  * Upgrade latest-changes GitHub Action and pin actions/checkout@v5
  * Add add-permalinks and add-permalinks-page to scripts/docs.py
  * Upgrade Material for MkDocs and remove insiders
  * Make the result of Depends() and Security() hashable, as a workaround for other tools interacting with these internal parts
  * Bump Starlette to <0.51.0
  * Add missing hash parts
  * Fix typos in code comments
  * Add docs for using FastAPI Cloud
  * Fix handling of JSON Schema attributes named "$ref"
  * Fix links and add missing permalink in docs
  * Fix Depends(func, scope='function') for top level (parameterless) dependencies
  * Upate docs for advanced dependencies with yield, noting the changes in 0.121.0, adding scope
  * Bump ruff from 0.13.2 to 0.14.3
  * [pre-commit.ci] pre-commit autoupdate
- Update to version 0.121.0:
  * Add support for dependencies with scopes, support scope="request" for dependencies with yield that exit before the response is sent
  * Update FastAPI People - Contributors and Translators
  * Update FastAPI People - Sponsors
  * Update FastAPI GitHub topic repositories
  * Bump mkdocs-macros-plugin from 1.4.0 to 1.4.1
  * Bump mkdocstrings[python] from 0.26.1 to 0.30.1
  * Fix security schemes in OpenAPI when added at the top level app
  * Reduce internal cyclic recursion in dependencies, from 2 functions calling each other to 1 calling itself
  * Refactor internals of dependencies, simplify code and remove get_param_sub_dependant
  * Refactor internals of dependencies, simplify using dataclasses

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=104
2025-11-29 22:20:19 +00:00
75c54151ed Accepting request 1314692 from devel:languages:python
SR#1314383 is waiting for this

- Drop unneeded BuildRequires on databases.
- Update to 0.120.2
  * Fix separation of schemas with nested models introduced in 0.119.0
- Update to 0.120.1
  * Bump Starlette to <0.50.0
- Update to 0.120.0
  * Sync German docs
  * Migrate internal reference documentation from typing_extensions.Doc to
    annotated_doc.Doc
  * Update German LLM prompt and test file
  * [pre-commit.ci] pre-commit autoupdate

OBS-URL: https://build.opensuse.org/request/show/1314692
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastapi?expand=0&rev=45
2025-11-01 22:34:37 +00:00
31586c429c - Drop unneeded BuildRequires on databases.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=102
2025-10-31 03:36:31 +00:00
fd2f90ced1 - Update to 0.120.2
* Fix separation of schemas with nested models introduced in 0.119.0
- Update to 0.120.1
  * Bump Starlette to <0.50.0
- Update to 0.120.0
  * Sync German docs
  * Migrate internal reference documentation from typing_extensions.Doc to
    annotated_doc.Doc
  * Update German LLM prompt and test file
  * [pre-commit.ci] pre-commit autoupdate

Depends on: https://build.opensuse.org/request/show/1314560 and https://build.opensuse.org/request/show/1314562

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=101
2025-10-31 03:19:36 +00:00
3cd556e51b 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
2025-09-26 20:24:10 +00:00
c5afff1a68 - 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/package/show/devel:languages:python/python-fastapi?expand=0&rev=99
2025-09-25 05:37:25 +00:00
eb63bfcd11 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
5d083e5bae - 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
17232d5cbb 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
991ff8bce8 - 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
d71950ed45 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
6e8484ebff - 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
40a281c5fc - 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
44ba35b33b - 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
f3f8a9b03a - 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
ce9ed2108a 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
a5fc613b34 - 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/package/show/devel:languages:python/python-fastapi?expand=0&rev=88
2025-02-07 13:03:04 +00:00
edc2e24260 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
51a5f8bacc 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
227a1c96f2 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
973ec18fc1 - 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
0ec657bb58 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
eb3a87b14a - 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
61e3dc8711 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
1ea5b572e9 - 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
f598bf77f9 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
8ae89947fe - 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
8d93db22d9 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
4c71b24822 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
be13249886 - 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
7 changed files with 377 additions and 83 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,22 +0,0 @@
From a03ad2aa8bc9bc974ebf340146bf8d9a8afc0dbb Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
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",
]

Binary file not shown.

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

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

View File

@@ -1,3 +1,322 @@
-------------------------------------------------------------------
Fri Nov 28 11:00:24 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
- Update to version 0.122.0:
* Use 401 status code in security classes when credentials are missing
* Configure labeler to exclude files that start from underscore for lang-all label.
* Add pre-commit config with local script for permalinks.
* Use font Fira Code to fix display of Rich panels in docs in Windows
* Add custom pre-commit CI
* Bump actions/checkout from 5 to 6
* Upgrade latest-changes GitHub Action and pin actions/checkout@v5
* Add add-permalinks and add-permalinks-page to scripts/docs.py
* Upgrade Material for MkDocs and remove insiders
* Make the result of Depends() and Security() hashable, as a workaround for other tools interacting with these internal parts
* Bump Starlette to <0.51.0
* Add missing hash parts
* Fix typos in code comments
* Add docs for using FastAPI Cloud
* Fix handling of JSON Schema attributes named "$ref"
* Fix links and add missing permalink in docs
* Fix Depends(func, scope='function') for top level (parameterless) dependencies
* Upate docs for advanced dependencies with yield, noting the changes in 0.121.0, adding scope
* Bump ruff from 0.13.2 to 0.14.3
* [pre-commit.ci] pre-commit autoupdate
- Update to version 0.121.0:
* Add support for dependencies with scopes, support scope="request" for dependencies with yield that exit before the response is sent
* Update FastAPI People - Contributors and Translators
* Update FastAPI People - Sponsors
* Update FastAPI GitHub topic repositories
* Bump mkdocs-macros-plugin from 1.4.0 to 1.4.1
* Bump mkdocstrings[python] from 0.26.1 to 0.30.1
* Fix security schemes in OpenAPI when added at the top level app
* Reduce internal cyclic recursion in dependencies, from 2 functions calling each other to 1 calling itself
* Refactor internals of dependencies, simplify code and remove get_param_sub_dependant
* Refactor internals of dependencies, simplify using dataclasses
-------------------------------------------------------------------
Fri Oct 31 03:36:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Drop unneeded BuildRequires on databases.
-------------------------------------------------------------------
Thu Oct 30 11:58:24 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 0.120.2
* Fix separation of schemas with nested models introduced in 0.119.0
- Update to 0.120.1
* Bump Starlette to <0.50.0
- Update to 0.120.0
* Sync German docs
* Migrate internal reference documentation from typing_extensions.Doc to
annotated_doc.Doc
* Update German LLM prompt and test file
* [pre-commit.ci] pre-commit autoupdate
-------------------------------------------------------------------
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>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Tue Jul 8 13:26:46 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Fri Jun 27 00:44:09 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Remove ringdisabled, switch to standard multibuild with a test flavor.
-------------------------------------------------------------------
Tue Jun 24 01:53:44 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Fri Jun 6 05:58:54 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-starlette-0.47.patch:
* Allow starlette 0.47.
-------------------------------------------------------------------
Thu May 1 05:53:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Fri Feb 7 11:00:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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.
* Simplify tests for request_forms.
* Simplify tests for path_query_params.
* Simplify tests for path_operation_configurations.
* Simplify tests for header_params.
* Simplify tests for extra_models.
* Simplify tests for extra_data_types.
* Simplify tests for cookie_params.
* Simplify tests for dependencies.
* Simplify tests for body_updates.
* Simplify tests for body_nested_models.
* Simplify tests for body_multiple_params.
* Simplify tests for body_fields.
* Simplify tests for body.
* Simplify tests for bigger_applications.
* Simplify tests for background_tasks.
* Simplify tests for additional_status_codes.
* Update Strawberry integration docs.
* Remove unused Peewee tutorial files.
* Update image in body-nested-model docs.
* Update `fastapi-cli` UI examples in docs.
* Add new GitHub Action to update contributors, translators, and translation reviewers.
* Fix typo in `docs/en/docs/virtual-environments.md`.
* Fix error in `docs/en/docs/contributing.md`.
* Minor corrections in `docs/en/docs/tutorial/sql-databases.md`.
* Update includes in `docs/ru/docs/tutorial/query-param-models.md`.
* Fix typo in README installation instructions.
* Update docs for `fastapi-cli`.
* Update Portuguese Translation for `docs/pt/docs/tutorial/request-forms.md`.
* Update Portuguese translation for `docs/pt/docs/advanced/settings.md`.
* Add Portuguese translation for `docs/pt/docs/tutorial/security/oauth2-jwt.md`.
* Add Indonesian translation for `docs/id/docs/index.md`.
* Add Indonesian translation for `docs/id/docs/tutorial/static-files.md`.
* Add Portuguese translation for `docs/pt/docs/tutorial/security/get-current-user.md`.
* Remove Wrong Portuguese translations location for `docs/pt/docs/advanced/benchmarks.md`.
* Update Portuguese translations.
* Update Russian translation for `docs/ru/docs/tutorial/security/first-steps.md`.
* Delete unnecessary backspace in `docs/ja/docs/tutorial/path-params-numeric-validations.md`.
* Update Chinese translation for `docs/zh/docs/fastapi-cli.md`.
* Add new Spanish translations for all docs with new LLM-assisted system using PydanticAI.
* Update existing Spanish translations using the new LLM-assisted system using PydanticAI.
* Update Chinese translation for `docs/zh/docs/advanced/security/oauth2-scopes.md`.
* Add Indonesian translation for `docs/id/docs/tutorial/path-params.md`.
* Add Korean translation for `docs/ko/docs/tutorial/sql-databases.md`.
* Update Chinese translation for `docs/zh/docs/async.md`.
* Add Chinese translation for `docs/zh/docs/advanced/openapi-webhooks.md`.
* Add Chinese translation for `docs/zh/docs/advanced/async-tests.md`.
* Add Ukrainian translation for `docs/uk/docs/fastapi-cli.md`.
* Add Chinese translation for `docs/zh/docs/advanced/events.md`.
* Add Russian translation for `/docs/ru/docs/tutorial/sql-databases.md`.
* Update Chinese translation for `docs/zh/docs/advanced/testing-dependencies.md`.
* Update Traditional Chinese translation for `docs/zh-hant/docs/tutorial/index.md`.
* Add Chinese translation for `docs/zh/docs/tutorial/sql-databases.md`.
* Update Chinese translation for `docs/zh/docs/tutorial/query-params-str-validations.md`.
* Add Chinese translation for `docs/zh/docs/tutorial/header-param-models.md`.
* Update Chinese translation for `docs/zh/docs/tutorial/path-params.md`.
* Update Chinese translation for `docs/zh/docs/tutorial/first-steps.md`.
* Update Russian translation for `docs/ru/docs/deployment/docker.md`.
* Add Portuguese translation for `docs/pt/docs/advanced/generate-clients.md`.
* Add Indonesian translation for `docs/id/docs/tutorial/first-steps.md`.
* Add Chinese translation for `docs/zh/docs/tutorial/cookie-param-models.md`.
* Add Chinese translation for `docs/zh/docs/tutorial/request-form-models.md`.
* Add Russian translation for `docs/ru/docs/virtual-environments.md`.
* Add Korean translation for `docs/ko/docs/tutorial/testing.md`.
* Add Korean translation for `docs/ko/docs/advanced/async-test.md`.
* Add Russian translation for `docs/ru/docs/tutorial/security/oauth2-jwt.md`.
* Add Russian translation for `docs/ru/docs/tutorial/security/simple-oauth2.md`.
* Add Russian translation for `docs/ru/docs/tutorial/security/get-current-user.md`.
* Add Traditional Chinese translation for `docs/zh-hant/docs/features.md`.
* Add Traditional Chinese translation for `docs/zh-hant/docs/virtual-environments.md`.
* Add Korean translation for `docs/ko/docs/advanced/templates.md`.
* Add Russian translation for `docs/ru/docs/fastapi-cli.md`.
* Add Korean translation for `docs/ko/docs/tutorial/cookie-param-models.md`.
* Add Korean translation for `docs/ko/docs/tutorial/header-param-models.md`.
* Add Korean translation for `docs/ko/docs/tutorial/request-form-models.md`.
* Add Korean translation for `docs/ko/docs/tutorial/request-forms.md`.
* Add Korean translation for `docs/ko/docs/resources/index.md`.
* Add Korean translation for `docs/ko/docs/how-to/configure-swagger-ui.md`.
* Add Korean translation to `docs/ko/docs/advanced/additional-status-codes.md`.
* Add Traditional Chinese translation for `docs/zh-hant/docs/tutorial/first-steps.md`.
* Add Pydantic 2 trove classifier.
* Update FastAPI People - Sponsors.
* Refactor FastAPI People Sponsors to use 2 tokens.
* Update token for FastAPI People - Sponsors.
* Add independent CI automation for FastAPI People - Sponsors.
* Add retries to Smokeshow.
* Update Speakeasy sponsor graphic.
* Update FastAPI GitHub topic repositories.
* Add script for GitHub Topic Repositories and update External Links.
* Update FastAPI People - Contributors and Translators.
* Bump markdown-include-variants from 0.0.3 to 0.0.4.
* Bump inline-snapshot from 0.14.0 to 0.18.1.
* Bump mkdocs-macros-plugin from 1.0.5 to 1.3.7.
* Add internal scripts to generate language translations with PydanticAI, include Spanish prompt.
* Bump astral-sh/setup-uv from 4 to 5.
* Update sponsors: rename CryptAPI to BlockBee.
* Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3.
* Bump types-ujson from 5.7.0.1 to 5.10.0.20240515.
* Bump black from 24.3.0 to 24.10.0.
* Bump inline-snapshot from 0.13.0 to 0.14.0.
* Bump dirty-equals from 0.6.0 to 0.8.0.
* Bump cloudflare/wrangler-action from 3.12 to 3.13.
* Bump astral-sh/setup-uv from 3 to 4.
* Remove duplicate actions/checkout in `notify-translations.yml`.
* Update team members.
* Update sponsors: remove Codacy.
- Refresh remove-classifiers.patch
-------------------------------------------------------------------
Thu Dec 12 14:51:37 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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.
-------------------------------------------------------------------
Thu Dec 5 14:49:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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.
-------------------------------------------------------------------
Thu Nov 21 08:52:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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)
-------------------------------------------------------------------
Thu Nov 7 09:16:23 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- disable PendingDeprecatingWarning
-------------------------------------------------------------------
Fri Oct 18 03:23:50 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Fri Sep 20 08:05:32 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fastapi
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,54 +16,69 @@
#
# Keep extra test requirements out of Ring1
%bcond_with ringdisabled
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-fastapi
Version: 0.112.0
Name: python-fastapi%{psuffix}
Version: 0.122.0
Release: 0
Summary: FastAPI framework
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
# 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 pdm-backend}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pydantic-settings >= 2.0.0}
BuildRequires: %{python_module starlette >= 0.37.2 with %python-starlette < 0.39}
BuildRequires: %{python_module typing_extensions >= 4.8.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-annotated-doc >= 0.0.2
Requires: python-pydantic >= 1.8.2
Requires: python-typing_extensions >= 4.8.0
Requires: (python-starlette >= 0.37.2 with python-starlette < 0.39)
Requires: (python-starlette >= 0.40.0 with python-starlette < 0.50.0)
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
# SECTION test requirements
BuildRequires: %{python_module pdm-backend}
%if %{with test}
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 aiosqlite}
BuildRequires: %{python_module anyio >= 3.2.1}
BuildRequires: %{python_module argon2-cffi}
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}
BuildRequires: %{python_module databases >= 0.3.2}
BuildRequires: %{python_module email-validator >= 1.1.1}
BuildRequires: %{python_module fastapi = %{version}}
BuildRequires: %{python_module httpx >= 0.23.0}
BuildRequires: %{python_module inline-snapshot}
BuildRequires: %{python_module orjson >= 3.2.1}
BuildRequires: %{python_module passlib}
BuildRequires: %{python_module peewee >= 3.13.0}
BuildRequires: %{python_module pwdlib >= 0.2.1}
BuildRequires: %{python_module pydantic-settings >= 2.0.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-jose >= 3.3}
BuildRequires: %{python_module python-multipart >= 0.0.18}
BuildRequires: %{python_module sqlmodel}
BuildRequires: %{python_module trio}
BuildRequires: %{python_module ujson >= 5.6}
%endif
# /SECTION
@@ -79,38 +94,28 @@ Python FastAPI framework.
%pyproject_wheel
%install
%if !%{with test}
%pyproject_install
%python_clone -a %{buildroot}/%{_bindir}/fastapi
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# more warnings as expected
donttest="test_warn_duplicate_operation_id"
# https://github.com/tiangolo/fastapi/discussions/9934
donttest+=" or test_dependency_gets_exception"
# fails because of changed (cosmetic) body format in httpx 0.28 (technically not suppoerted yet upstream)
donttest+=" or test_exception_handler_body_access"
# python-fastapi-cli packages doesn't exists in openSUSE
donttest+=" or test_fastapi_cli"
donttest+=" or test_openapi"
%if %{with ringdisabled}
ignorefiles="$ignorefiles --ignore tests/test_default_response_class.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_async_sql_databases/test_tutorial001.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_custom_response/test_tutorial009c.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003_py310.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_py39.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_py310.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_an.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_an_py39.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutorial005_an_py310.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_sql_databases_peewee"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003_01.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_tutorial003_01_py310.py"
donttest="$donttest or test_orjson_response_class"
donttest="$donttest or (test_tutorial001 and test_get_custom_response)"
# seems to hang in OBS and only for 3.9 which we don't support anymore
donttest+=" or test_tutorial003_py39.py"
%pytest -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning -k "not ($donttest)" tests
%endif
%pytest -W ignore::DeprecationWarning -W ignore::ResourceWarning $ignorefiles -k "not ($donttest)" tests
%pre
%python_libalternatives_reset_alternative fastapi
%post
%python_install_alternative fastapi
@@ -118,11 +123,13 @@ donttest="$donttest or (test_tutorial001 and test_get_custom_response)"
%postun
%python_uninstall_alternative fastapi
%if !%{with test}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/fastapi
%{python_sitelib}/fastapi-%{version}.dist-info
%python_alternative %{_bindir}/fastapi
%endif
%changelog

View File

@@ -1,13 +0,0 @@
Index: fastapi-0.95.1/pyproject.toml
===================================================================
--- fastapi-0.95.1.orig/pyproject.toml
+++ fastapi-0.95.1/pyproject.toml
@@ -27,8 +27,6 @@ classifiers = [
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: FastAPI",
- "Framework :: Pydantic",
- "Framework :: Pydantic :: 1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",