Accepting request 956892 from devel:languages:python
- Update to 0.18.0: * Change default chunk size from 4Kb to 64Kb on FileResponse #1345. * Add support for functools.partial in WebSocketRoute #1356. * Add StaticFiles packages with directory #1350. * Allow environment options in Jinja2Templates #1401. * Allow HEAD method on HttpEndpoint #1346. * Accept additional headers on websocket.accept message #1361 and #1422. * Add reason to WebSocket close ASGI event #1417. * Add headers attribute to UploadFile #1382. * Don't omit Content-Length header for Content-Length: 0 cases #1395. * Don't set headers for responses with 1xx, 204 and 304 status code #1397. * SessionMiddleware.max_age now accepts None, so cookie can last as long as the browser session #1387. * Tweak hashlib.md5() function on FileResponses ETag generation. The parameter usedforsecurity flag is set to False, if the flag is available on the system. This fixes an error raised on systems with FIPS enabled #1366 and #1410. * Fix path_params type on url_path_for() method i.e. turn str into Any #1341. * Host now ignores port on routing #1322. - Set asyncio_mode when running pytest, and stop turning warnings into errors. OBS-URL: https://build.opensuse.org/request/show/956892 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=5
This commit is contained in:
commit
89078b3a63
@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 23 01:08:10 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 0.18.0:
|
||||
* Change default chunk size from 4Kb to 64Kb on FileResponse #1345.
|
||||
* Add support for functools.partial in WebSocketRoute #1356.
|
||||
* Add StaticFiles packages with directory #1350.
|
||||
* Allow environment options in Jinja2Templates #1401.
|
||||
* Allow HEAD method on HttpEndpoint #1346.
|
||||
* Accept additional headers on websocket.accept message #1361 and #1422.
|
||||
* Add reason to WebSocket close ASGI event #1417.
|
||||
* Add headers attribute to UploadFile #1382.
|
||||
* Don't omit Content-Length header for Content-Length: 0 cases #1395.
|
||||
* Don't set headers for responses with 1xx, 204 and 304 status code #1397.
|
||||
* SessionMiddleware.max_age now accepts None, so cookie can last as long
|
||||
as the browser session #1387.
|
||||
* Tweak hashlib.md5() function on FileResponses ETag generation. The
|
||||
parameter usedforsecurity flag is set to False, if the flag is available
|
||||
on the system. This fixes an error raised on systems with FIPS
|
||||
enabled #1366 and #1410.
|
||||
* Fix path_params type on url_path_for() method i.e. turn str into Any #1341.
|
||||
* Host now ignores port on routing #1322.
|
||||
- Set asyncio_mode when running pytest, and stop turning warnings into
|
||||
errors.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 8 15:53:03 UTC 2021 - Torsten Gruner <simmphonie@opensuse.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-starlette
|
||||
#
|
||||
# Copyright (c) 2021 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,14 +16,13 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-starlette
|
||||
Version: 0.17.1
|
||||
Version: 0.18.0
|
||||
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
|
||||
BuildRequires: %{python_module Jinja2}
|
||||
@ -43,6 +42,7 @@ BuildRequires: %{python_module python-multipart}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module trio}
|
||||
BuildRequires: %{python_module typing_extensions}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: (python3-aiocontextvars if python3-base < 3.7)
|
||||
@ -65,12 +65,11 @@ building high performance asyncio services.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Deprecate built-in GraphQL support gh#encode/starlette#1135
|
||||
# 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
|
||||
%pytest
|
||||
sed -i "s| error$||" setup.cfg
|
||||
%pytest --asyncio-mode=strict
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:203400772695393de1b8e42347fc26f50e75db083069efc0abe55336097a1c7f
|
||||
size 403781
|
3
starlette-0.18.0.tar.gz
Normal file
3
starlette-0.18.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2437f2a1bd68ef7cfa238c230e4e34a862b12b8b65ce7a981cea914627f75627
|
||||
size 408097
|
Loading…
Reference in New Issue
Block a user