From 4c24059408d7b06298a86496f3279a4e0e1786035efa8404d3c16939faab59f0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 29 Sep 2022 10:40:28 +0000 Subject: [PATCH] Accepting request 1006859 from home:stroeder:python - Update to 0.21.0 * Changed - Replace requests with httpx in TestClient #1376. * Added - Add WebSocketException and support for WebSocket exception handlers #1263. - Add middleware parameter to Mount class #1649. - Officially support Python 3.11 1863. - Implement __repr__ for route classes #1864. * Fixed - Fix bug on which BackgroundTasks were cancelled when using BaseHTTPMiddleware and client disconnected #1715. - setup.py install is no longer supported by upstream => use pip-based installation - added build dependencies: * python3-hatchling * python3-pip * python3-wheel OBS-URL: https://build.opensuse.org/request/show/1006859 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=20 --- python-starlette.changes | 19 +++++++++++++++++++ python-starlette.spec | 11 +++++++---- starlette-0.20.4.tar.gz | 3 --- starlette-0.21.0.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 7 deletions(-) delete mode 100644 starlette-0.20.4.tar.gz create mode 100644 starlette-0.21.0.tar.gz diff --git a/python-starlette.changes b/python-starlette.changes index 673f0c4..248a38d 100644 --- a/python-starlette.changes +++ b/python-starlette.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Thu Sep 29 08:19:37 UTC 2022 - Michael Ströder + +- Update to 0.21.0 + * Changed + - Replace requests with httpx in TestClient #1376. + * Added + - Add WebSocketException and support for WebSocket exception handlers #1263. + - Add middleware parameter to Mount class #1649. + - Officially support Python 3.11 1863. + - Implement __repr__ for route classes #1864. + * Fixed + - Fix bug on which BackgroundTasks were cancelled when using BaseHTTPMiddleware and client disconnected #1715. +- setup.py install is no longer supported by upstream => use pip-based installation +- added build dependencies: + * python3-hatchling + * python3-pip + * python3-wheel + ------------------------------------------------------------------- Thu Aug 11 05:22:41 UTC 2022 - Steve Kowalik diff --git a/python-starlette.spec b/python-starlette.spec index 79d7ce8..b6da433 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -27,7 +27,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-starlette%{psuffix} -Version: 0.20.4 +Version: 0.21.0 Release: 0 Summary: Lightweight ASGI framework/toolkit License: BSD-3-Clause @@ -37,10 +37,13 @@ BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module anyio} BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module httpx} BuildRequires: %{python_module itsdangerous} -BuildRequires: %{python_module requests} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing_extensions} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-anyio >= 3.4.0 @@ -66,11 +69,11 @@ building high performance asyncio services. %autosetup -n starlette-%{version} %build -%python_build +%pyproject_wheel %install %if ! %{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif diff --git a/starlette-0.20.4.tar.gz b/starlette-0.20.4.tar.gz deleted file mode 100644 index 6cd9fc4..0000000 --- a/starlette-0.20.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:95d69003585563bfc1e832fc9169f65fe92207fd57ce64f657933f37a454bd0e -size 2819634 diff --git a/starlette-0.21.0.tar.gz b/starlette-0.21.0.tar.gz new file mode 100644 index 0000000..af5db0c --- /dev/null +++ b/starlette-0.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ccf92057ce5d66e2b7571c9f6931aa5748208175a77ddd0f8a7f9cc223a5bcd +size 2830353