From a13a5b8d8dc9ca89b34f51441c667647e7873bc7310846a46ff0072e0c0332fa Mon Sep 17 00:00:00 2001 From: David Anes Date: Sat, 11 Feb 2023 11:52:32 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=28 --- python-starlette.changes | 20 ++++++++++++++++++++ python-starlette.spec | 13 +++++++++++-- starlette-0.23.1.tar.gz | 3 --- starlette-0.24.0.tar.gz | 3 +++ 4 files changed, 34 insertions(+), 5 deletions(-) delete mode 100644 starlette-0.23.1.tar.gz create mode 100644 starlette-0.24.0.tar.gz diff --git a/python-starlette.changes b/python-starlette.changes index cf51c23..6f3ebc4 100644 --- a/python-starlette.changes +++ b/python-starlette.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Fri Feb 10 18:28:13 UTC 2023 - David Anes + +- Disable broken tests for i586 and armv7l. + +- Update to 0.24.0 + * Added + - Allow StaticFiles to follow symlinks + - Allow Request.form() as a context manager + - Add size attribute to UploadFile + - Add env_prefix argument to Config + - Add template context processors + - Support str and datetime on expires parameter on the Response.set_cookie method + * Changed + - Lazily build the middleware stack + - Make the file argument required on UploadFile + - Use debug extension instead of custom response template extension + * Fixed + - Fix url parsing of ipv6 urls on URL.replace + ------------------------------------------------------------------- Wed Jan 4 21:03:11 UTC 2023 - Ben Greiner diff --git a/python-starlette.spec b/python-starlette.spec index 284b9a9..a2fb627 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -27,7 +27,7 @@ %define skip_python2 1 Name: python-starlette%{psuffix} -Version: 0.23.1 +Version: 0.24.0 Release: 0 Summary: Lightweight ASGI framework/toolkit License: BSD-3-Clause @@ -58,6 +58,7 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module trio} # testing requires it for all flavors BuildRequires: %{python_module typing_extensions} +BuildRequires: %{python_module importlib-metadata} # /SECITON %endif %python_subpackages @@ -84,7 +85,15 @@ building high performance asyncio services. sed -i "s|--strict-config||" setup.cfg sed -i "s|--strict-markers||" setup.cfg sed -i "s| error$||" setup.cfg -%pytest --asyncio-mode=strict + +# The following tests don't work in some archs because time_t cannot +# hold the values the test expect, as they go beyond the maximum +# value in i586 and armv7l. As we are using Buildarch: noarch, we +# cannot just use ifarch conditionals here... +ignored_tests="test_set_cookie" +ignored_tests="$ignored_tests or test_expires_on_set_cookie" +%pytest --asyncio-mode=strict -k "not ($ignored_tests)" + %endif %if ! %{with test} diff --git a/starlette-0.23.1.tar.gz b/starlette-0.23.1.tar.gz deleted file mode 100644 index bd9c1eb..0000000 --- a/starlette-0.23.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:263e3a27e430c5f785e3d1a89037ee2da7b4ab924bcf3223aac3c8183255799e -size 2830865 diff --git a/starlette-0.24.0.tar.gz b/starlette-0.24.0.tar.gz new file mode 100644 index 0000000..4688fdf --- /dev/null +++ b/starlette-0.24.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c1f676b4b4aa0d9efba4446f77ae8f4aabc78444e5fad27deaeda777dc6d4e9 +size 2834269