David Anes 2023-02-11 11:52:32 +00:00 committed by Git OBS Bridge
parent 105c9e27c8
commit a13a5b8d8d
4 changed files with 34 additions and 5 deletions

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Fri Feb 10 18:28:13 UTC 2023 - David Anes <david.anes@suse.com>
- 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 <code@bnavigator.de>

View File

@ -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}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:263e3a27e430c5f785e3d1a89037ee2da7b4ab924bcf3223aac3c8183255799e
size 2830865

3
starlette-0.24.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c1f676b4b4aa0d9efba4446f77ae8f4aabc78444e5fad27deaeda777dc6d4e9
size 2834269