diff --git a/python-starlette.changes b/python-starlette.changes index 6bb3bf9..3f0427f 100644 --- a/python-starlette.changes +++ b/python-starlette.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Feb 23 01:08:10 UTC 2022 - Steve Kowalik + +- 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 diff --git a/python-starlette.spec b/python-starlette.spec index 79988b6..84dcd8c 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -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 diff --git a/starlette-0.17.1.tar.gz b/starlette-0.17.1.tar.gz deleted file mode 100644 index a39e992..0000000 --- a/starlette-0.17.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:203400772695393de1b8e42347fc26f50e75db083069efc0abe55336097a1c7f -size 403781 diff --git a/starlette-0.18.0.tar.gz b/starlette-0.18.0.tar.gz new file mode 100644 index 0000000..beb4144 --- /dev/null +++ b/starlette-0.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2437f2a1bd68ef7cfa238c230e4e34a862b12b8b65ce7a981cea914627f75627 +size 408097