jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/908987 )
Change subject: [8.2] Prepare next release 8.2 ......................................................................
[8.2] Prepare next release 8.2
Change-Id: I30f62e54da08a44f4b8b2a2f30cda675d6b08b78 --- M .appveyor.yml M ROADMAP.rst M scripts/CHANGELOG.rst M tests/utils.py M pywikibot/__metadata__.py M HISTORY.rst M pywikibot/site/_apisite.py M pywikibot/data/api/_requests.py M tests/pagegenerators_tests.py 9 files changed, 43 insertions(+), 28 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/.appveyor.yml b/.appveyor.yml index ca689a2..8130c22 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,7 @@ image: Visual Studio 2022 clone_depth: 50 skip_tags: true -version: 8.1.{build} +version: 8.2.{build} environment:
PYWIKIBOT_DIR: "%appdata%\Pywikibot" diff --git a/HISTORY.rst b/HISTORY.rst index 560affb..d68ff25 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,29 @@ Release history ===============
+8.1.0 +----- +*16 April 2023* + +* :mod:`generate_family_file<pywikibot.scripts.generate_family_file>` script was improved (:phab:`T334775`) +* A ``quiet`` parameter was added to :meth:`APISite.preloadpages() + <pywikibot.site._generators.GeneratorsMixin.preloadpages>` which is True by default +* Fix getting HTTPStatus enum in site_detect check_response (:phab:`T334728`) +* Do not show a logging in message if password is entered (:phab:`T178061`) +* Enable preleading ``Bot:`` prefix with twtranslate messages (:phab:`T161459`) +* Disable command.log if -nolog option is given (:phab:`T334381`) +* Guess the last needed token key if the token is not found (:phab:`T334288`) +* Show parameters with APIError (:phab:`T333957`) +* Raise :exc:`exceptions.NoSiteLinkError` instead of :exc:`exceptions.NoPageError` when sitelink + is missing in :meth:`ItemPage.getSitelink()<pywikibot.ItemPage.getSitelink>` (:phab:`T332341`) +* :exc:`exceptions.ClientError` was added +* Raise :exc:`exceptions.NoPageError` when deleting a missing Page (:phab:`T332924`) +* ``text`` parameter of :class:`proofreadpage.PagesTagParser` has a default value +* L10N updates +* Ignore talk pages with :meth:`APISite.watched_pages()<pywikibot.site._generators.GeneratorsMixin.watched_pages>` (:phab:`T330806`) +* Load page info when creating a page if not updated previously (:phab:`T330980`) +* Improve flush exception logging +
8.0.4 ----- diff --git a/ROADMAP.rst b/ROADMAP.rst index c2b94e8..1adb1ab 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -1,24 +1,7 @@ Current release ---------------
-* :mod:`generate_family_file<pywikibot.scripts.generate_family_file>` script was improved (:phab:`T334775`) -* A ``quiet`` parameter was added to :meth:`APISite.preloadpages() - <pywikibot.site._generators.GeneratorsMixin.preloadpages>` which is True by default -* Fix getting HTTPStatus enum in site_detect check_response (:phab:`T334728`) -* Do not show a logging in message if password is entered (:phab:`T178061`) -* Enable preleading ``Bot:`` prefix with twtranslate messages (:phab:`T161459`) -* Disable command.log if -nolog option is given (:phab:`T334381`) -* Guess the last needed token key if the token is not found (:phab:`T334288`) -* Show parameters with APIError (:phab:`T333957`) -* Raise :exc:`exceptions.NoSiteLinkError` instead of :exc:`exceptions.NoPageError` when sitelink - is missing in :meth:`ItemPage.getSitelink()<pywikibot.ItemPage.getSitelink>` (:phab:`T332341`) -* :exc:`exceptions.ClientError` was added -* Raise :exc:`exceptions.NoPageError` when deleting a missing Page (:phab:`T332924`) -* ``text`` parameter of :class:`proofreadpage.PagesTagParser` has a default value -* L10N updates -* Ignore talk pages with :meth:`APISite.watched_pages()<pywikibot.site._generators.GeneratorsMixin.watched_pages>` (:phab:`T330806`) -* Load page info when creating a page if not updated previously (:phab:`T330980`) -* Improve flush exception logging +* *(no changes yet)*
Deprecations diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py index 8e50130..a816904 100644 --- a/pywikibot/__metadata__.py +++ b/pywikibot/__metadata__.py @@ -11,7 +11,7 @@
__name__ = 'pywikibot' -__version__ = '8.1.0' +__version__ = '8.2.0.dev0' __description__ = 'Python MediaWiki Bot Framework' __maintainer__ = 'The Pywikibot team' __maintainer_email__ = 'pywikibot@lists.wikimedia.org' diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py index 0377577..892c5a2 100644 --- a/pywikibot/data/api/_requests.py +++ b/pywikibot/data/api/_requests.py @@ -940,7 +940,7 @@ def submit(self) -> dict: """Submit a query and parse the response.
- .. versionchanged:: 8.1 + .. versionchanged:: 8.0.4 in addition to *readapidenied* also try to login when API response is *notloggedin*.
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py index 673d619..a9decae 100644 --- a/pywikibot/site/_apisite.py +++ b/pywikibot/site/_apisite.py @@ -332,9 +332,9 @@ ) -> None: """Log the user in if not already logged in.
- .. versionchanged:: 8.0 - lazy load cookies when logging in. This was dropped in 8.1 - .. versionchanged:: 8.1 + .. versionchanged:: 8.0.0 + lazy load cookies when logging in. This was dropped in 8.0.4 + .. versionchanged:: 8.0.4 the *cookie_only* parameter was added and cookies are loaded whenever the site is initialized.
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst index c737b9e..4478ca1 100644 --- a/scripts/CHANGELOG.rst +++ b/scripts/CHANGELOG.rst @@ -22,7 +22,7 @@ clean_sandbox ~~~~~~~~~~~~~
-* L10N es-wikis +* L10N for es-wikis
8.0.1 ----- diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 73cb357..24470be 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Test pagegenerators module.""" # -# (C) Pywikibot team, 2009-2022 +# (C) Pywikibot team, 2009-2023 # # Distributed under the terms of the MIT license. import calendar diff --git a/tests/utils.py b/tests/utils.py index 38c4105..5a49e16 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,6 @@ """Test utilities.""" # -# (C) Pywikibot team, 2013-2022 +# (C) Pywikibot team, 2013-2023 # # Distributed under the terms of the MIT license. # @@ -403,7 +403,7 @@ def login(self, *args, cookie_only=False, **kwargs): """Overwrite login which is called when a site is initialized.
- .. versionadded: 8.1 + .. versionadded: 8.0.4 """ if cookie_only: return