jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1048876?usp=email )
Change subject: [IMPR] use BasePage.templates() with Page.templatesWithParams
......................................................................
[IMPR] use BasePage.templates() with Page.templatesWithParams
Page.templatesWithParams retrieves all templates. Therefore use
BasePage.templates() instead of BasePage.itertemplates() to cache
the templates. The caching was lost with 350760f in 9.2.0.
Change-Id: I44006564eaaf260b72d6caaebb1c09d7a55c90c9
---
M pywikibot/page/_page.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page/_page.py b/pywikibot/page/_page.py
index 8dcda60..b89bc2c 100644
--- a/pywikibot/page/_page.py
+++ b/pywikibot/page/_page.py
@@ -78,7 +78,7 @@
# WARNING: may not return all templates used in particularly
# intricate cases such as template substitution
titles = {t.title()
- for t in self.itertemplates(namespaces=Namespace.TEMPLATE)}
+ for t in self.templates(namespaces=Namespace.TEMPLATE)}
templates = self.raw_extracted_templates
# backwards-compatibility: convert the dict returned as the second
# element into a list in the format used by old scripts
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1048876?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: I44006564eaaf260b72d6caaebb1c09d7a55c90c9
Gerrit-Change-Number: 1048876
Gerrit-PatchSet: 2
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/+/1048837?usp=email )
Change subject: [9.3] Prepare next release
......................................................................
[9.3] Prepare next release
Change-Id: Ic2550146571fdd15b66de3a15a11be63c9bc8088
---
M .appveyor.yml
M HISTORY.rst
M ROADMAP.rst
M pywikibot/__metadata__.py
M scripts/__init__.py
5 files changed, 36 insertions(+), 28 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/.appveyor.yml b/.appveyor.yml
index 38cef84..ad07dfa 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,7 +1,7 @@
image: Visual Studio 2022
clone_depth: 50
skip_tags: true
-version: 9.2.{build}
+version: 9.3.{build}
environment:
PYWIKIBOT_DIR: "%appdata%\\Pywikibot"
diff --git a/HISTORY.rst b/HISTORY.rst
index 1a23884..a6167ed 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,13 +1,44 @@
Release History
===============
+9.2.0
+-----
+*22 June 2024*
+
+* Add support for ``btmwiki`` to Pywikibot (:phab:`T368069`)
+* Include image repository extensions in :attr:`site.APISite.file_extensions
+ <pywikibot.site._apisite.APISite.file_extensions>`
+* Ignore :exc:`ValueError` durig upcast of :class:`FilePage<pywikibot.page.FilePage>` due to invalid file extension
+ (:phab:`T367777`)
+* Add :func:`pagegenerators.SupersetPageGenerator` pagegenerator (:phab:`T367684`)
+* No longer wait in :meth:`data.api.Request._http_request` for ``ImportError`` and ``NameError``
+* Replace ``requests.utils.urlparse`` with ``urllib.parse.urlparse`` in
+ :func:`comms.http.get_authentication` (:phab:`T367649`)
+* Show an appropiate message if ``requests_oauthlib`` package is required but missing (:phab:`T353387`)
+* Retry ``DBUnexpectedError`` in :meth:`data.api.Request._internal_api_error` (:phab:`T367383`)
+* Duplicated entries found in :mod:`pywikibot` were removed
+* Pass ``None`` instead of an empty string as *expiry* argument in
+ :meth:`site.APISite.protect()<pywikibot.site._apisite.APISite.protect>` (:phab:`T367176`)
+* Fix keyword argument in :meth:`Page.undelete()<page.BasePage.undelete>` when
+ calling :meth:`site.APISite.undelete()<pywikibot.site._apisite.APISite.undelete>` (:phab:`T367037`)
+* Check whether :attr:`BaseBot.generator<bot.BaseBot.generator>` is None in :meth:`run()<bot.BaseBot.run>` method
+* Add *namespaces* parameter to :meth:`Page.templates()<page.BasePage.templates>` and
+ :meth:`Page.itertemplates()<page.BasePage.itertemplates>` and require keyword arguments;
+ only use TEMPLATE namespace for meth:`Page.isDisambig()<page.BasePage.isDisambig>` (:phab:`T365199`)
+* Drop pheetools support for :mod:`proofreadpage` which is no longer available upstreams (:phab:`T366036`)
+* Raise :exc:`exceptions.SectionError` if a section does not exists on a page (:phab:`T107141`)
+* Retry api request on ServerError (:phab:`T364275`, :phab:`T364393`)
+* i18n updates
+
+
9.1.3
-----
-*28.05.2024*
+*28 May 2024*
* Add support for dtpwiki (:phab:`T365232`)
* i18n updates
+
9.1.2
-----
*03 May 2024*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index b956e38..29cc47f 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,30 +1,7 @@
Current Release Changes
=======================
-* Add support for ``btmwiki`` to Pywikibot (:phab:`T368069`)
-* Include image repository extensions in :attr:`site.APISite.file_extensions
- <pywikibot.site._apisite.APISite.file_extensions>`
-* Ignore :exc:`ValueError` durig upcast of :class:`FilePage<pywikibot.page.FilePage>` due to invalid file extension
- (:phab:`T367777`)
-* Add :func:`pagegenerators.SupersetPageGenerator` pagegenerator (:phab:`T367684`)
-* No longer wait in :meth:`data.api.Request._http_request` for ``ImportError`` and ``NameError``
-* Replace ``requests.utils.urlparse`` with ``urllib.parse.urlparse`` in
- :func:`comms.http.get_authentication` (:phab:`T367649`)
-* Show an appropiate message if ``requests_oauthlib`` package is required but missing (:phab:`T353387`)
-* Retry ``DBUnexpectedError`` in :meth:`data.api.Request._internal_api_error` (:phab:`T367383`)
-* Duplicated entries found in :mod:`pywikibot` were removed
-* Pass ``None`` instead of an empty string as *expiry* argument in
- :meth:`site.APISite.protect()<pywikibot.site._apisite.APISite.protect>` (:phab:`T367176`)
-* Fix keyword argument in :meth:`Page.undelete()<page.BasePage.undelete>` when
- calling :meth:`site.APISite.undelete()<pywikibot.site._apisite.APISite.undelete>` (:phab:`T367037`)
-* Check whether :attr:`BaseBot.generator<bot.BaseBot.generator>` is None in :meth:`run()<bot.BaseBot.run>` method
-* Add *namespaces* parameter to :meth:`Page.templates()<page.BasePage.templates>` and
- :meth:`Page.itertemplates()<page.BasePage.itertemplates>` and require keyword arguments;
- only use TEMPLATE namespace for meth:`Page.isDisambig()<page.BasePage.isDisambig>` (:phab:`T365199`)
-* Drop pheetools support for :mod:`proofreadpage` which is no longer available upstreams (:phab:`T366036`)
-* Raise :exc:`exceptions.SectionError` if a section does not exists on a page (:phab:`T107141`)
-* Retry api request on ServerError (:phab:`T364275`, :phab:`T364393`)
-* i18n updates
+* (no changes yet)
Current Deprecations
====================
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index be801c8..6603ef5 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
from time import strftime
-__version__ = '9.2.0'
+__version__ = '9.3.0.dev0'
__url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
__copyright__ = f'2003-{strftime("%Y")}, Pywikibot team'
diff --git a/scripts/__init__.py b/scripts/__init__.py
index 01864c7..dac5584 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -32,4 +32,4 @@
#
# Distributed under the terms of the MIT license.
#
-__version__ = '9.2.0'
+__version__ = '9.3.0'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1048837?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: Ic2550146571fdd15b66de3a15a11be63c9bc8088
Gerrit-Change-Number: 1048837
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
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1048833?usp=email )
Change subject: [doc] do not exclude members from pywikibot.rst
......................................................................
[doc] do not exclude members from pywikibot.rst
This leads to missing links within documentation. A better solution
could be to exclude members from the imported library as lon as the
imports in pywikibot is intentional e.g. like for pywikibot.info()
This partially reverts daff7ba5 and 1d6a70d6
Change-Id: I68dca8545cdf3c0eb1c178c240fece4d994f7def
---
M docs/api_ref/pywikibot.rst
1 file changed, 0 insertions(+), 8 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/docs/api_ref/pywikibot.rst b/docs/api_ref/pywikibot.rst
index 804cd7e..5da2cdc 100644
--- a/docs/api_ref/pywikibot.rst
+++ b/docs/api_ref/pywikibot.rst
@@ -3,14 +3,6 @@
***********************************************
.. automodule:: pywikibot
- :exclude-members:
- Bot, CurrentPageBot, WikidataBot, calledModuleName, handle_args, input,
- input_choice, input_yn, show_help,
- translate,
- critical, debug, error, exception, info, log, output, stdout, warning,
- Category, Claim, FilePage, ItemPage, LexemeForm, LexemePage, LexemeSense,
- Link, MediaInfo, Page, PropertyPage, SiteLink, User, html2unicode,
- Timestamp
.. admonition:: Imports from :mod:`bot` module
:class: tip
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1048833?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: I68dca8545cdf3c0eb1c178c240fece4d994f7def
Gerrit-Change-Number: 1048833
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot