1
0

16 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
6 changed files with 174 additions and 64 deletions

3
_multibuild Normal file
View File

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

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,124 @@
-------------------------------------------------------------------
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> Fri Feb 7 11:00:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@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
@@ -16,54 +16,69 @@
# #
# Keep extra test requirements out of Ring1 %global flavor @BUILD_FLAVOR@%{nil}
%bcond_with ringdisabled %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} %{?sle15_python_module_pythons}
Name: python-fastapi Name: python-fastapi%{psuffix}
Version: 0.115.8 Version: 0.122.0
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 Remove two unknown classifiers
Patch0: remove-classifiers.patch
BuildRequires: %{python_module hatchling} BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pydantic-settings >= 2.0.0}
BuildRequires: %{python_module starlette >= 0.40.0 with %python-starlette < 0.46.0}
BuildRequires: %{python_module typing_extensions >= 4.8.0}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-annotated-doc >= 0.0.2
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.46.0) 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(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
BuildArch: noarch %endif
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module pdm-backend} %if %{with test}
BuildRequires: %{python_module Flask >= 1.1.2} BuildRequires: %{python_module Flask >= 1.1.2}
BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module PyYAML >= 5.3.1} BuildRequires: %{python_module PyYAML >= 5.3.1}
BuildRequires: %{python_module SQLAlchemy} BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module anyio >= 3.2.1} BuildRequires: %{python_module anyio >= 3.2.1}
BuildRequires: %{python_module argon2-cffi}
BuildRequires: %{python_module coverage} BuildRequires: %{python_module coverage}
BuildRequires: %{python_module dirty-equals} BuildRequires: %{python_module dirty-equals}
BuildRequires: %{python_module httpx >= 0.23.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-multipart >= 0.0.18}
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 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 inline-snapshot}
BuildRequires: %{python_module orjson >= 3.2.1} BuildRequires: %{python_module orjson >= 3.2.1}
BuildRequires: %{python_module passlib} BuildRequires: %{python_module passlib}
BuildRequires: %{python_module peewee >= 3.13.0} 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-jose >= 3.3}
BuildRequires: %{python_module python-multipart >= 0.0.18}
BuildRequires: %{python_module sqlmodel} BuildRequires: %{python_module sqlmodel}
BuildRequires: %{python_module trio}
BuildRequires: %{python_module ujson >= 5.6} BuildRequires: %{python_module ujson >= 5.6}
%endif %endif
# /SECTION # /SECTION
@@ -79,11 +94,14 @@ Python FastAPI framework.
%pyproject_wheel %pyproject_wheel
%install %install
%if !%{with test}
%pyproject_install %pyproject_install
%python_clone -a %{buildroot}/%{_bindir}/fastapi %python_clone -a %{buildroot}/%{_bindir}/fastapi
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check %check
%if %{with test}
# more warnings as expected # more warnings as expected
donttest="test_warn_duplicate_operation_id" donttest="test_warn_duplicate_operation_id"
# fails because of changed (cosmetic) body format in httpx 0.28 (technically not suppoerted yet upstream) # fails because of changed (cosmetic) body format in httpx 0.28 (technically not suppoerted yet upstream)
@@ -91,34 +109,13 @@ donttest+=" or test_exception_handler_body_access"
# python-fastapi-cli packages doesn't exists in openSUSE # python-fastapi-cli packages doesn't exists in openSUSE
donttest+=" or test_fastapi_cli" donttest+=" or test_fastapi_cli"
donttest+=" or test_openapi" donttest+=" or test_openapi"
%if %{with ringdisabled} # seems to hang in OBS and only for 3.9 which we don't support anymore
ignorefiles="$ignorefiles --ignore tests/test_default_response_class.py" donttest+=" or test_tutorial003_py39.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_async_sql_databases/test_tutorial001.py" %pytest -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning -k "not ($donttest)" tests
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_custom_response/test_tutorial009c.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_cookie_param_models/test_tutorial001.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_cookie_param_models/test_tutorial002.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_header_param_models/test_tutorial001.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_header_param_models/test_tutorial002.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_query_param_models/test_tutorial001.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_query_param_models/test_tutorial002.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/test_tutorial001.py"
ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_sql_databases/test_tutorial002.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)"
%endif %endif
%pytest -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning $ignorefiles -k "not ($donttest)" tests
%pre
%python_libalternatives_reset_alternative fastapi
%post %post
%python_install_alternative fastapi %python_install_alternative fastapi
@@ -126,11 +123,13 @@ donttest="$donttest or (test_tutorial001 and test_get_custom_response)"
%postun %postun
%python_uninstall_alternative fastapi %python_uninstall_alternative fastapi
%if !%{with test}
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitelib}/fastapi %{python_sitelib}/fastapi
%{python_sitelib}/fastapi-%{version}.dist-info %{python_sitelib}/fastapi-%{version}.dist-info
%python_alternative %{_bindir}/fastapi %python_alternative %{_bindir}/fastapi
%endif
%changelog %changelog

View File

@@ -1,13 +0,0 @@
diff -Nru fastapi-0.115.8.orig/pyproject.toml fastapi-0.115.8/pyproject.toml
--- fastapi-0.115.8.orig/pyproject.toml 2025-01-30 15:06:26.874525500 +0100
+++ fastapi-0.115.8/pyproject.toml 2025-02-07 12:00:18.048128044 +0100
@@ -29,9 +29,6 @@
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: FastAPI",
- "Framework :: Pydantic",
- "Framework :: Pydantic :: 1",
- "Framework :: Pydantic :: 2",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",