From d455977186ae63917fdfbde7ffba0fe7aaab2ca356a570712ce908a8d82db0bd Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 17 Feb 2026 04:24:40 +0000 Subject: [PATCH] - Add missing Requires on typing-inspection. - Add missing BuildRequires on a2wsgi and uvicorn for the testsuite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=107 --- python-fastapi.changes | 6 ++++++ python-fastapi.spec | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-fastapi.changes b/python-fastapi.changes index c0a553b..bbb9eff 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 17 04:24:15 UTC 2026 - Steve Kowalik + +- Add missing Requires on typing-inspection. +- Add missing BuildRequires on a2wsgi and uvicorn for the testsuite. + ------------------------------------------------------------------- Mon Feb 16 17:53:59 UTC 2026 - Dirk Müller diff --git a/python-fastapi.spec b/python-fastapi.spec index 7c0a30a..b1de90e 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -44,6 +44,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-annotated-doc >= 0.0.2 Requires: python-pydantic >= 1.8.2 +Requires: python-typing-inspection >= 0.4.2 Requires: python-typing_extensions >= 4.8.0 Requires: (python-starlette >= 0.40.0 with python-starlette < 1.0.0) BuildArch: noarch @@ -60,6 +61,7 @@ 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 a2wsgi >= 1.9.0} BuildRequires: %{python_module aiosqlite} BuildRequires: %{python_module anyio >= 3.2.1} BuildRequires: %{python_module argon2-cffi} @@ -80,6 +82,7 @@ BuildRequires: %{python_module python-multipart >= 0.0.18} BuildRequires: %{python_module sqlmodel} BuildRequires: %{python_module trio} BuildRequires: %{python_module ujson >= 5.6} +BuildRequires: %{python_module uvicorn >= 0.12} %endif # /SECTION %python_subpackages @@ -111,7 +114,9 @@ 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 +# strawberry-graphql not packaged +ignore="--ignore tests/test_tutorial/test_graphql/test_tutorial001.py" +%pytest -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning $ignore -k "not ($donttest)" tests %endif %pre