jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361121?usp=email )
Change subject: release: publish Pywikibot 11.10
......................................................................
release: publish Pywikibot 11.10
Change-Id: I743520bd4d33ca4144b5209aa3cb19ae12d9546b
---
M pywikibot/__metadata__.py
M pywikibot/page/_page.py
M pywikibot/site/_basesite.py
M pywikibot/xmlreader.py
4 files changed, 5 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index cb8eefc..5d9e199 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
from time import strftime
-__version__ = '11.10.0.dev0'
+__version__ = '11.10.0'
__url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
__copyright__ = f'2003-{strftime("%Y")}, Pywikibot team'
diff --git a/pywikibot/page/_page.py b/pywikibot/page/_page.py
index 11c4ac3..625c637 100644
--- a/pywikibot/page/_page.py
+++ b/pywikibot/page/_page.py
@@ -160,7 +160,7 @@
.. version-changed:: 9.3
*botflag* keyword parameter was renamed to *bot*.
- .. version-changed:: next
+ .. version-changed:: 11.10
Scribunto redirects use their Lua redirect syntax.
:param target_page: Target of the redirect, this argument is
diff --git a/pywikibot/site/_basesite.py b/pywikibot/site/_basesite.py
index 0259778..aca3163 100644
--- a/pywikibot/site/_basesite.py
+++ b/pywikibot/site/_basesite.py
@@ -435,7 +435,7 @@
Group 1 in the match object is the redirect target. Matching is
selected by *content_model*; unrecognized models use wikitext syntax.
- .. version-added:: next
+ .. version-added:: 11.10
:param text: Text to match.
:param content_model: Content model used to interpret *text*.
@@ -457,7 +457,7 @@
Formatting is selected by *content_model*; unrecognized models use
wikitext syntax.
- .. version-added:: next
+ .. version-added:: 11.10
:param target_page: Target page of the redirect.
:param content_model: Content model used to format the redirect.
diff --git a/pywikibot/xmlreader.py b/pywikibot/xmlreader.py
index fc1c8e9..d897bc3 100644
--- a/pywikibot/xmlreader.py
+++ b/pywikibot/xmlreader.py
@@ -42,7 +42,7 @@
"""Represent a page.
- .. version-changed:: next
+ .. version-changed:: 11.10
The *content_model* field was added.
"""
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361121?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: I743520bd4d33ca4144b5209aa3cb19ae12d9546b
Gerrit-Change-Number: 1361121
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361106?usp=email )
Change subject: doc: Update documentation, including ROADMAP.rst
......................................................................
doc: Update documentation, including ROADMAP.rst
Change-Id: Icb1f97a3d82a620c6f87ace72f8d16834bfb411a
---
M ROADMAP.rst
M pywikibot/page/_collections.py
M pywikibot/page/_wikibase.py
3 files changed, 31 insertions(+), 9 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
Mahveotm: Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst
index ee856a1..ef3ed78 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,6 +1,17 @@
Release 11.10
=============
+* Enable lexeme creation through :class:`LexemePage.editEntity()<pywikibot.LexemePage.editEntity>`.
+ See :ref:`Creating Lexemes` for further information. (:phab:`T442295`)
+* Initialize :class:`LexemePage<pywikibot.LexemePage>` collections for unsaved entities.
+ (:phab:`T442290`)
+* Various performance, stability, and code quality improvements.
+* Serialize nested form and sense edits in :class:`page.SubEntityCollection
+ <pywikibot.page._collections.SubEntityCollection>` and :class:`LexemePage<pywikibot.LexemePage>`
+ (:phab:`T189321`)
+* Add :attr:`ignore_save_related_errors<bot.BaseBot.ignore_save_related_errors>`
+ and :attr:`ignore_server_errors<bot.BaseBot.ignore_server_errors>` attributes
+ to :class:`bot.BaseBot` and use them in :meth:`userPut()<bot.BaseBot.userPut>`. (:phab:`T156908`)
* Add support for Scribunto redirects. (:phab:`T417129`)
* Serialize term removals and empty feature sets in :class:`page.LexemeSubEntity`
and :class:`LexemeForm<pywikibot.LexemeForm>`. (:phab:`T189321`)
@@ -28,7 +39,6 @@
with :attr:`BaseBot.update_options<bot.BaseBot.update_options>`. (:phab:`T439883`)
* Update translations (i18n).
* Reject nested wikilinks in file captions with :attr:`textlib.FILE_LINK_REGEX`. (:phab:`T396721`)
-* Various performance, stability, and code quality improvements.
* Speed up parsing of API ISO timestamps in :meth:`Timestamp._from_iso8601()
<pywikibot.time.Timestamp._from_iso8601>`.
diff --git a/pywikibot/page/_collections.py b/pywikibot/page/_collections.py
index 3e07c30..957f945 100644
--- a/pywikibot/page/_collections.py
+++ b/pywikibot/page/_collections.py
@@ -579,8 +579,11 @@
def normalizeData(cls, data: list[dict]) -> list[dict]:
"""Normalize explicit API operations without inferring removals.
- Each operation must identify an existing child by id, add a child
- with ``add``, or delete one with both ``id`` and ``remove``.
+ Each operation must identify an existing child by id, add a
+ child with ``add``, or delete one with both ``id`` and ``remove``.
+
+ .. version-changed:: 11.10
+ Method was implemented.
:param data: List of child operation dictionaries
:return: Normalized operations in their original order
@@ -606,9 +609,13 @@
"""Serialize current children or changes against a complete baseline.
Full serialization is API edit data, not replacement of server
- content. Unsaved children carry an ``add`` marker. Only a supplied
- baseline allows missing children to become explicit removals.
- An empty result makes no changes; it does not clear the collection.
+ content. Unsaved children carry an ``add`` marker. Only a
+ supplied baseline allows missing children to become explicit
+ removals. An empty result makes no changes; it does not clear
+ the collection.
+
+ .. version-changed:: 11.10
+ Method was implemented.
:param diffto: Complete original collection, or None for all fields
:return: Child edits followed by removals in baseline order
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index fa8f5d3..cc5672f 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -2370,9 +2370,14 @@
explicit API data or populate the Lexeme before saving. Explicit
data is not combined with local fields.
- Forms, senses and claims must be reacquired from this Lexeme after
- saving. Existing references are snapshots and are not updated with
- server-assigned identifiers. Data is reloaded on the next access.
+ Forms, senses and claims must be reacquired from this Lexeme
+ after saving. Existing references are snapshots and are not
+ updated with server-assigned identifiers. Data is reloaded on
+ the next access.
+
+ .. seealso:: :ref:`Creating Lexemes`: How to create lexemes with
+ either an explicit creation dictionary or fields populated on
+ the object
:param data: API changes, or None to save local changes
"""
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361106?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: Icb1f97a3d82a620c6f87ace72f8d16834bfb411a
Gerrit-Change-Number: 1361106
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Mahveotm <mahveotm(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361095?usp=email )
Change subject: Revert "tests: Pin PyPy 3.11 to pypy3.11-v7.x (3.11.15)"
......................................................................
Revert "tests: Pin PyPy 3.11 to pypy3.11-v7.x (3.11.15)"
This reverts commit d5f3830f82381787d3b27d43b5bd31005b38f5d9.
Reason: PyPy 3.11 works again with current Pillow release,
but fails with pypy3.11-v7.x.
Bug: T439862
Change-Id: Ie4341def89be1f16c1dd456d52d38a95ff1cc04d
---
M .github/workflows/pywikibot-ci.yml
M pywikibot/userinterfaces/gui.py
2 files changed, 2 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index 0a8ab12..7e7aeb7 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -32,8 +32,7 @@
python-version:
- pypy3.9
- pypy3.10
- # Keep PyPy 3.11 on the 7.x series until Pillow provides pp80 wheels.
- - pypy3.11-v7.x
+ - pypy3.11
- '3.9'
- '3.10'
- '3.11'
diff --git a/pywikibot/userinterfaces/gui.py b/pywikibot/userinterfaces/gui.py
index 6b71694..f12048f 100644
--- a/pywikibot/userinterfaces/gui.py
+++ b/pywikibot/userinterfaces/gui.py
@@ -10,9 +10,7 @@
.. note:: idlelib, tkinter and pillow modules are required.
.. caution::
- Pillow may not be installable with GraalPy. For PyPy 3.11, use
- pypy3.11-v7.x (Python 3.11.15); pypy3.11-v8.0 (Python 3.11.16) is
- currently not supported.
+ Pillow may not be installable with GraalPy.
.. danger::
Due to a security vulnerability, Pillow >= 12.2.0 is required.
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361095?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: Ie4341def89be1f16c1dd456d52d38a95ff1cc04d
Gerrit-Change-Number: 1361095
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361084?usp=email )
Change subject: tests: Skip logenttries_tests for Lobbypedia
......................................................................
tests: Skip logenttries_tests for Lobbypedia
'old' tests should be made with any wiki with oldest supported
MediaWiki release. Lobbypedia was updated from 1.31.6 to 1.43.9.
Skip these tests until another wiki was found for such tests.
Bug: T443109
Change-Id: Id97af53969faca9fc402f8434c10ae7146bc32b6
---
M tests/logentries_tests.py
1 file changed, 9 insertions(+), 15 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/tests/logentries_tests.py b/tests/logentries_tests.py
index a4fa895..bb49cfb 100755
--- a/tests/logentries_tests.py
+++ b/tests/logentries_tests.py
@@ -12,11 +12,7 @@
from contextlib import suppress
import pywikibot
-from pywikibot.exceptions import (
- ApiTimeoutError,
- HiddenKeyError,
- NoMoveTargetError,
-)
+from pywikibot.exceptions import HiddenKeyError, NoMoveTargetError
from pywikibot.family import AutoFamily
from pywikibot.logentries import (
LogEntryFactory,
@@ -59,18 +55,15 @@
'https://lobbypedia.de/wiki/Hauptseite'),
'code': 'de',
'target': None,
+ 'version': '1.31.6',
}
}
- @classmethod
- def setUpClass(cls) -> None:
- """Skip tests when the Lobbypedia API times out during setup."""
- try:
- super().setUpClass()
- except ApiTimeoutError as e:
- if e.site and e.site.family.name == 'lobbypedia':
- raise unittest.SkipTest(f'API timeout on Lobbypedia: {e}')
- raise
+ def setUp(self) -> None:
+ """Skip Lobbypedia tests which was updated to MW 1.43.9."""
+ if self._testMethodName.endswith('_old'):
+ self.skipTest('Lobbypedia was updated to MW 1.43.9 (T443109).')
+ super().setUp()
def _get_logentry(self, logtype):
"""Retrieve a single log entry."""
@@ -78,7 +71,8 @@
# This is an assertion as the tests don't make sense with newer
# MW versions and otherwise it might not be visible that the test
# isn't run on an older wiki.
- self.assertEqual(self.site.mw_version, '1.31.6')
+ self.assertEqual(self.site.mw_version,
+ self.sites[self.site_key]['version'])
with skipping(StopIteration,
msg=f'No entry found for {logtype!r}'):
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361084?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: Id97af53969faca9fc402f8434c10ae7146bc32b6
Gerrit-Change-Number: 1361084
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot