jenkins-bot submitted this change.

View Change


Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[doc] Update ROADMAP.rst and other documentation

Change-Id: Ie985aae2fcdecd2d8b713aaf2213f211e5ca7a34
---
M pywikibot/exceptions.py
M ROADMAP.rst
M scripts/CHANGELOG.rst
M pywikibot/page/_wikibase.py
4 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/ROADMAP.rst b/ROADMAP.rst
index a072b85..28f8138 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,9 +1,12 @@
Current release
---------------

+* 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
@@ -12,6 +15,7 @@
Deprecations
------------

+* 8.1.0: Dependency of :exc:`exceptions.NoSiteLinkError` from :exc:`exceptions.NoPageError` will be removed
* 8.1.0: ``exceptions.Server414Error`` is deprecated in favour of :exc:`exceptions.Client414Error`
* 8.0.0: :meth:`Timestamp.clone()<pywikibot.time.Timestamp.clone>` method is deprecated
in favour of ``Timestamp.replace()`` method.
diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index 9cd518a..cfe4601 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -400,7 +400,12 @@

class NoSiteLinkError(PageLoadRelatedError, NoPageError):

- """ItemPage has no sitelink to the given language."""
+ """ItemPage has no sitelink to the given language.
+
+ .. versionadded:: 8.1
+ .. deprecated:: 8.1
+ :exc:`NoPageError` dependency.
+ """

def __init__(self, page: 'pywikibot.page.ItemPage', lang: str) -> None:
"""Initializer.
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index d904039..0e278c8 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -1076,11 +1076,13 @@
yield pg

def getSitelink(self, site, force: bool = False) -> str:
- """
- Return the title for the specific site.
+ """Return the title for the specific site.

If the item doesn't have that language, raise NoSiteLinkError.

+ .. versionchanged:: 8.1
+ raises NoSiteLinkError instead of NoPageError.
+
:param site: Site to find the linked page of.
:type site: pywikibot.Site or database name
:param force: override caching
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst
index 01c5615..30f2c59 100644
--- a/scripts/CHANGELOG.rst
+++ b/scripts/CHANGELOG.rst
@@ -1,6 +1,15 @@
Scripts Changelog
=================

+8.1.0
+-----
+
+archivebot
+~~~~~~~~~~
+
+* Processing speed was improved and is up to 20 times faster, 2-3 times on average
+
+
8.0.2
-----


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie985aae2fcdecd2d8b713aaf2213f211e5ca7a34
Gerrit-Change-Number: 905253
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged