Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/842493 )
Change subject: [doc] Explain bot.handler_namer function
......................................................................
[doc] Explain bot.handler_namer function
Change-Id: I27ba557b1da794eb01d47a57e42b05bf03d8f407
---
M pywikibot/bot.py
1 file changed, 8 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 87d057a..d85f473 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -306,6 +306,14 @@
def handler_namer(name: str) -> str:
"""Modify the filename of a log file when rotating.
+ RotatingFileHandler will save old log files by appending the
+ extensions ``.1``, ``.2`` etc., to the filename. To keep the
+ original extension, which is usually ``.log``, this function
+ swaps the appended counter with the log extension:
+
+ >>> handler_namer('add_text.log.1')
+ 'add_text.1.log'
+
.. versionadded:: 6.5
"""
path, qualifier = name.rsplit('.', 1)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/842493
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I27ba557b1da794eb01d47a57e42b05bf03d8f407
Gerrit-Change-Number: 842493
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/841911 )
Change subject: [doc] Update ROADMAP.rst
......................................................................
[doc] Update ROADMAP.rst
Change-Id: Ib5a9f21dcf556581be08c5d11fa1c1a51a3ae9b2
---
M HISTORY.rst
M ROADMAP.rst
2 files changed, 11 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index 772dda1..de1ace6 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,14 @@
Release history
^^^^^^^^^^^^^^^
+7.7.1
+-----
+
+*10 October 2022*
+
+* New wikis are supported (:phab:`T314642`, :phab:`T314648`, :phab:`T316459`, :phab:`T317115`, :phab:`T319193`)
+
+
7.7.0
-----
*25 September 2022*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 6da0b77..4dcf441 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,6 +1,8 @@
Current release 8.0.0
^^^^^^^^^^^^^^^^^^^^^
+* The ``parent_id`` and ``content_model`` attributes of :class:`page.Revision` were removed in favour of ``parentid`` and ``contentmodel``
+* Support for MediaWiki < 1.27 was dropped
* ListBoxWindows class of :mod:`userinterfaces.gui` was removed
* L10N and i18n updates
* Adjust subprocess args in :mod:`tools.djvu`
@@ -8,6 +10,7 @@
* Require Python 3.6.1+ with Pywikibot and drop support for Python 3.6.0 (:phab:`T318912`)
* pymysql >= 0.9.3 is required (:phab:`T216741`)
* Python 3.5 support was dropped (:phab:`T301908`)
+* MediaWiki API cross reference was added to the documentation
Deprecations
^^^^^^^^^^^^
@@ -47,5 +50,3 @@
------------------------------
* 5.5.0: APISite.redirectRegex() will be removed in favour of APISite.redirect_regex()
-* 4.0.0: Revision.parent_id will be removed in favour of Revision.parentid
-* 4.0.0: Revision.content_model will be removed in favour of Revision.contentmodel
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/841911
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib5a9f21dcf556581be08c5d11fa1c1a51a3ae9b2
Gerrit-Change-Number: 841911
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/841904 )
Change subject: [doc] Fix make_dist.py documentation
......................................................................
[doc] Fix make_dist.py documentation
Change-Id: Ic0bbba0aae2a0e499284e242bc82374663cdcdf4
---
M make_dist.py
1 file changed, 10 insertions(+), 10 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/make_dist.py b/make_dist.py
index cb5c11a..e91cd40 100644
--- a/make_dist.py
+++ b/make_dist.py
@@ -3,21 +3,21 @@
The following options are supported:
--help Print documentation of this file and of setup.py
+-help Print documentation of this file and of setup.py
--local Install the distribution as a local site-package. If a
- Pywikibot package is already there, it will be uninstalled
- first.
+-local Install the distribution as a local site-package. If a
+ Pywikibot package is already there, it will be uninstalled
+ first.
--remote Upload the package to pypi. This cannot be done if the
- Pywikibot version is a development release.
+-remote Upload the package to pypi. This cannot be done if the
+ Pywikibot version is a development release.
--clear Clear old dist folders
+-clear Clear old dist folders
--upgrade Upgrade distribution packages pip, setuptools, wheel and twine
- first
+-upgrade Upgrade distribution packages pip, setuptools, wheel and twine
+ first
--nodist Do not create a distribution. Useful to -clear or -upgrade only.
+-nodist Do not create a distribution. Useful to -clear or -upgrade only.
Usage::
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/841904
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic0bbba0aae2a0e499284e242bc82374663cdcdf4
Gerrit-Change-Number: 841904
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-CC: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/838848 )
Change subject: [setup] Ignore globals from loading into metadata dict
......................................................................
[setup] Ignore globals from loading into metadata dict
If no parameters are given for locals all key/value pairs are stored
in the first mapping including __buildins__ which are the globals.
To ignore then just pass None for globals and keep metadata mapping
for locals.
Change-Id: I00caee679f5c5a92cc2673c420ac9d2368698db0
---
M setup.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/setup.py b/setup.py
index 192de71..8057398 100755
--- a/setup.py
+++ b/setup.py
@@ -143,7 +143,7 @@
name = 'pywikibot'
path = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(path, name, '__metadata__.py')) as f:
- exec(f.read(), metadata)
+ exec(f.read(), None, metadata)
assert metadata.__name__ == name
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/838848
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I00caee679f5c5a92cc2673c420ac9d2368698db0
Gerrit-Change-Number: 838848
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged