diff --git a/fastapi-0.110.2.tar.gz b/fastapi-0.110.2.tar.gz deleted file mode 100644 index 8847681..0000000 --- a/fastapi-0.110.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b53d673652da3b65e8cd787ad214ec0fe303cad00d2b529b86ce7db13f17518d -size 11992951 diff --git a/fastapi-0.112.0.tar.gz b/fastapi-0.112.0.tar.gz new file mode 100644 index 0000000..7cf8399 --- /dev/null +++ b/fastapi-0.112.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d262bc56b7d101d1f4e8fc0ad2ac75bb9935fec504d2b7117686cec50710cf05 +size 289904 diff --git a/python-fastapi.changes b/python-fastapi.changes index 1337d12..a72a81d 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Thu Aug 8 09:01:36 UTC 2024 - Daniel Garcia + +- 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 + ------------------------------------------------------------------- Sat Apr 20 20:50:12 UTC 2024 - Dirk Müller diff --git a/python-fastapi.spec b/python-fastapi.spec index 2d50c25..7f31a42 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -20,7 +20,7 @@ %bcond_with ringdisabled %{?sle15_python_module_pythons} Name: python-fastapi -Version: 0.110.2 +Version: 0.112.0 Release: 0 Summary: FastAPI framework License: MIT @@ -38,14 +38,19 @@ BuildRequires: python-rpm-macros Requires: python-pydantic >= 1.8.2 Requires: python-typing_extensions >= 4.8.0 Requires: (python-starlette >= 0.37.2 with python-starlette < 0.38) +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module Flask >= 1.1.2} +BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module PyYAML >= 5.3.1} BuildRequires: %{python_module anyio >= 3.2.1} +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} @@ -73,13 +78,17 @@ Python FastAPI framework. %install %pyproject_install +%python_clone -a %{buildroot}/%{_bindir}/fastapi %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # more warnings as expected donttest="test_warn_duplicate_operation_id" # https://github.com/tiangolo/fastapi/discussions/9934 -donttest="$donttest or test_dependency_gets_exception" +donttest+=" or test_dependency_gets_exception" +# 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" @@ -99,12 +108,19 @@ ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_response_model/test_ 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 +%pytest -W ignore::DeprecationWarning -W ignore::ResourceWarning $ignorefiles -k "not ($donttest)" tests + +%post +%python_install_alternative fastapi + +%postun +%python_uninstall_alternative fastapi %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/fastapi %{python_sitelib}/fastapi-%{version}.dist-info +%python_alternative %{_bindir}/fastapi %changelog