jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1084709?usp=email )
Change subject: [9.5] Publish Pywikibot 9.5 ......................................................................
[9.5] Publish Pywikibot 9.5
Change-Id: I932ef97a87073c5633f9f876af60a6a2cc595039 --- M ROADMAP.rst M pywikibot/__metadata__.py M pywikibot/data/api/_generators.py M pywikibot/date.py M pywikibot/site/_datasite.py M scripts/CHANGELOG.rst 6 files changed, 37 insertions(+), 5 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst index 5dae97f..cd3def1 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -1,11 +1,21 @@ Current Release Changes =======================
+* Add support for tcywikisource and tcywiktionary (:phab:`T378473`, :phab:`T378465`) +* i18n-updates +* Update invisible chars in :mod:`tools.chars` from unicode 16.0.0 +* Rename :meth:`DataSite.getPropertyType()<pywikibot.site._datasite.DataSite.getPropertyType>` + to :meth:`DataSite.get_property_type()<pywikibot.site._datasite.DataSite.get_property_type>` +* provide XXXI with :func:`date.romanNumToInt` and :func:`date.intToRomanNum` functions * No longer raise :exc:`exceptions.UnsupportedPageError` within :meth:`data.api.PageGenerator.result` (:phab:`T377651`) +* Extract messages with strong tag from xtools as error message in + :meth:`Page.authorship()<page._toolforge.WikiBlameMixin.authorship>` (:phab:`T376815`)
Current Deprecations ====================
+* 9.5.0: :meth:`DataSite.getPropertyType()<pywikibot.site._datasite.DataSite.getPropertyType>` will be removed + in favour of :meth:`DataSite.get_property_type()<pywikibot.site._datasite.DataSite.get_property_type>` * 9.4.0: :mod:`flow` support is deprecated and will be removed (:phab:`T371180`) * 9.3.0: :meth:`page.BasePage.userName` and :meth:`page.BasePage.isIpEdit` are deprecated in favour of ``user`` or ``anon`` attributes of :attr:`page.BasePage.latest_revision` property diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py index c736c3d..d067c1c 100644 --- a/pywikibot/__metadata__.py +++ b/pywikibot/__metadata__.py @@ -12,6 +12,6 @@ from time import strftime
-__version__ = '9.5.0.dev2' +__version__ = '9.5.0' __url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot' __copyright__ = f'2003-{strftime("%Y")}, Pywikibot team' diff --git a/pywikibot/data/api/_generators.py b/pywikibot/data/api/_generators.py index 6f1206d..c4fef30 100644 --- a/pywikibot/data/api/_generators.py +++ b/pywikibot/data/api/_generators.py @@ -727,7 +727,7 @@ This can be overridden in subclasses to return a different type of object.
- .. versionchanged:: 9.4 + .. versionchanged:: 9.5 no longer raise :exc:`exceptions.UnsupportedPageError` but return a generic :class:`pywikibot.Page` obect. The exception is raised when getting the content for example. diff --git a/pywikibot/date.py b/pywikibot/date.py index a77176e..62f6490 100644 --- a/pywikibot/date.py +++ b/pywikibot/date.py @@ -344,14 +344,24 @@
def intToRomanNum(i: int) -> str: - """Convert integer to roman numeral.""" - if i >= len(_romanNumbers): + """Convert integer to roman numeral. + + .. versionchanged:: 9.5 + negative *i* is no longer accepted but 31 is a valid value. + + :raises IndexError: Roman value *i* is nont in range 0..31 + """ + if not 0 <= i < len(_romanNumbers): raise IndexError(f'Roman value {i} is not defined') return _romanNumbers[i]
def romanNumToInt(v: str) -> int: - """Convert roman numeral to integer.""" + """Convert roman numeral to integer. + + .. versionchanged:: 9.5 + ``XXXI`` can be converted. + """ return _romanNumbers.index(v)
diff --git a/pywikibot/site/_datasite.py b/pywikibot/site/_datasite.py index b8c1066..b69562d 100644 --- a/pywikibot/site/_datasite.py +++ b/pywikibot/site/_datasite.py @@ -258,6 +258,8 @@ This is used specifically because we can cache the value for a much longer time (near infinite).
+ .. versionadded:: 9.5 + :raises NoWikibaseEntityError: *prop* does not exist """ params = {'action': 'wbgetentities', 'ids': prop.getID(), diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst index 89c8c5a..cf28d26 100644 --- a/scripts/CHANGELOG.rst +++ b/scripts/CHANGELOG.rst @@ -1,6 +1,16 @@ Scripts Changelog =================
+9.5.0 +----- + +* i18n updates + +interwiki +^^^^^^^^^ + +* Remove ``-repository`` option which was never implemented in core + 9.4.1 -----
pywikibot-commits@lists.wikimedia.org