From 58475a1b03701f67e8630c5ab2ef1159b09d46e0 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Mon, 8 Aug 2022 22:25:11 +0500 Subject: [PATCH 1/4] changelog for 2.0.0 --- NEWS | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/NEWS b/NEWS index 5e7677b2..bd35a638 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,46 @@ w3lib release notes =================== +2.0.0 (to be released) +---------------------- + +Backwards incompatible changes: + +- Python 2 is no longer supported; Python 3.6+ is required now (#168, #175). +- :func:`w3lib.url.safe_url_string` and :func:`w3lib.url.canonicalize_url` + no longer convert "%23" to "#" when it appears in URl path. This is a bug + fix. It's listed as a backwards incomatible change because in some + cases :func:`w3lib.url.canonicalize_url` output is going to change, + and so, if this output is used to generate URL fingerprints, fingerprints + might be incompatible with those created with the previous w3lib versions + (#141). + +Deprecation removals (#169): + +- ``w3lib.form`` module is removed. +- ``w3lib.html.remove_entities`` function is removed. +- ``w3lib.url.urljoin_rfc`` function is removed. + +The following functions are deprecated, and will be removed in future releases +(#170): + +- `w3lib.util.str_to_unicode`` +- ``w3lib.util.unicode_to_str`` +- ``w3lib.util.to_native_str`` + +Other improvements and bug fixes: + +- Type annotations are added (#172, #184). +- Added support for Python 3.9 and 3.10 (#168, #176). +- Fixed :func:`w3lib.html.get_meta_refresh` for ```` tags where + ``http-equiv`` is written after ``content`` (#179). +- Fixed :func:`w3lib.url.safe_url_string` for IDNA domains with ports (#174). +- :func:`w3lib.url.url_query_cleaner` no longer adds an unneeded ``#`` when + ``keep_fragments=True`` is passed, and URL doesn't have a fragment (#159). +- Removed a workaround for ancient pathname2url bug (#142) +- CI is migrated to Github Actions (#166, #177); other CI improvements (#160, #182). +- Code is formatted using black (#173) + 1.22.0 (2020-05-13) ------------------- From 3c444bbdc28d3a17aaf2e0755ad78c6d251a6b53 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Mon, 8 Aug 2022 22:25:23 +0500 Subject: [PATCH 2/4] add NEWS to MANIFEST.in --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index 0fd999a8..37facf1b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,6 +6,7 @@ recursive-include docs Makefile make.bat conf.py *.rst # Miscellaneous assets include LICENSE +include NEWS include README.rst include pytest.ini include tox.ini From ae85f33138cc50cdfbe7b5635b3e4f9195161e9f Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Mon, 8 Aug 2022 22:30:45 +0500 Subject: [PATCH 3/4] add missing ` --- NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bd35a638..1728afb2 100644 --- a/NEWS +++ b/NEWS @@ -24,7 +24,7 @@ Deprecation removals (#169): The following functions are deprecated, and will be removed in future releases (#170): -- `w3lib.util.str_to_unicode`` +- ``w3lib.util.str_to_unicode`` - ``w3lib.util.unicode_to_str`` - ``w3lib.util.to_native_str`` From e5001ebd97c76283d5eced5ac9e2723e7fb9c475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Tue, 9 Aug 2022 13:46:03 +0200 Subject: [PATCH 4/4] Minor language and format suggestions --- NEWS | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/NEWS b/NEWS index 1728afb2..4044afae 100644 --- a/NEWS +++ b/NEWS @@ -8,18 +8,18 @@ Backwards incompatible changes: - Python 2 is no longer supported; Python 3.6+ is required now (#168, #175). - :func:`w3lib.url.safe_url_string` and :func:`w3lib.url.canonicalize_url` - no longer convert "%23" to "#" when it appears in URl path. This is a bug - fix. It's listed as a backwards incomatible change because in some - cases :func:`w3lib.url.canonicalize_url` output is going to change, - and so, if this output is used to generate URL fingerprints, fingerprints - might be incompatible with those created with the previous w3lib versions + no longer convert "%23" to "#" when it appears in the URL path. This is a bug + fix. It's listed as a backward-incomatible change because in some cases the + output of :func:`w3lib.url.canonicalize_url` is going to change, and so, if + this output is used to generate URL fingerprints, new fingerprints might be + incompatible with those created with the previous w3lib versions (#141). Deprecation removals (#169): -- ``w3lib.form`` module is removed. -- ``w3lib.html.remove_entities`` function is removed. -- ``w3lib.url.urljoin_rfc`` function is removed. +- The ``w3lib.form`` module is removed. +- The ``w3lib.html.remove_entities`` function is removed. +- The ``w3lib.url.urljoin_rfc`` function is removed. The following functions are deprecated, and will be removed in future releases (#170): @@ -36,10 +36,12 @@ Other improvements and bug fixes: ``http-equiv`` is written after ``content`` (#179). - Fixed :func:`w3lib.url.safe_url_string` for IDNA domains with ports (#174). - :func:`w3lib.url.url_query_cleaner` no longer adds an unneeded ``#`` when - ``keep_fragments=True`` is passed, and URL doesn't have a fragment (#159). -- Removed a workaround for ancient pathname2url bug (#142) -- CI is migrated to Github Actions (#166, #177); other CI improvements (#160, #182). -- Code is formatted using black (#173) + ``keep_fragments=True`` is passed, and the URL doesn't have a fragment + (#159). +- Removed a workaround for an ancient pathname2url bug (#142) +- CI is migrated to GitHub Actions (#166, #177); other CI improvements (#160, + #182). +- The code is formatted using black (#173). 1.22.0 (2020-05-13) -------------------