- Update to 0.89.1:
* Fixes
- Ignore Response classes on return annotation.
* Docs
- Update docs and examples for Response Model with Return Type
Annotations, and update runtime error.
- New docs at Response Model - Return Type: Other Return Type
Annotations.
- Add External Link: FastAPI lambda container: serverless
simplified.
* Translations
- Add Turkish translation for docs/tr/docs/tutorial/first_steps.md.
- Update to 0.89.0:
* Features
- Add support for function return type annotations to declare the response_model.
* Docs
- Add External Link: Authorization on FastAPI with Casbin.
- Fix typo in docs/en/docs/async.md.
- Fix typo in docs/en/docs/deployment/concepts.md.
* Translations
- Add Russian translation for docs/ru/docs/fastapi-people.md.
- Fix typo in Chinese translation for docs/zh/docs/benchmarks.md.
- Add Korean translation for docs/tutorial/cors.md.
* Internal
- Update coverage[toml] requirement from <7.0,>=6.5.0 to >=6.5.0,<8.0.
- Update uvicorn[standard] requirement from <0.19.0,>=0.12.0 to >=0.12.0,<0.21.0 for development.
- Bump dawidd6/action-download-artifact from 2.24.2 to 2.24.3.
- Update FastAPI People.
- Bump types-ujson from 5.5.0 to 5.6.0.0.
- Bump pypa/gh-action-pypi-publish from 1.5.2 to 1.6.4.
OBS-URL: https://build.opensuse.org/request/show/1057952
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=22
98 lines
3.7 KiB
RPMSpec
98 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package python-fastapi
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
# Keep extra test requirements out of Ring1
|
|
%bcond_with ringdisabled
|
|
Name: python-fastapi
|
|
Version: 0.89.1
|
|
Release: 0
|
|
Summary: FastAPI framework
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/tiangolo/fastapi
|
|
Source: https://files.pythonhosted.org/packages/source/f/fastapi/fastapi-%{version}.tar.gz
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pydantic >= 1.8.2}
|
|
BuildRequires: %{python_module starlette >= 0.22.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pydantic >= 1.8.2
|
|
Requires: python-starlette >= 0.22.0
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module Flask >= 1.1.2}
|
|
BuildRequires: %{python_module PyYAML >= 5.3.1}
|
|
BuildRequires: %{python_module SQLAlchemy >= 1.3.18}
|
|
BuildRequires: %{python_module anyio >= 3.2.1}
|
|
BuildRequires: %{python_module httpx >= 0.23.0}
|
|
BuildRequires: %{python_module python-multipart >= 0.0.5}
|
|
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 orjson >= 3.2.1}
|
|
BuildRequires: %{python_module passlib}
|
|
BuildRequires: %{python_module peewee >= 3.13.0}
|
|
BuildRequires: %{python_module python-jose >= 3.3}
|
|
BuildRequires: %{python_module ujson >= 5.6}
|
|
%endif
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python FastAPI framework.
|
|
|
|
%prep
|
|
%autosetup -p1 -n fastapi-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# more warnings as expected
|
|
donttest="test_warn_duplicate_operation_id"
|
|
%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_sql_databases_peewee"
|
|
donttest="$donttest or test_orjson_response_class"
|
|
donttest="$donttest or (test_tutorial001 and test_get_custom_response)"
|
|
%endif
|
|
%pytest -W ignore::DeprecationWarning $ignorefiles -k "not ($donttest)" tests
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/fastapi
|
|
%{python_sitelib}/fastapi-%{version}.dist-info
|
|
|
|
%changelog
|