From 58ff790b341495ba6f6300eb218764ce5b6fd65844de4602269c978680ae470e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 5 Jan 2023 13:57:54 +0000 Subject: [PATCH 1/5] Accepting request 1055981 from home:bnavigator:branches:devel:languages:python - Remove flit from build requirements: The real used backend is hatchling - Clean up specfile * remove duplicate copyright header * remove catchall in files section - Drop python-fastapi-disable-broken-tests.patch - Prune the test suite when run in lettered staging projects: python-mocket pulls this into Ring1. Let's make it as painless as possible. OBS-URL: https://build.opensuse.org/request/show/1055981 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=20 --- python-fastapi-disable-broken-tests.patch | 21 ------ python-fastapi.changes | 13 ++++ python-fastapi.spec | 83 +++++++++++------------ 3 files changed, 52 insertions(+), 65 deletions(-) delete mode 100644 python-fastapi-disable-broken-tests.patch diff --git a/python-fastapi-disable-broken-tests.patch b/python-fastapi-disable-broken-tests.patch deleted file mode 100644 index 00411b9..0000000 --- a/python-fastapi-disable-broken-tests.patch +++ /dev/null @@ -1,21 +0,0 @@ -Index: fastapi-0.88.0/tests/test_generate_unique_id_function.py -=================================================================== ---- fastapi-0.88.0.orig/tests/test_generate_unique_id_function.py -+++ fastapi-0.88.0/tests/test_generate_unique_id_function.py -@@ -6,6 +6,8 @@ from fastapi.routing import APIRoute - from fastapi.testclient import TestClient - from pydantic import BaseModel - -+import pytest -+ - - def custom_generate_unique_id(route: APIRoute): - return f"foo_{route.name}" -@@ -1604,6 +1606,7 @@ def test_callback_override_generate_uniq - } - - -+@pytest.mark.skip(reason="failing with current sqlalchemy version") - def test_warn_duplicate_operation_id(): - def broken_operation_id(route: APIRoute): - return "foo" diff --git a/python-fastapi.changes b/python-fastapi.changes index 00df7a3..d29d5b9 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Jan 4 18:18:58 UTC 2023 - Ben Greiner + +- Remove flit from build requirements: The real used backend + is hatchling +- Clean up specfile + * remove duplicate copyright header + * remove catchall in files section +- Drop python-fastapi-disable-broken-tests.patch +- Prune the test suite when run in lettered staging projects: + python-mocket pulls this into Ring1. Let's make it as painless as + possible. + ------------------------------------------------------------------- Mon Nov 14 09:12:12 UTC 2022 - David Anes diff --git a/python-fastapi.spec b/python-fastapi.spec index 5a15670..e38feed 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -1,7 +1,7 @@ # # spec file for package python-fastapi # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -16,24 +16,8 @@ # -# -# spec file for package python-fastapi -# -# Copyright (c) 2022 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/ -# - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Keep extra test requirements out of Ring1 +%bcond_with ringdisabled Name: python-fastapi Version: 0.88.0 Release: 0 @@ -42,34 +26,34 @@ 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 -Patch0: python-fastapi-disable-broken-tests.patch -BuildRequires: %{python_module flit} +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.0.0 -Requires: python-starlette >= 0.21.0 +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} +BuildRequires: %{python_module PyYAML >= 5.3.1} BuildRequires: %{python_module SQLAlchemy >= 1.3.18} -BuildRequires: %{python_module aiosqlite} BuildRequires: %{python_module anyio >= 3.2.1} -BuildRequires: %{python_module databases} +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 hatchling} -BuildRequires: %{python_module httpx >= 0.14.0} -BuildRequires: %{python_module orjson} +BuildRequires: %{python_module orjson >= 3.2.1} BuildRequires: %{python_module passlib} BuildRequires: %{python_module peewee >= 3.13.0} -BuildRequires: %{python_module pydantic >= 1.0.0} -BuildRequires: %{python_module pytest >= 5.4.3} -BuildRequires: %{python_module python-jose} -BuildRequires: %{python_module python-multipart >= 0.0.5} -BuildRequires: %{python_module requests >= 2.24.0} -BuildRequires: %{python_module starlette >= 0.22.0} -BuildRequires: %{python_module trio} +BuildRequires: %{python_module python-jose >= 3.3} +BuildRequires: %{python_module ujson >= 5.2} +%endif # /SECTION %python_subpackages @@ -77,11 +61,7 @@ BuildRequires: %{python_module trio} Python FastAPI framework. %prep -%setup -q -n fastapi-%{version} -%autopatch -p1 - -# Requires orjson -rm tests/test_default_response_class.py +%autosetup -p1 -n fastapi-%{version} %build %pyproject_wheel @@ -91,12 +71,27 @@ rm tests/test_default_response_class.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# These two tests require orjson -%pytest -rs -W ignore::DeprecationWarning -k 'not (test_get_custom_response and (test_tutorial001 or test_tutorial001b))' tests +# 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 +%{python_sitelib}/fastapi-%{version}.dist-info %changelog From 3752782d3250f4ff16e04d81113e885ae852e525b3acfdefb7fbec9fa21fd620 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 5 Jan 2023 16:11:42 +0000 Subject: [PATCH 2/5] Accepting request 1056201 from devel:languages:python baserev update by copy to link target OBS-URL: https://build.opensuse.org/request/show/1056201 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=21 --- python-fastapi-disable-broken-tests.patch | 21 ++++++ python-fastapi.changes | 13 ---- python-fastapi.spec | 83 ++++++++++++----------- 3 files changed, 65 insertions(+), 52 deletions(-) create mode 100644 python-fastapi-disable-broken-tests.patch diff --git a/python-fastapi-disable-broken-tests.patch b/python-fastapi-disable-broken-tests.patch new file mode 100644 index 0000000..00411b9 --- /dev/null +++ b/python-fastapi-disable-broken-tests.patch @@ -0,0 +1,21 @@ +Index: fastapi-0.88.0/tests/test_generate_unique_id_function.py +=================================================================== +--- fastapi-0.88.0.orig/tests/test_generate_unique_id_function.py ++++ fastapi-0.88.0/tests/test_generate_unique_id_function.py +@@ -6,6 +6,8 @@ from fastapi.routing import APIRoute + from fastapi.testclient import TestClient + from pydantic import BaseModel + ++import pytest ++ + + def custom_generate_unique_id(route: APIRoute): + return f"foo_{route.name}" +@@ -1604,6 +1606,7 @@ def test_callback_override_generate_uniq + } + + ++@pytest.mark.skip(reason="failing with current sqlalchemy version") + def test_warn_duplicate_operation_id(): + def broken_operation_id(route: APIRoute): + return "foo" diff --git a/python-fastapi.changes b/python-fastapi.changes index d29d5b9..00df7a3 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,16 +1,3 @@ -------------------------------------------------------------------- -Wed Jan 4 18:18:58 UTC 2023 - Ben Greiner - -- Remove flit from build requirements: The real used backend - is hatchling -- Clean up specfile - * remove duplicate copyright header - * remove catchall in files section -- Drop python-fastapi-disable-broken-tests.patch -- Prune the test suite when run in lettered staging projects: - python-mocket pulls this into Ring1. Let's make it as painless as - possible. - ------------------------------------------------------------------- Mon Nov 14 09:12:12 UTC 2022 - David Anes diff --git a/python-fastapi.spec b/python-fastapi.spec index e38feed..5a15670 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -1,7 +1,7 @@ # # spec file for package python-fastapi # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,24 @@ # -# Keep extra test requirements out of Ring1 -%bcond_with ringdisabled +# +# spec file for package python-fastapi +# +# Copyright (c) 2022 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/ +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-fastapi Version: 0.88.0 Release: 0 @@ -26,34 +42,34 @@ 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} +Patch0: python-fastapi-disable-broken-tests.patch +BuildRequires: %{python_module flit} 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 +Requires: python-pydantic >= 1.0.0 +Requires: python-starlette >= 0.21.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 PyYAML} 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 anyio >= 3.2.1} +BuildRequires: %{python_module databases} BuildRequires: %{python_module email-validator >= 1.1.1} -BuildRequires: %{python_module orjson >= 3.2.1} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module httpx >= 0.14.0} +BuildRequires: %{python_module orjson} BuildRequires: %{python_module passlib} BuildRequires: %{python_module peewee >= 3.13.0} -BuildRequires: %{python_module python-jose >= 3.3} -BuildRequires: %{python_module ujson >= 5.2} -%endif +BuildRequires: %{python_module pydantic >= 1.0.0} +BuildRequires: %{python_module pytest >= 5.4.3} +BuildRequires: %{python_module python-jose} +BuildRequires: %{python_module python-multipart >= 0.0.5} +BuildRequires: %{python_module requests >= 2.24.0} +BuildRequires: %{python_module starlette >= 0.22.0} +BuildRequires: %{python_module trio} # /SECTION %python_subpackages @@ -61,7 +77,11 @@ BuildRequires: %{python_module ujson >= 5.2} Python FastAPI framework. %prep -%autosetup -p1 -n fastapi-%{version} +%setup -q -n fastapi-%{version} +%autopatch -p1 + +# Requires orjson +rm tests/test_default_response_class.py %build %pyproject_wheel @@ -71,27 +91,12 @@ Python FastAPI framework. %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 +# These two tests require orjson +%pytest -rs -W ignore::DeprecationWarning -k 'not (test_get_custom_response and (test_tutorial001 or test_tutorial001b))' tests %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/fastapi -%{python_sitelib}/fastapi-%{version}.dist-info +%{python_sitelib}/*fastapi*/ %changelog From ae7792c2b80e7520d8db63b8d0ea45482044c2497db9c33b5c1dfe0942ec1947 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 5 Jan 2023 16:11:42 +0000 Subject: [PATCH 3/5] Updating link to change in openSUSE:Factory/python-fastapi revision 10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=a91dbb8656ed41e525162f2ba9c988a0 --- python-fastapi-disable-broken-tests.patch | 21 ------ python-fastapi.changes | 13 ++++ python-fastapi.spec | 83 +++++++++++------------ 3 files changed, 52 insertions(+), 65 deletions(-) delete mode 100644 python-fastapi-disable-broken-tests.patch diff --git a/python-fastapi-disable-broken-tests.patch b/python-fastapi-disable-broken-tests.patch deleted file mode 100644 index 00411b9..0000000 --- a/python-fastapi-disable-broken-tests.patch +++ /dev/null @@ -1,21 +0,0 @@ -Index: fastapi-0.88.0/tests/test_generate_unique_id_function.py -=================================================================== ---- fastapi-0.88.0.orig/tests/test_generate_unique_id_function.py -+++ fastapi-0.88.0/tests/test_generate_unique_id_function.py -@@ -6,6 +6,8 @@ from fastapi.routing import APIRoute - from fastapi.testclient import TestClient - from pydantic import BaseModel - -+import pytest -+ - - def custom_generate_unique_id(route: APIRoute): - return f"foo_{route.name}" -@@ -1604,6 +1606,7 @@ def test_callback_override_generate_uniq - } - - -+@pytest.mark.skip(reason="failing with current sqlalchemy version") - def test_warn_duplicate_operation_id(): - def broken_operation_id(route: APIRoute): - return "foo" diff --git a/python-fastapi.changes b/python-fastapi.changes index 00df7a3..d29d5b9 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Jan 4 18:18:58 UTC 2023 - Ben Greiner + +- Remove flit from build requirements: The real used backend + is hatchling +- Clean up specfile + * remove duplicate copyright header + * remove catchall in files section +- Drop python-fastapi-disable-broken-tests.patch +- Prune the test suite when run in lettered staging projects: + python-mocket pulls this into Ring1. Let's make it as painless as + possible. + ------------------------------------------------------------------- Mon Nov 14 09:12:12 UTC 2022 - David Anes diff --git a/python-fastapi.spec b/python-fastapi.spec index 5a15670..e38feed 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -1,7 +1,7 @@ # # spec file for package python-fastapi # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -16,24 +16,8 @@ # -# -# spec file for package python-fastapi -# -# Copyright (c) 2022 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/ -# - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Keep extra test requirements out of Ring1 +%bcond_with ringdisabled Name: python-fastapi Version: 0.88.0 Release: 0 @@ -42,34 +26,34 @@ 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 -Patch0: python-fastapi-disable-broken-tests.patch -BuildRequires: %{python_module flit} +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.0.0 -Requires: python-starlette >= 0.21.0 +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} +BuildRequires: %{python_module PyYAML >= 5.3.1} BuildRequires: %{python_module SQLAlchemy >= 1.3.18} -BuildRequires: %{python_module aiosqlite} BuildRequires: %{python_module anyio >= 3.2.1} -BuildRequires: %{python_module databases} +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 hatchling} -BuildRequires: %{python_module httpx >= 0.14.0} -BuildRequires: %{python_module orjson} +BuildRequires: %{python_module orjson >= 3.2.1} BuildRequires: %{python_module passlib} BuildRequires: %{python_module peewee >= 3.13.0} -BuildRequires: %{python_module pydantic >= 1.0.0} -BuildRequires: %{python_module pytest >= 5.4.3} -BuildRequires: %{python_module python-jose} -BuildRequires: %{python_module python-multipart >= 0.0.5} -BuildRequires: %{python_module requests >= 2.24.0} -BuildRequires: %{python_module starlette >= 0.22.0} -BuildRequires: %{python_module trio} +BuildRequires: %{python_module python-jose >= 3.3} +BuildRequires: %{python_module ujson >= 5.2} +%endif # /SECTION %python_subpackages @@ -77,11 +61,7 @@ BuildRequires: %{python_module trio} Python FastAPI framework. %prep -%setup -q -n fastapi-%{version} -%autopatch -p1 - -# Requires orjson -rm tests/test_default_response_class.py +%autosetup -p1 -n fastapi-%{version} %build %pyproject_wheel @@ -91,12 +71,27 @@ rm tests/test_default_response_class.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# These two tests require orjson -%pytest -rs -W ignore::DeprecationWarning -k 'not (test_get_custom_response and (test_tutorial001 or test_tutorial001b))' tests +# 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 +%{python_sitelib}/fastapi-%{version}.dist-info %changelog From 2f01ae3f627e474210ab528e9ac976d077a5be239cbc99353c301c38f46356e3 Mon Sep 17 00:00:00 2001 From: David Anes Date: Thu, 12 Jan 2023 10:23:53 +0000 Subject: [PATCH 4/5] Accepting request 1057952 from home:david.anes:branches:devel:languages:python - 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 --- fastapi-0.88.0.tar.gz | 3 -- fastapi-0.89.1.tar.gz | 3 ++ python-fastapi.changes | 88 +++++++++++++++++++++++++++++++----------- python-fastapi.spec | 4 +- 4 files changed, 70 insertions(+), 28 deletions(-) delete mode 100644 fastapi-0.88.0.tar.gz create mode 100644 fastapi-0.89.1.tar.gz diff --git a/fastapi-0.88.0.tar.gz b/fastapi-0.88.0.tar.gz deleted file mode 100644 index c64c130..0000000 --- a/fastapi-0.88.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:915bf304180a0e7c5605ec81097b7d4cd8826ff87a02bb198e336fb9f3b5ff02 -size 9680659 diff --git a/fastapi-0.89.1.tar.gz b/fastapi-0.89.1.tar.gz new file mode 100644 index 0000000..1020ae4 --- /dev/null +++ b/fastapi-0.89.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15d9271ee52b572a015ca2ae5c72e1ce4241dd8532a534ad4f7ec70c376a580f +size 9702353 diff --git a/python-fastapi.changes b/python-fastapi.changes index d29d5b9..85d3795 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Thu Jan 12 09:52:02 UTC 2023 - David Anes + +- 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. + - Add GitHub Action gate/check. + - Update sponsors, add Svix. + - Remove Doist sponsor. + - Update sqlalchemy requirement from <=1.4.41,>=1.3.18 to >=1.3.18,<1.4.43. + - Bump nwtgck/actions-netlify from 1.2.4 to 2.0.0. + - Refactor CI artifact upload/download for docs previews. + - Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.5.2. + - Update FastAPI People. + - Update sponsors, disable course bundle. + - Update typer[all] requirement from <0.7.0,>=0.6.1 to >=0.6.1,<0.8.0. + ------------------------------------------------------------------- Wed Jan 4 18:18:58 UTC 2023 - Ben Greiner @@ -22,12 +67,12 @@ Mon Nov 14 09:12:12 UTC 2022 - David Anes - Update to 0.88.0 * Upgrades - - arrow_up Bump Starlette to version 0.22.0 to fix bad encoding + - Bump Starlette to version 0.22.0 to fix bad encoding for query parameters in new TestClient. * Docs - - pencil2 Fix typo in docs for docs/en/docs/advanced/middleware.md. + - Fix typo in docs for docs/en/docs/advanced/middleware.md. * Translations - - globe_with_meridians Add Portuguese translation for + - Add Portuguese translation for docs/pt/docs/deployment/docker.md. - Update to 0.87.0 @@ -46,38 +91,35 @@ Mon Nov 14 09:12:12 UTC 2022 - David Anes - New docs about how to Help Maintain FastAPI. * Features: - - arrow_up Upgrade and relax dependencies for extras "all". - - sparkles Re-export Starlette's WebSocketException and add it + - Upgrade and relax dependencies for extras "all". + - Re-export Starlette's WebSocketException and add it to docs. - - memo Update references to Requests for tests to HTTPX, and add + - Update references to Requests for tests to HTTPX, and add HTTPX to extras. - - arrow_up Upgrade Starlette to 0.21.0, including the new + - Upgrade Starlette to 0.21.0, including the new TestClient based on HTTPX. PR #5471 by @pawelrubin. * Docs: - - pencil2 Tweak Help FastAPI from PR review after merging. - - pencil2 Clarify docs on CORS. - - memo Update Help FastAPI: Help Maintain FastAPI. + - Tweak Help FastAPI from PR review after merging. + - Clarify docs on CORS. + - Update Help FastAPI: Help Maintain FastAPI. * Translations: - - globe_with_meridians Fix highlight lines for Japanese + - Fix highlight lines for Japanese translation for docs/tutorial/query-params.md. - - globe_with_meridians Add French translation for + - Add French translation for docs/fr/docs/advanced/additional-status-code.md. - - globe_with_meridians Add Portuguese translation for + - Add Portuguese translation for docs/pt/docs/tutorial/request-forms-and-files.md. - - globe_with_meridians Add Japanese translation for + - Add Japanese translation for docs/ja/docs/advanced/websockets.md. * Internal: - - sparkles Use Ruff for linting. - - hammer_and_wrench Add Arabic issue number to Notify - Translations GitHub Action. - - arrow_up Bump dawidd6/action-download-artifact from 2.24.1 to - 2.24.2. - - arrow_up Bump dawidd6/action-download-artifact from 2.24.0 to - 2.24.1. - - memo Update coverage badge to use Samuel Colvin's Smokeshow. + - Use Ruff for linting. + - Add Arabic issue number to Notify Translations GitHub Action. + - Bump dawidd6/action-download-artifact from 2.24.1 to 2.24.2. + - Bump dawidd6/action-download-artifact from 2.24.0 to 2.24.1. + - Update coverage badge to use Samuel Colvin's Smokeshow. ------------------------------------------------------------------- Fri Nov 4 11:06:39 UTC 2022 - Michael Ströder @@ -101,7 +143,7 @@ Wed Nov 2 10:35:31 UTC 2022 - David Anes - Fix typo in docs about contributing, for compatibility with pip in Zsh. - Fix typo in docs with examples for Python 3.10 instead of 3.9. - *Translations: + * Translations: - Add Portuguese translation for docs/pt/docs/tutorial/request-forms.md. - Add Chinese translation for docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md. - Add French translation for deployment/deta.md. diff --git a/python-fastapi.spec b/python-fastapi.spec index e38feed..3af606d 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -19,7 +19,7 @@ # Keep extra test requirements out of Ring1 %bcond_with ringdisabled Name: python-fastapi -Version: 0.88.0 +Version: 0.89.1 Release: 0 Summary: FastAPI framework License: MIT @@ -52,7 +52,7 @@ 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.2} +BuildRequires: %{python_module ujson >= 5.6} %endif # /SECTION %python_subpackages From 363d21ca555560b3b35a4204c0b9528e6a9c1d1753d8437150eb8d088f618644 Mon Sep 17 00:00:00 2001 From: David Anes Date: Thu, 12 Jan 2023 18:56:33 +0000 Subject: [PATCH 5/5] Accepting request 1058066 from home:david.anes:branches:devel:languages:python - Prune the test suite when run in lettered staging projects: * Add a couple more tests that require extra packages. OBS-URL: https://build.opensuse.org/request/show/1058066 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastapi?expand=0&rev=23 --- python-fastapi.changes | 6 ++++++ python-fastapi.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/python-fastapi.changes b/python-fastapi.changes index 85d3795..4fb448d 100644 --- a/python-fastapi.changes +++ b/python-fastapi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 12 18:47:42 UTC 2023 - David Anes + +- Prune the test suite when run in lettered staging projects: + * Add a couple more tests that require extra packages. + ------------------------------------------------------------------- Thu Jan 12 09:52:02 UTC 2023 - David Anes diff --git a/python-fastapi.spec b/python-fastapi.spec index 3af606d..8625b6a 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -83,6 +83,8 @@ ignorefiles="$ignorefiles --ignore tests/test_tutorial/test_security/test_tutori 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" +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