jenkins-bot has submitted this change and it was merged.
Change subject: Update version numbers
......................................................................
Update version numbers
Change-Id: Ic6528a2c80a34c4eec7615a2b6c69895b92bd2ed
---
M family.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/family.py b/family.py
index c597ddf..1552df0 100644
--- a/family.py
+++ b/family.py
@@ -4331,7 +4331,7 @@
# Don't use this, use versionnumber() instead. This only exists
# to not break family files.
# Here we return the latest mw release for downloading
- return '1.25.1'
+ return '1.25.2'
def versionnumber(self, code, version=None):
"""Return an int identifying MediaWiki version.
@@ -4967,7 +4967,7 @@
# Don't use this, use versionnumber() instead. This only exists
# to not break family files.
# Here we return the latest mw release of wikimedia projects
- return '1.26wmf11'
+ return '1.27.0-wmf.1'
def shared_image_repository(self, code):
return ('commons', 'commons')
--
To view, visit https://gerrit.wikimedia.org/r/243390
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic6528a2c80a34c4eec7615a2b6c69895b92bd2ed
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Change "PyWikiBot" to "Pywikibot"
......................................................................
Change "PyWikiBot" to "Pywikibot"
It's like using "WikiPedia"
Change-Id: Ic06ad7716bbd18a697bc934bb9c3d4134d4db716
(manually cherry picked from commit eb96486)
---
M pywikibot/page.py
M tests/link_tests.py
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Ricordisamoa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 33bbace..5be034b 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -4599,7 +4599,7 @@
except SiteDefinitionError as e:
raise SiteDefinitionError(
u'{0} is not a local page on {1}, and the interwiki prefix '
- '{2} is not supported by PyWikiBot!:\n{3}'.format(
+ '{2} is not supported by Pywikibot!:\n{3}'.format(
self._text, self._site, prefix, e))
else:
t = t[t.index(u":"):].lstrip(u":").lstrip(u" ")
diff --git a/tests/link_tests.py b/tests/link_tests.py
index 83020ff..aa25b16 100644
--- a/tests/link_tests.py
+++ b/tests/link_tests.py
@@ -882,7 +882,7 @@
self.assertRaisesRegex(
Error,
'bugzilla:1337 is not a local page on wikipedia:en, and the '
- 'interwiki prefix bugzilla is not supported by PyWikiBot!',
+ 'interwiki prefix bugzilla is not supported by Pywikibot!',
link.parse)
def test_other_wiki_prefix(self):
@@ -891,7 +891,7 @@
self.assertRaisesRegex(
Error,
'bulba:this-will-never-work is not a local page on wikipedia:en, '
- 'and the interwiki prefix bulba is not supported by PyWikiBot!',
+ 'and the interwiki prefix bulba is not supported by Pywikibot!',
link.parse)
--
To view, visit https://gerrit.wikimedia.org/r/243334
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic06ad7716bbd18a697bc934bb9c3d4134d4db716
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Stop crashing item loads due to support of units
......................................................................
[FIX] Stop crashing item loads due to support of units
We need more patches to have better support of quantities with unit
But this needs to be merged ASAP, it crashes loading of every item with
claims with units in them (more than 10K items)
Bug: T112130
Change-Id: Iff7c9ad0e9cd2ec728595f900279e82848d9a0de
(cherry picked from commit e2ab72b54b0581490ec205983fa57df19d20aeef)
---
M pywikibot/__init__.py
M tests/wikibase_tests.py
2 files changed, 0 insertions(+), 5 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index c155035..9571873 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -479,9 +479,6 @@
"""
if amount is None:
raise ValueError('no amount given')
- if unit is not None and unit != '1':
- raise NotImplementedError(
- 'Currently only unit-less quantities are supported')
if unit is None:
unit = '1'
self.amount = amount
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
index 929dbd1..a1aaf5f 100644
--- a/tests/wikibase_tests.py
+++ b/tests/wikibase_tests.py
@@ -128,8 +128,6 @@
# test WbQuantity error handling
self.assertRaises(ValueError, pywikibot.WbQuantity, amount=None,
error=1)
- self.assertRaises(NotImplementedError, pywikibot.WbQuantity, amount=789,
- unit='invalid_unit')
class TestItemPageExtensibility(TestCase):
--
To view, visit https://gerrit.wikimedia.org/r/243250
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iff7c9ad0e9cd2ec728595f900279e82848d9a0de
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Handle single quotes in usernames on Travis
......................................................................
[FIX] Handle single quotes in usernames on Travis
The username is written multiple times into the user-config surrounded by
single quotes. So if the username itself contains them these needs to be
escaped.
Bug: T105783
Change-Id: I54a7228f77e8cba653b25bd6e10bd4d4fee55e28
(cherry picked from commit b42724c107d62841a758a23f47d2e25da75a4052)
---
M .travis.yml
M tests/README.rst
2 files changed, 5 insertions(+), 5 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml
index 0ffea0d..d4de620 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -44,10 +44,10 @@
- python -W error::UserWarning -m generate_user_files -dir:~/.pywikibot/ -family:$FAMILY -lang:$LANGUAGE -v -user:"$PYWIKIBOT2_USERNAME"
- if [[ -n "$USER_PASSWORD" && -n "$PYWIKIBOT2_USERNAME" ]]; then
- echo "usernames['wikipedia']['en'] = '$PYWIKIBOT2_USERNAME'" >> ~/.pywikibot/user-config.py ;
- echo "usernames['wikipedia']['test'] = '$PYWIKIBOT2_USERNAME'" >> ~/.pywikibot/user-config.py ;
- echo "usernames['wikidata']['test'] = '$PYWIKIBOT2_USERNAME'" >> ~/.pywikibot/user-config.py ;
- echo "usernames['commons']['commons'] = '$PYWIKIBOT2_USERNAME'" >> ~/.pywikibot/user-config.py ;
+ printf "usernames['wikipedia']['en'] = '%q'\n" "$PYWIKIBOT2_USERNAME" >> ~/.pywikibot/user-config.py ;
+ printf "usernames['wikipedia']['test'] = '%q'\n" "$PYWIKIBOT2_USERNAME" >> ~/.pywikibot/user-config.py ;
+ printf "usernames['wikidata']['test'] = '%q'\n" "$PYWIKIBOT2_USERNAME" >> ~/.pywikibot/user-config.py ;
+ printf "usernames['commons']['commons'] = '%q'\n" "$PYWIKIBOT2_USERNAME" >> ~/.pywikibot/user-config.py ;
printf "('%q', '%q')\n" "$PYWIKIBOT2_USERNAME" "$USER_PASSWORD" > ~/.pywikibot/passwordfile ;
echo "import os" >> ~/.pywikibot/user-config.py ;
echo "password_file = os.path.expanduser('~/.pywikibot/passwordfile')" >> ~/.pywikibot/user-config.py ;
diff --git a/tests/README.rst b/tests/README.rst
index 2f9f91a..b566cf4 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -109,7 +109,7 @@
4. The next build should run tests that require a logged in user
While passwords in travis-ci environment variables are not leaked in normal
-operations, you are responsible for your own passwords. If the password contains
+operations, you are responsible for your own passwords. If the variables contain
single quotes it is necessary to surround them in double quotes (see also
`travis-ci #4350 <https://github.com/travis-ci/travis-ci/issues/4350>`_).
--
To view, visit https://gerrit.wikimedia.org/r/242522
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I54a7228f77e8cba653b25bd6e10bd4d4fee55e28
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>