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
-----
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1084709?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I932ef97a87073c5633f9f876af60a6a2cc595039
Gerrit-Change-Number: 1084709
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <dalangi-ctr(a)wikimedia.org>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1084163?usp=email )
Change subject: update unidata.py from unicode 16.0.0 distributed with Python 3.14
......................................................................
update unidata.py from unicode 16.0.0 distributed with Python 3.14
Change-Id: If9a2f4ff81a8c8c46605c28a96fe3096c97630f6
---
M pywikibot/tools/_unidata.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/tools/_unidata.py b/pywikibot/tools/_unidata.py
index fe30e5f..f698ea2 100644
--- a/pywikibot/tools/_unidata.py
+++ b/pywikibot/tools/_unidata.py
@@ -273,7 +273,7 @@
# codepoint it takes longer especially when working with UCS2. The lists also
# differ between Python versions which can be avoided by this static list.
#
-# This frozenset was created using Python 3.13 (Unicode version 15.1.0):
+# This frozenset was created using Python 3.14 (Unicode version 16.0.0):
# list(c for c in (chr(i) for i in range(sys.maxunicode))
# if unicodedata.category(c) == 'Cf')
_category_cf = frozenset([
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1084163?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If9a2f4ff81a8c8c46605c28a96fe3096c97630f6
Gerrit-Change-Number: 1084163
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>