From eaae7fd940cb561b6c888b1dc2e1fc12f02be1ec Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 26 Sep 2024 17:41:55 -0500 Subject: [PATCH] Release 1.13.0 --- CHANGES.rst | 36 ++++++++++++++++++++++++++++++++++++ CHANGES/1157.bugfix.rst | 1 - CHANGES/1158.bugfix.rst | 1 - CHANGES/1159.feature.rst | 3 --- CHANGES/880.bugfix.rst | 3 --- CHANGES/954.bugfix.rst | 1 - yarl/__init__.py | 2 +- 7 files changed, 37 insertions(+), 10 deletions(-) delete mode 120000 CHANGES/1157.bugfix.rst delete mode 100644 CHANGES/1158.bugfix.rst delete mode 100644 CHANGES/1159.feature.rst delete mode 100644 CHANGES/880.bugfix.rst delete mode 120000 CHANGES/954.bugfix.rst diff --git a/CHANGES.rst b/CHANGES.rst index e8702382..28743196 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,42 @@ Changelog .. towncrier release notes start +1.13.0 +====== + +*(2024-09-26)* + + +Bug fixes +--------- + +- Started rejecting ASCII hostnames with invalid characters. For host strings that + look like authority strings, the exception message includes advice on what to do + instead -- by :user:`mjpieters`. + + *Related issues and pull requests on GitHub:* + :issue:`880`, :issue:`954`. + +- Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL` was converted to a string -- by :user:`bdraco`. + + *Related issues and pull requests on GitHub:* + :issue:`1157`, :issue:`1158`. + + +Features +-------- + +- Added :attr:`~yarl.URL.host_subcomponent` which returns the :rfc:`3986#section-3.2.2` host subcomponent -- by :user:`bdraco`. + + The only current practical difference between :attr:`~yarl.URL.raw_host` and :attr:`~yarl.URL.host_subcomponent` is that IPv6 addresses are returned bracketed. + + *Related issues and pull requests on GitHub:* + :issue:`1159`. + + +---- + + 1.12.1 ====== diff --git a/CHANGES/1157.bugfix.rst b/CHANGES/1157.bugfix.rst deleted file mode 120000 index 0082490c..00000000 --- a/CHANGES/1157.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -1158.bugfix.rst \ No newline at end of file diff --git a/CHANGES/1158.bugfix.rst b/CHANGES/1158.bugfix.rst deleted file mode 100644 index d6f8330e..00000000 --- a/CHANGES/1158.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL` was converted to a string -- by :user:`bdraco`. diff --git a/CHANGES/1159.feature.rst b/CHANGES/1159.feature.rst deleted file mode 100644 index 25d06f55..00000000 --- a/CHANGES/1159.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Added :attr:`~yarl.URL.host_subcomponent` which returns the :rfc:`3986#section-3.2.2` host subcomponent -- by :user:`bdraco`. - -The only current practical difference between :attr:`~yarl.URL.raw_host` and :attr:`~yarl.URL.host_subcomponent` is that IPv6 addresses are returned bracketed. diff --git a/CHANGES/880.bugfix.rst b/CHANGES/880.bugfix.rst deleted file mode 100644 index 39a64ea0..00000000 --- a/CHANGES/880.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Started rejecting ASCII hostnames with invalid characters. For host strings that -look like authority strings, the exception message includes advice on what to do -instead -- by :user:`mjpieters`. diff --git a/CHANGES/954.bugfix.rst b/CHANGES/954.bugfix.rst deleted file mode 120000 index e6d28843..00000000 --- a/CHANGES/954.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -880.bugfix.rst \ No newline at end of file diff --git a/yarl/__init__.py b/yarl/__init__.py index 0ecff77b..749689df 100644 --- a/yarl/__init__.py +++ b/yarl/__init__.py @@ -8,7 +8,7 @@ cache_info, ) -__version__ = "1.12.2.dev0" +__version__ = "1.13.0" __all__ = ( "URL",