Xqt submitted this change.

View Change


Approvals: Xqt: Verified; Looks good to me, approved
[doc] update ROADMAP.rst and CHANGELOG.rst

Also update some doc strings.

Change-Id: I70d0bb4646f9e5bc60d163889147e5565815be7b
---
M ROADMAP.rst
M pywikibot/data/api/_requests.py
M pywikibot/page/_wikibase.py
M pywikibot/proofreadpage.py
M scripts/CHANGELOG.rst
5 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/ROADMAP.rst b/ROADMAP.rst
index bd33c1f..d1dbe45 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -4,6 +4,8 @@
Improvements
^^^^^^^^^^^^

+* Remove content parameter of :meth:`proofreadpage.IndexPage.page_gen` method. (:phab:`T358635`)
+* Backport ``itertools.batched`` from Python 3.13 to :func:`backports.batched`
* A copy button was added to the sphinx documentation.
* Make :attr:`languages_by_size<family.WikimediaFamily.languages_by_size>` dynamic (:phab:`T78396`). The property is
only available for :class:`family.WikimediaFamily` families. The ``wikimedia_sites.py`` maintenance script was
@@ -21,6 +23,9 @@
Bugfixes
^^^^^^^^

+* Populate :class:`pywikibot.MediaInfo`._content with expected attributes when loaded (:phab:`T357608`)
+* Raise :exc:`exceptions.APIError` if the same error comes twice within :meth:`data.api.Request.submit` loop
+ (:phab:`T357870`)
* Only delegate :mod:`site` methods to public :class:`family.Family` methods which have *code* as first parameter.
* Use ``str`` instead of ``repr`` for several messages with :class:`family.Family` objects (:phab:`T356782`)
* Add ``hy`` to special languages in :class:`textlib.TimeStripper` (:phab:`T356175`)
@@ -78,6 +83,8 @@
Deprecations
------------

+* 9.0.0: The *content* parameter of :meth:`proofreadpage.IndexPage.page_gen` is deprecated and will be ignored
+ (:phab:`T358635`)
* 9.0.0: ``userinterfaces.transliteration.transliterator`` was renamed to :class:`Transliterator
<userinterfaces.transliteration.Transliterator>`
* 9.0.0: ``next`` parameter of :meth:`userinterfaces.transliteration.transliterator.transliterate` was renamed to
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py
index 8facad1..4dd995d 100644
--- a/pywikibot/data/api/_requests.py
+++ b/pywikibot/data/api/_requests.py
@@ -966,8 +966,8 @@
in addition to *readapidenied* also try to login when API
response is *notloggedin*.
.. versionchanged:: 9.0
- Raise :exc:`pywikibot.exceptions.APIError` if the same error
- comes twice in a row within the loop.
+ Raise :exc:`exceptions.APIError` if the same error comes
+ twice in a row within the loop.

:return: a dict containing data retrieved from api.php
"""
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index 143e323..c242b2c 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -455,6 +455,10 @@
of this entity and their modifying may indirectly cause
unwanted change to the live content

+ .. versionchanged:: 9.0
+ Added *pageid*, *ns*, *title*, *lastrevid*, *modified*, *id*
+ values to ``_content`` attribute when it is loaded.
+
:param force: override caching
:raise NoWikibaseEntityError: if this entity doesn't exist
:return: actual data which entity holds
diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py
index e5dc94d..b28b9fa 100644
--- a/pywikibot/proofreadpage.py
+++ b/pywikibot/proofreadpage.py
@@ -1318,7 +1318,8 @@

.. versionchanged:: 8.6
page names are sorted before loading pages.
-
+ .. versionchanged:: 9.0
+ The *content* parameter was removed

:param start: first page, defaults to 1
:param end: num_pages if end is None
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst
index 4fd41fb..975b13a 100644
--- a/scripts/CHANGELOG.rst
+++ b/scripts/CHANGELOG.rst
@@ -13,11 +13,14 @@
category_redirect
^^^^^^^^^^^^^^^^^

+* A ``-category`` option was added (:phab:`T353282`)
+* Several improvements (:phab:`T276345`, :phab:`T351951`, :phab:`T352970`)
* provide category_redirect categories for all WM sites (:phab:`T348914`)

interwiki
^^^^^^^^^

+* Use ``site.code`` instead of ``site.lang``
* Ignore :exc:`exceptions.InvalidTitleError` and :exc:`InvalidPageError` (:phab:`T357953`)

touch

To view, visit change 1008000. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I70d0bb4646f9e5bc60d163889147e5565815be7b
Gerrit-Change-Number: 1008000
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-CC: jenkins-bot
Gerrit-MessageType: merged