From c3276ed32dcf2f44ce2572e1fa0439718fc47c40593ed8215fa28c9edeb92f70 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 7 Jan 2019 09:57:14 +0000 Subject: [PATCH] - update to 1.8.5: - Fixed one last remaining invalid escape sequence in a docstring. - Response.content_type now accepts unicode strings on Python 2 and encodes them to latin-1. - Accept header classes now support a .copy() function that may be used to create a copy. This allows ``create_accept_header`` and other like functions to accept an pre-existing Accept header. - Some backslashes introduced with the new accept handling code were causing DeprecationWarnings upon compiling the source to pyc files, all of the backslashes have been reigned in as appropriate, and users should no longer see DeprecationWarnings for invalid escape sequence. - ``acceptparse.AcceptValidHeader``, ``acceptparse.AcceptInvalidHeader``, and ``acceptparse.AcceptNoHeader`` will now always ignore offers that do not match the required media type grammar when calling ``.acceptable_offers()``. Previous versions raised a ``ValueError`` for invalid offers in ``AcceptValidHeader`` and returned them as acceptable in the others. - Add Request.remote_host, exposing REMOTE_HOST environment variable. - Added ``acceptparse.Accept.parse_offer`` to codify what types of offers are compatible with ``acceptparse.AcceptValidHeader.acceptable_offers``, ``acceptparse.AcceptMissingHeader.acceptable_offers``, and ``acceptparse.AcceptInvalidHeader.acceptable_offers``. This API also normalizes the offer with lowercased type/subtype and parameter names. - SameSite may now be passed as str or bytes to `Response.set_cookie` and `cookies.make_cookie`. This was an oversight as all other arguments would be correctly coerced before being serialized. - acceptparse.MIMEAccept which is deprecated in WebOb 1.8.0 made a backwards incompatible change that led to it raising on an invalid Accept header. This behaviour has now been reversed, as well as some other fixes to allow MIMEAccept to behave more like the old version. - ``request.POST`` now supports any requests with the appropriate OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=53 --- WebOb-1.8.2.tar.gz | 3 --- WebOb-1.8.5.tar.gz | 3 +++ python-WebOb.changes | 33 +++++++++++++++++++++++++++++++++ python-WebOb.spec | 6 +++--- 4 files changed, 39 insertions(+), 6 deletions(-) delete mode 100644 WebOb-1.8.2.tar.gz create mode 100644 WebOb-1.8.5.tar.gz diff --git a/WebOb-1.8.2.tar.gz b/WebOb-1.8.2.tar.gz deleted file mode 100644 index 1c10cb1..0000000 --- a/WebOb-1.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1fe722f2ab857685fc96edec567dc40b1875b21219b3b348e58cd8c4d5ea7df3 -size 271737 diff --git a/WebOb-1.8.5.tar.gz b/WebOb-1.8.5.tar.gz new file mode 100644 index 0000000..4a0b7b1 --- /dev/null +++ b/WebOb-1.8.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05aaab7975e0ee8af2026325d656e5ce14a71f1883c52276181821d6d5bf7086 +size 271955 diff --git a/python-WebOb.changes b/python-WebOb.changes index eda00a4..0142412 100644 --- a/python-WebOb.changes +++ b/python-WebOb.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Mon Jan 7 09:55:07 UTC 2019 - Thomas Bechtold + +update to 1.8.5: + - Fixed one last remaining invalid escape sequence in a docstring. + - Response.content_type now accepts unicode strings on Python 2 and encodes + them to latin-1. See https://github.com/Pylons/webob/pull/389 and + https://github.com/Pylons/webob/issues/388 + - Accept header classes now support a .copy() function that may be used to + create a copy. This allows ``create_accept_header`` and other like functions + to accept an pre-existing Accept header. See + https://github.com/Pylons/webob/pull/386 and + https://github.com/Pylons/webob/issues/385 + - Some backslashes introduced with the new accept handling code were causing + DeprecationWarnings upon compiling the source to pyc files, all of the + backslashes have been reigned in as appropriate, and users should no longer + see DeprecationWarnings for invalid escape sequence. See + https://github.com/Pylons/webob/issues/384 + - ``acceptparse.AcceptValidHeader``, ``acceptparse.AcceptInvalidHeader``, and + ``acceptparse.AcceptNoHeader`` will now always ignore offers that do not + match the required media type grammar when calling ``.acceptable_offers()``. + Previous versions raised a ``ValueError`` for invalid offers in + ``AcceptValidHeader`` and returned them as acceptable in the others. + See https://github.com/Pylons/webob/pull/372 + - Add Request.remote_host, exposing REMOTE_HOST environment variable. + - Added ``acceptparse.Accept.parse_offer`` to codify what types of offers + are compatible with ``acceptparse.AcceptValidHeader.acceptable_offers``, + ``acceptparse.AcceptMissingHeader.acceptable_offers``, and + ``acceptparse.AcceptInvalidHeader.acceptable_offers``. This API also + normalizes the offer with lowercased type/subtype and parameter names. + See https://github.com/Pylons/webob/pull/376 and + https://github.com/Pylons/webob/pull/379 + ------------------------------------------------------------------- Mon Aug 20 15:00:08 UTC 2018 - dmueller@suse.com diff --git a/python-WebOb.spec b/python-WebOb.spec index a90b01c..42add8b 100644 --- a/python-WebOb.spec +++ b/python-WebOb.spec @@ -1,7 +1,7 @@ # # spec file for package python-WebOb # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,14 +12,14 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-WebOb -Version: 1.8.2 +Version: 1.8.5 Release: 0 Summary: WSGI request and response object License: MIT