forked from pool/python-fastapi
- 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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
3
fastapi-0.117.1.tar.gz
Normal file
3
fastapi-0.117.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fb2d42082d22b185f904ca0ecad2e195b851030bd6c5e4c032d1c981240c631a
|
||||
size 307155
|
||||
3
fastapi-0.120.2.tar.gz
Normal file
3
fastapi-0.120.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4c5ab43e2a90335bbd8326d1b659eac0f3dbcc015e2af573c4f5de406232c4ac
|
||||
size 338684
|
||||
3
fastapi-0.122.0.tar.gz
Normal file
3
fastapi-0.122.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd9b5352031f93773228af8b4c443eedc2ac2aa74b27780387b853c3726fb94b
|
||||
size 346436
|
||||
1021
python-fastapi.changes
Normal file
1021
python-fastapi.changes
Normal file
File diff suppressed because it is too large
Load Diff
135
python-fastapi.spec
Normal file
135
python-fastapi.spec
Normal file
@@ -0,0 +1,135 @@
|
||||
#
|
||||
# spec file for package python-fastapi
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%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%{psuffix}
|
||||
Version: 0.122.0
|
||||
Release: 0
|
||||
Summary: FastAPI framework
|
||||
License: MIT
|
||||
URL: https://github.com/fastapi/fastapi
|
||||
Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pdm-backend}
|
||||
BuildRequires: %{python_module pip}
|
||||
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.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
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
%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 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
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python FastAPI framework.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n fastapi-%{version}
|
||||
|
||||
%build
|
||||
%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"
|
||||
# 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"
|
||||
# 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
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative fastapi
|
||||
|
||||
%post
|
||||
%python_install_alternative fastapi
|
||||
|
||||
%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
|
||||
Reference in New Issue
Block a user