jenkins-bot has submitted this change and it was merged.
Change subject: Fix travis global environment variables
......................................................................
Fix travis global environment variables
Remove the secure variable, which is available in the Travis settings.
Change-Id: Id8162623647ea88c65bf6e2cd2bf5925e94b05bd
(manually cherry-picked from f5aaf8534b)
---
M .travis.yml
1 file changed, 0 insertions(+), 7 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml
index e0720f5..0823589 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -70,13 +70,6 @@
fi
env:
- global:
- # This is the encrypted password for Wikimedia SUL user 'Pywikibot-test',
- # and is only decrypted by Travis when running builds of code merged into
- # the github repository 'wikimedia/pywikibot-core'.
- # See http://docs.travis-ci.com/user/encryption-keys/ for more information.
- - secure: kofInMlisiTBt9o/Ustc/vySlkKfxGzGCX2LwA1D2waym8sDTS0o5gMJ5LsrT/BUKwZbe1vLozPHqZrrkQvsdTml+DpZuotzdILs0m0f3BUoexEC6OON5IDljuxFyETrD1Ug44ih5Mc4lVFOdTcBzg501ZmswGwQrBvg/OyEFfE=
-
matrix:
- LANGUAGE=en FAMILY=wikipedia EXTERNALS_HTTPLIB2=1 PYWIKIBOT2_TEST_PROD_ONLY=1
- LANGUAGE=fr FAMILY=wiktionary PYSETUP_TEST_EXTRAS=1 PYWIKIBOT2_TEST_PROD_ONLY=1 PYWIKIBOT2_TEST_NO_RC=1
--
To view, visit https://gerrit.wikimedia.org/r/297420
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id8162623647ea88c65bf6e2cd2bf5925e94b05bd
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: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Fix travis global environment variables
......................................................................
Fix travis global environment variables
Remove the secure variable, which is available in the Travis settings.
Change the syntax for TEST_TIMEOUT, as shippable can not understand
the existing a: b syntax
Change-Id: Id8162623647ea88c65bf6e2cd2bf5925e94b05bd
---
M .travis.yml
1 file changed, 1 insertion(+), 6 deletions(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml
index a0186ad..5dc947f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -121,12 +121,7 @@
env:
global:
- # This is the encrypted password for Wikimedia SUL user 'Pywikibot-test',
- # and is only decrypted by Travis when running builds of code merged into
- # the github repository 'wikimedia/pywikibot-core'.
- # See http://docs.travis-ci.com/user/encryption-keys/ for more information.
- - secure: kofInMlisiTBt9o/Ustc/vySlkKfxGzGCX2LwA1D2waym8sDTS0o5gMJ5LsrT/BUKwZbe1vLozPHqZrrkQvsdTml+DpZuotzdILs0m0f3BUoexEC6OON5IDljuxFyETrD1Ug44ih5Mc4lVFOdTcBzg501ZmswGwQrBvg/OyEFfE=
- - TEST_TIMEOUT: 300
+ - TEST_TIMEOUT=300
matrix:
- LANGUAGE=en FAMILY=wikipedia PYWIKIBOT2_TEST_PROD_ONLY=1
--
To view, visit https://gerrit.wikimedia.org/r/297366
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id8162623647ea88c65bf6e2cd2bf5925e94b05bd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: AbdealiJK <abdealikothari(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: bot_choice.py: Don't print the context when ContextOption.result is called
......................................................................
bot_choice.py: Don't print the context when ContextOption.result is called
solve_disambiguation.py was printing the context twice when the user chose
the "[m]ore context" option. This should fix that.
Bug: T138670
Change-Id: If5dd70b51f6267f1ac7b5e629e18b786d9f6cfdd
---
M pywikibot/bot_choice.py
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot_choice.py b/pywikibot/bot_choice.py
index 6be7704..e116847 100755
--- a/pywikibot/bot_choice.py
+++ b/pywikibot/bot_choice.py
@@ -264,9 +264,8 @@
self.end = end
def result(self, value):
- """Add the delta to the context and output it."""
+ """Add the delta to the context."""
self.context += self.delta
- super(ContextOption, self).result(value)
def output(self):
"""Output the context."""
--
To view, visit https://gerrit.wikimedia.org/r/297125
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If5dd70b51f6267f1ac7b5e629e18b786d9f6cfdd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #3506
Status: Errored
Duration: 27 minutes and 6 seconds
Commit: 18a1574 (2.0)
Author: APerson
Message: Fix notifications building from JSON
Sometimes (like in welcome messages), notifications don't have a
'title' property, so we shouldn't assume there is one.
Bug: T139015
Change-Id: I83e480d04e8e09aa9bcb5edef4f56b47d150e199
(cherry picked from commit d387ab236634f91186805dd114ee85455d1244f8)
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/0af67511f023...18a15745…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/141816714
--
You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications
jenkins-bot has submitted this change and it was merged.
Change subject: Fix notifications building from JSON
......................................................................
Fix notifications building from JSON
Sometimes (like in welcome messages), notifications don't have a
'title' property, so we shouldn't assume there is one.
Bug: T139015
Change-Id: I83e480d04e8e09aa9bcb5edef4f56b47d150e199
(cherry picked from commit d387ab236634f91186805dd114ee85455d1244f8)
---
M pywikibot/echo.py
1 file changed, 4 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/echo.py b/pywikibot/echo.py
index 311827d..c42ddbb 100644
--- a/pywikibot/echo.py
+++ b/pywikibot/echo.py
@@ -27,8 +27,10 @@
notif.category = data['category']
notif.timestamp = pywikibot.Timestamp.fromtimestampformat(data['timestamp']['mw'])
- # TODO: use 'namespace-key' + 'text' ?
- notif.page = pywikibot.Page(site, data['title']['full'])
+ if 'title' in data and 'full' in data['title']:
+ notif.page = pywikibot.Page(site, data['title']['full'])
+ else:
+ notif.page = None
if 'agent' in data and 'name' in data['agent']:
notif.agent = pywikibot.User(site, data['agent']['name'])
--
To view, visit https://gerrit.wikimedia.org/r/297119
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I83e480d04e8e09aa9bcb5edef4f56b47d150e199
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: 2.0
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: APerson <danielhglus(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Improve page depth counting efficiency
......................................................................
Improve page depth counting efficiency
We don't need to listify a re.finditer result in order to count
the number of forward slashes that appear in a page title - all
we have to do is use the built-in function string.count(substr).
Change-Id: Ia457c837380f4681046bca64243b826e3ae7a302
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index a59d379..5c5f2e0 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -235,8 +235,7 @@
if not hasattr(self, '_depth'):
# Check if the namespace allows subpages
if self._namespace_obj.subpages:
- # Count how many '/'s we have in the title
- _depth = len(list(re.finditer('/', self.title())))
+ _depth = self.title().count('/')
else:
# Does not allow subpages, which means depth is always 0
_depth = 0
--
To view, visit https://gerrit.wikimedia.org/r/297117
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia457c837380f4681046bca64243b826e3ae7a302
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: APerson <danielhglus(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Sn1per <geofbot(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>