jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1023107?usp=email )
Change subject: [bugfic] Fix wikibase_(edit_)tests
......................................................................
[bugfic] Fix wikibase_(edit_)tests
Bug: T363101
Change-Id: I3e50f7900e4f053f77ee85841efe8a8433c218d2
---
M tests/wikibase_edit_tests.py
M tests/wikibase_tests.py
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/wikibase_edit_tests.py b/tests/wikibase_edit_tests.py
index 307c4f5..d2e9fc5 100755
--- a/tests/wikibase_edit_tests.py
+++ b/tests/wikibase_edit_tests.py
@@ -421,7 +421,7 @@
# set new claim
claim = pywikibot.page.Claim(
testsite, 'P88936', datatype='musical-notation')
- target = "\relative c' { c d e f | g2 g | a4 a a a | g1 |})"
+ target = "\\relative c' { c d e f | g2 g | a4 a a a | g1 |}"
claim.setTarget(target)
item.addClaim(claim)
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
index cea1677..033be36 100755
--- a/tests/wikibase_tests.py
+++ b/tests/wikibase_tests.py
@@ -2014,7 +2014,7 @@
wikidata = self.get_repo()
claim = pywikibot.Claim(wikidata, 'P6604')
self.assertEqual(claim.type, 'musical-notation')
- target = "\relative c' { c d e f | g2 g | a4 a a a | g1 |})"
+ target = "\\relative c' { c d e f | g2 g | a4 a a a | g1 |}"
claim.setTarget(target)
self.assertEqual(claim.target, target)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1023107?usp=email
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: I3e50f7900e4f053f77ee85841efe8a8433c218d2
Gerrit-Change-Number: 1023107
Gerrit-PatchSet: 1
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/i18n/+/1023072?usp=email )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: Iff505ca3c991c318494a5cc4754cce3558fa8ae6
---
M protect/lb.json
M redirect/lb.json
M unprotect/lb.json
3 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
L10n-bot: Looks good to me, approved
jenkins-bot: Verified
diff --git a/protect/lb.json b/protect/lb.json
index 64eca27..871f518 100644
--- a/protect/lb.json
+++ b/protect/lb.json
@@ -7,6 +7,6 @@
"protect-category": "Bot: All Säiten aus der Kategorie %(cat)s spären",
"protect-images": "Bot: All Biller op der Säit %(page)s spären",
"protect-links": "Bot: All Säite spären déi vun der Säit %(page)s verlinkt sinn",
- "protect-ref": "Bot: All Säite spären, déi op d'Säit %(page)s linken",
+ "protect-ref": "Bot: All Säite spären, déi op d'Säit %(page)s referéieren",
"protect-simple": "Bot: Eng Lëscht vu Fichiere spären."
}
diff --git a/redirect/lb.json b/redirect/lb.json
index 233edaa..ec5f69e 100644
--- a/redirect/lb.json
+++ b/redirect/lb.json
@@ -9,7 +9,7 @@
"redirect-broken-redirect-template": "{{Läschen|1=Defekt Viruleedung}}",
"redirect-fix-broken-moved": "Futtis Viruleedung op déi geréckelt Zilsäit %(to)s gouf gefléckt",
"redirect-fix-double": "Duebel Viruleedung gefléckt → %(to)s",
- "redirect-fix-loop": "Viruleedungsschleef op %(to)s verbessert",
+ "redirect-fix-loop": "Verbesserung vun der Viruleedungsschleef op %(to)s",
"redirect-remove-broken": "Viruleedung op eng geläscht Säit oder eng Säit déi et net gëtt",
"redirect-remove-loop": "Viruleedung där hiert Zil zu enger endlos Schleef féiert"
}
diff --git a/unprotect/lb.json b/unprotect/lb.json
index feecdfd..19aee01 100644
--- a/unprotect/lb.json
+++ b/unprotect/lb.json
@@ -7,6 +7,6 @@
"unprotect-category": "Bot: D'Spär vun alle Säiten aus der Kategorie %(cat)s gouf opgehuewen",
"unprotect-images": "Bot: D'Spär fir all Biller op der Säit %(page)s ophiewen",
"unprotect-links": "Bot: D'Spär vun alle Säiten, déi vu(n) %(page)s verlinkt sinn, gouf opgehuewen",
- "unprotect-ref": "Bot: D'Spär vun alle Säite, déi op d'Säit %(page)s linken, gouf opgehuewen",
+ "unprotect-ref": "Bot: D'Spär vun alle Säite, déi op d'Säit %(page)s referéieren, gouf opgehuewen",
"unprotect-simple": "Bot: D'Spär fir eng Lëscht vu Fichiere ophiewen"
}
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/1023072?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: Iff505ca3c991c318494a5cc4754cce3558fa8ae6
Gerrit-Change-Number: 1023072
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1023059?usp=email )
Change subject: [doc] Do not show version hints with -help option in make_dist.py
......................................................................
[doc] Do not show version hints with -help option in make_dist.py
Change-Id: I5ba629de9535648430b156d8cd451bac092f13bf
---
M make_dist.py
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/make_dist.py b/make_dist.py
index 8dc2a13..8979c73 100755
--- a/make_dist.py
+++ b/make_dist.py
@@ -204,8 +204,11 @@
uploaded
"""
if '-help' in sys.argv:
+ import re
import setup
- info(__doc__)
+ help_text = re.sub(r'^\.\. version(added|changed)::.+', '',
+ __doc__, flags=re.MULTILINE | re.DOTALL)
+ info(help_text)
info(setup.__doc__)
sys.exit()
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1023059?usp=email
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: I5ba629de9535648430b156d8cd451bac092f13bf
Gerrit-Change-Number: 1023059
Gerrit-PatchSet: 1
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/+/1023048?usp=email )
Change subject: [9.2] Prepare next release
......................................................................
[9.2] Prepare next release
Change-Id: I976f3464b606e3a9f8cbf54c613262667c07daeb
---
M .appveyor.yml
M HISTORY.rst
M ROADMAP.rst
M pywikibot/__metadata__.py
M scripts/__init__.py
5 files changed, 26 insertions(+), 19 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/.appveyor.yml b/.appveyor.yml
index 6fb8acf..96d787b 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,7 +1,7 @@
image: Visual Studio 2022
clone_depth: 50
skip_tags: true
-version: 9.1.{build}
+version: 9.2.{build}
environment:
PYWIKIBOT_DIR: "%appdata%\\Pywikibot"
diff --git a/HISTORY.rst b/HISTORY.rst
index 2104ff9..48d05a2 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,28 @@
Release history
===============
+9.1.0
+-----
+*22 April 2024*
+
+* ``-usernames`` option was added to :mod:`version<pywikibot.scripts.version>` script
+* Circumvent problems with *unique* and *prefix* parameters in :meth:`Site.alllinks()
+ <pywikibot.site._generators.GeneratorsMixin.alllinks>` (:phab:`T359427`)
+* Detect nighly version file with :func:`version.getversion_nightly` (:phab:`T362492`)
+* :mod:`version`.github_svn_rev2hash() was removed; it was no longer functional (:phab:`T362484`)
+* SVN support has been dropped; ``.svnprops`` property settings was removed (:phab:`T362484`)
+* Skip process that requires login to logout (:phab:`T326614`)
+* File title of :class:`specialbots.UploadRobot` must have a valid file extension (:phab:`T345786`)
+* Add a :attr:`post_processor<specialbots.UploadRobot.post_processor>` attribute to :class:`specialbots.UploadRobot`
+ which can be called after each upload (:phab:`T359766`)
+* Avoid using :meth:`pywikibot.handle_args` in private scripts;
+ use :mod:`pwb<pywikibot.scripts.wrapper>` wrapper instead (:phab:`T359766`)
+* Show upload count with :class:`specialbots.UploadRobot`
+* Use the same ``iiprop`` properties in :class:`data.api.PageGenerator` as in
+ :meth:`APISite.loadimageinfo<pywikibot.site._apisite.APISite.loadimageinfo>` (:phab:`T360093`)
+* i18n updates
+
+
9.0.0
-----
*08 March 2024*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 854f7bc..19cb97f 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,22 +1,7 @@
Current release
---------------
-* ``-usernames`` option was added to :mod:`version<pywikibot.scripts.version>` script
-* Circumvent problems with *unique* and *prefix* parameters in :meth:`Site.alllinks()
- <pywikibot.site._generators.GeneratorsMixin.alllinks>` (:phab:`T359427`)
-* Detect nighly version file with :func:`version.getversion_nightly` (:phab:`T362492`)
-* :mod:`version`.github_svn_rev2hash() was removed; it was no longer functional (:phab:`T362484`)
-* SVN support has been dropped; ``.svnprops`` property settings was removed (:phab:`T362484`)
-* Skip process that requires login to logout (:phab:`T326614`)
-* File title of :class:`specialbots.UploadRobot` must have a valid file extension (:phab:`T345786`)
-* Add a :attr:`post_processor<specialbots.UploadRobot.post_processor>` attribute to :class:`specialbots.UploadRobot`
- which can be called after each upload (:phab:`T359766`)
-* Avoid using :meth:`pywikibot.handle_args` in private scripts;
- use :mod:`pwb<pywikibot.scripts.wrapper>` wrapper instead (:phab:`T359766`)
-* Show upload count with :class:`specialbots.UploadRobot`
-* Use the same ``iiprop`` properties in :class:`data.api.PageGenerator` as in
- :meth:`APISite.loadimageinfo<pywikibot.site._apisite.APISite.loadimageinfo>` (:phab:`T360093`)
-* i18n updates
+* (no changes yet)
Deprecations
------------
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 0452c41..1a8c5de 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
from time import strftime
-__version__ = '9.1.0'
+__version__ = '9.2.0.dev0'
__url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
__copyright__ = '(C) Pywikibot team, 2003-' + strftime('%Y')
diff --git a/scripts/__init__.py b/scripts/__init__.py
index d289690..01864c7 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -32,4 +32,4 @@
#
# Distributed under the terms of the MIT license.
#
-__version__ = '9.1.0'
+__version__ = '9.2.0'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1023048?usp=email
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: I976f3464b606e3a9f8cbf54c613262667c07daeb
Gerrit-Change-Number: 1023048
Gerrit-PatchSet: 1
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
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1022557?usp=email )
Change subject: [IMPR] Permit strings as exceptions for fixes
......................................................................
[IMPR] Permit strings as exceptions for fixes
In other words, allow:
fixes['key'] = {
'exceptions': {
'text-contains': 'skip this text',
},
'replacements': [
...
],
}
Previously, a string was interpreted as a sequence (list)
of characters, each being a pattern to search for. Which
would cause silent skipping of pages.
Change-Id: I0f4d01fcf96f6b22d3ddc5970138ef4db8259f85
---
M scripts/replace.py
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/replace.py b/scripts/replace.py
index 5a809f4..f31fd40 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -178,6 +178,8 @@
'title', 'require-title', 'text-contains', 'inside']:
if exceptionCategory in exceptions:
patterns = exceptions[exceptionCategory]
+ if isinstance(patterns, str):
+ patterns = [patterns]
if not use_regex:
patterns = [re.escape(pattern) for pattern in patterns]
patterns = [re.compile(pattern, flags) for pattern in patterns]
@@ -1030,9 +1032,9 @@
if not generators_given and 'generator' in fix:
gen_args = fix['generator']
if isinstance(gen_args, str):
- gen_args = [gen_args]
- for gen_arg in gen_args:
- genFactory.handle_arg(gen_arg)
+ genFactory.handle_arg(gen_args)
+ else:
+ genFactory.handle_args(gen_args)
replacement_set = ReplacementList(fix.get('regex'),
fix.get('exceptions'),
fix.get('nocase'),
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1022557?usp=email
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: I0f4d01fcf96f6b22d3ddc5970138ef4db8259f85
Gerrit-Change-Number: 1022557
Gerrit-PatchSet: 2
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged