From 2e87c7aed646bb6123de458deefec508a119ef4f71d56f864ffe0505137aff3f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 11 Dec 2021 23:54:17 +0000 Subject: [PATCH] Accepting request 939953 from home:Simmphonie:python - update to version 0.17.1 * Fix IndexError in authentication requires when wrapped function arguments are distributed between *args and **kwargs #1335. - version 17.0 * Added - Response.delete_cookie now accepts the same parameters as Response.set_cookie #1228. - Update the Jinja2Templates constructor to allow PathLike #1292. * Fixed - Fix BadSignature exception handling in SessionMiddleware #1264. - Change HTTPConnection.__getitem__ return type from str to typing.Any #1118. - Change ImmutableMultiDict.getlist return type from typing.List[str] to typing.List[typing.Any] #1235. - Handle OSError exceptions on StaticFiles #1220. - Fix StaticFiles 404.html in HTML mode #1314. - Prevent anyio.ExceptionGroup in error views under a BaseHTTPMiddleware #1262. *Removed - Remove GraphQL support #1198. - Remove py39-ignore-loop-deprecation.patch OBS-URL: https://build.opensuse.org/request/show/939953 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=5 --- py39-ignore-loop-deprecation.patch | 22 ---------------------- python-starlette.changes | 25 +++++++++++++++++++++++++ python-starlette.spec | 9 +++------ starlette-0.16.0.tar.gz | 3 --- starlette-0.17.1.tar.gz | 3 +++ 5 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 py39-ignore-loop-deprecation.patch delete mode 100644 starlette-0.16.0.tar.gz create mode 100644 starlette-0.17.1.tar.gz diff --git a/py39-ignore-loop-deprecation.patch b/py39-ignore-loop-deprecation.patch deleted file mode 100644 index d46526b..0000000 --- a/py39-ignore-loop-deprecation.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 0c9ea3c00cc0a267b3ef9dd7a0c0874f466e9cf6 Mon Sep 17 00:00:00 2001 -From: Marcelo Trylesinski -Date: Thu, 16 Sep 2021 13:48:07 +0200 -Subject: [PATCH] Update setup.cfg - ---- - setup.cfg | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/setup.cfg b/setup.cfg -index f59a7202..1266d95c 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -29,6 +29,8 @@ filterwarnings= - ignore: Using or importing the ABCs from 'collections' instead of from 'collections\.abc' is deprecated.*:DeprecationWarning - ignore: The 'context' alias has been deprecated. Please use 'context_value' instead\.:DeprecationWarning - ignore: The 'variables' alias has been deprecated. Please use 'variable_values' instead\.:DeprecationWarning -+ # Workaround for Python 3.9.7 (see https://bugs.python.org/issue45097) -+ ignore:The loop argument is deprecated since Python 3\.8, and scheduled for removal in Python 3\.10\.:DeprecationWarning:asyncio - - [coverage:run] - source_pkgs = starlette, tests diff --git a/python-starlette.changes b/python-starlette.changes index 0d26348..6bb3bf9 100644 --- a/python-starlette.changes +++ b/python-starlette.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Dec 8 15:53:03 UTC 2021 - Torsten Gruner + +- update to version 0.17.1 + * Fix IndexError in authentication requires when wrapped function + arguments are distributed between *args and **kwargs #1335. +- version 17.0 + * Added + - Response.delete_cookie now accepts the same parameters as + Response.set_cookie #1228. + - Update the Jinja2Templates constructor to allow PathLike #1292. + * Fixed + - Fix BadSignature exception handling in SessionMiddleware #1264. + - Change HTTPConnection.__getitem__ return type from str to + typing.Any #1118. + - Change ImmutableMultiDict.getlist return type from typing.List[str] + to typing.List[typing.Any] #1235. + - Handle OSError exceptions on StaticFiles #1220. + - Fix StaticFiles 404.html in HTML mode #1314. + - Prevent anyio.ExceptionGroup in error views under a + BaseHTTPMiddleware #1262. + *Removed + - Remove GraphQL support #1198. +- Remove py39-ignore-loop-deprecation.patch + ------------------------------------------------------------------- Mon Sep 27 12:44:18 UTC 2021 - Matej Cepl diff --git a/python-starlette.spec b/python-starlette.spec index b7a72b9..79988b6 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -19,16 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-starlette -Version: 0.16.0 +Version: 0.17.1 Release: 0 Summary: Lightweight ASGI framework/toolkit License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/encode/starlette Source: https://github.com/encode/starlette/archive/refs/tags/%{version}.tar.gz#/starlette-%{version}.tar.gz -# PATCH-FIX-UPSTREAM py39-ignore-loop-deprecation.patch gh#encode/starlette#1293 mcepl@suse.com -# Ignore loop deprecation warnings originating inside asyncio; bpo#45097 -Patch0: py39-ignore-loop-deprecation.patch BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module aiofiles} @@ -58,7 +55,7 @@ Starlette is a lightweight ASGI framework/toolkit, which is ideal for building high performance asyncio services. %prep -%autosetup -p1 -n starlette-%{version} +%autosetup -n starlette-%{version} %build %python_build @@ -69,7 +66,7 @@ building high performance asyncio services. %check # Deprecate built-in GraphQL support gh#encode/starlette#1135 -rm tests/test_graphql.py +# rm tests/test_graphql.py # Remove unrecognized arguments: --strict-config --strict-markers sed -i "s|--strict-config||" setup.cfg sed -i "s|--strict-markers||" setup.cfg diff --git a/starlette-0.16.0.tar.gz b/starlette-0.16.0.tar.gz deleted file mode 100644 index 08355a5..0000000 --- a/starlette-0.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f3975d2daee42925bcb89dc07f4445c1117d4391266b49f1106890120de49633 -size 444125 diff --git a/starlette-0.17.1.tar.gz b/starlette-0.17.1.tar.gz new file mode 100644 index 0000000..a39e992 --- /dev/null +++ b/starlette-0.17.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:203400772695393de1b8e42347fc26f50e75db083069efc0abe55336097a1c7f +size 403781