From 87214b1ff90fc1f145eb172d092ab3993fc48e27 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sun, 27 Sep 2020 12:18:14 -0700 Subject: [PATCH] treq 20.9.0rc1 --- CHANGELOG.rst | 15 +++++++++++++++ changelog.d/212.feature.rst | 1 - changelog.d/278.doc.rst | 1 - src/treq/_version.py | 2 +- src/treq/api.py | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) delete mode 100644 changelog.d/212.feature.rst delete mode 100644 changelog.d/278.doc.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 78b03cd4..f3f841bc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,21 @@ Changelog .. towncrier release notes start +20.9.0rc1 (2020-09-27) +====================== + +Features +-------- + +- The *url* parameter of :meth:`HTTPClient.request()` (and shortcuts like :meth:`~HTTPClient.get()`) now accept :class:`hyperlink.DecodedURL` and :class:`hyperlink.URL` in addition to :class:`str` and :class:`bytes`. (`#212 `__) + + +Improved Documentation +---------------------- + +- An example of sending and receiving JSON has been added. (`#278 `__) + + 20.4.1 (2020-04-16) =================== diff --git a/changelog.d/212.feature.rst b/changelog.d/212.feature.rst deleted file mode 100644 index d94b5622..00000000 --- a/changelog.d/212.feature.rst +++ /dev/null @@ -1 +0,0 @@ -The *url* parameter of :meth:`HTTPClient.request()` (and shortcuts like :meth:`~HTTPClient.get()`) now accept :class:`hyperlink.DecodedURL` and :class:`hyperlink.URL` in addition to :class:`str` and :class:`bytes`. diff --git a/changelog.d/278.doc.rst b/changelog.d/278.doc.rst deleted file mode 100644 index d9aa0d67..00000000 --- a/changelog.d/278.doc.rst +++ /dev/null @@ -1 +0,0 @@ -An example of sending and receiving JSON has been added. diff --git a/src/treq/_version.py b/src/treq/_version.py index 41ceabca..8641a219 100644 --- a/src/treq/_version.py +++ b/src/treq/_version.py @@ -7,5 +7,5 @@ from incremental import Version -__version__ = Version('treq', 20, 4, 1) +__version__ = Version('treq', 20, 9, 0, release_candidate=1) __all__ = ["__version__"] diff --git a/src/treq/api.py b/src/treq/api.py index f88e06d5..704fb983 100644 --- a/src/treq/api.py +++ b/src/treq/api.py @@ -118,7 +118,7 @@ def request(method, url, **kwargs): :rtype: Deferred that fires with an IResponse provider. - .. versionchanged:: treq NEXT + .. versionchanged:: treq 20.9.0rc1 The *url* param now accepts :class:`hyperlink.DecodedURL` and :class:`hyperlink.EncodedURL` objects.