Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/894167 )
Change subject: [doc] Update documentation ......................................................................
[doc] Update documentation
Change-Id: I2336b205395c0c6867f70b1f68d5ff8de28434ff --- M pywikibot/__init__.py M ROADMAP.rst M scripts/CHANGELOG.rst M pywikibot/page/_wikibase.py M pywikibot/comms/http.py M HISTORY.rst 6 files changed, 34 insertions(+), 8 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/HISTORY.rst b/HISTORY.rst index 829a961..fd9d1b2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,17 @@ Release history ===============
+8.0.1 +----- +*04 March 2023* + +* Add support for azwikimedia, gucwiki, gurwiki (:phab:`T317121`, :phab:`T326238`, :phab:`T327844`) +* Avoid error when replacement includes backslash (:phab:`T330021`) +* Copy snak IDs/hashes when using :meth:`page.WikibaseEntity.editEntity` (:phab:`T327607`) +* Add ``timezone_aware`` to :meth:`pywikibot.WbTime.toTimestamp` (:phab:`T325868`) +* L10N and i18n updates + + 8.0.0 ----- *21 January 2023* diff --git a/ROADMAP.rst b/ROADMAP.rst index dca8d35..afc57ca 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -1,11 +1,7 @@ Current release ---------------
-* Add support for azwikimedia, gucwiki, gurwiki (:phab:`T317121`, :phab:`T326238`, :phab:`T327844`) -* Avoid error when replacement includes backslash (:phab:`T330021`) -* Copy snak IDs/hashes when using :meth:`page.WikibaseEntity.editEntity` (:phab:`T327607`) -* Add ``timezone_aware`` to :meth:`pywikibot.WbTime.toTimestamp` (:phab:`T325868`) -* L10N and i18n updates +* Improve flush exception logging
Deprecations diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index afc4441..2b376c3 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -709,6 +709,9 @@ """ Convert the data to a pywikibot.Timestamp.
+ .. versionchanged:: 8.0.1 + *timezone_aware* parameter was added. + :param timezone_aware: Whether the timezone should be passed to the Timestamp object. :raises ValueError: instance value cannot be represented using diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py index 2f345ce..77128be 100644 --- a/pywikibot/comms/http.py +++ b/pywikibot/comms/http.py @@ -109,9 +109,13 @@ session.cookies = cookie_jar
-# Prepare flush on quit def flush() -> None: # pragma: no cover - """Close the session object. This is called when the module terminates.""" + """Close the session object. This is called when the module terminates. + + .. versionchanged:: 8.1 + log the traceback and show the exception value in the critical + message + """ log('Closing network session.') session.close()
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py index f9911cb..0eb10f9 100644 --- a/pywikibot/page/_wikibase.py +++ b/pywikibot/page/_wikibase.py @@ -297,6 +297,9 @@
.. seealso:: :meth:`WikibasePage.editEntity`
+ .. versionchanged:: 8.0.1 + Copy snak IDs/hashes (:phab:`T327607`) + :param data: Data to be saved """ update_self = False diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst index 8f86a68..20e73bf 100644 --- a/scripts/CHANGELOG.rst +++ b/scripts/CHANGELOG.rst @@ -1,7 +1,7 @@ Scripts Changelog =================
-8.1.0 +8.0.1 -----
clean_sandbox
pywikibot-commits@lists.wikimedia.org