jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] wikimediachapter: Use dk prefix instead
......................................................................
[FIX] wikimediachapter: Use dk prefix instead
With 28cd83f7 the site constructor assumed that `dk:wikimediachapter` assumed
that it's obsolete and replaced by `da:wikimediachapter` which is not the case
for `wikimediachapter`. This is removing all code aliases as they are designed
for Wikipedia.
Change-Id: I2841df3d4e5b5df42096151a49ad1705015763a0
---
M pywikibot/families/wikimediachapter_family.py
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/families/wikimediachapter_family.py b/pywikibot/families/wikimediachapter_family.py
index 9f3bbdf..891fc5b 100644
--- a/pywikibot/families/wikimediachapter_family.py
+++ b/pywikibot/families/wikimediachapter_family.py
@@ -11,6 +11,8 @@
"""Family for Wikimedia chapters hosted on wikimedia.org."""
+ code_aliases = {}
+
def __init__(self):
"""Constructor."""
super(Family, self).__init__()
--
To view, visit https://gerrit.wikimedia.org/r/235942
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2841df3d4e5b5df42096151a49ad1705015763a0
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.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: Disable multi-site on betawp and betaws
......................................................................
Disable multi-site on betawp and betaws
Multi-site family generation does not work correctly
on the beta cluster, as the beta site matrix points to
the production cluster, causing the family file to include
production wikis, and Family.from_url fails.
Change-Id: I9c9e43eeb8732ec653797e9ba5f9e231019546dd
---
M .travis.yml
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml
index e74a0c3..e18b15a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -52,10 +52,10 @@
- if [[ "$FAMILY" == 'oraintest' ]]; then python pwb.py generate_family_file 'https://test.orain.org/' oraintest ; fi
- python pwb.py generate_family_file 'https://wiki.musicbrainz.org/' musicbrainz
- if [[ $FAMILY == 'wpbeta' ]]; then
- python -m generate_family_file 'http://'$LANGUAGE'.wikipedia.beta.wmflabs.org/' 'wpbeta' 'y' ;
+ python -m generate_family_file 'http://'$LANGUAGE'.wikipedia.beta.wmflabs.org/' 'wpbeta' 'n' ;
fi
- if [[ $FAMILY == 'wsbeta' ]]; then
- python -m generate_family_file 'http://'$LANGUAGE'.wikisource.beta.wmflabs.org/' 'wsbeta' 'y' ;
+ python -m generate_family_file 'http://'$LANGUAGE'.wikisource.beta.wmflabs.org/' 'wsbeta' 'n' ;
fi
- python -W error::UserWarning -m generate_user_files -dir:~/.pywikibot/ -family:$FAMILY -lang:$LANGUAGE -v -user:"$PYWIKIBOT2_USERNAME"
--
To view, visit https://gerrit.wikimedia.org/r/235724
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9c9e43eeb8732ec653797e9ba5f9e231019546dd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
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: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #2765
Status: Failed
Duration: 41 minutes and 55 seconds
Commit: 3e2444a (master)
Author: John Vandenberg
Message: Multi site family detection regression
53141af26 migrated the site detection logic from
generate_family_file.py to pywikibot.site_detect.MWSite.
(Merlijn van Deen was Author: for attribution only)
This introduced an error as MWSite.langs failed, preventing
multi site family from being detected, and thus always
creating a single site family.
Bug: T74846
Change-Id: I157c2b48cf49dcc7b94eca439f6f3d3e45bd969e
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/ad5477edce4a...3e2444a3…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/78529615
--
You can configure recipients for build notifications in your .travis.yml file. See http://docs.travis-ci.com/user/notifications
jenkins-bot has submitted this change and it was merged.
Change subject: Multi site family detection regression
......................................................................
Multi site family detection regression
53141af26 migrated the site detection logic from
generate_family_file.py to pywikibot.site_detect.MWSite.
(Merlijn van Deen was Author: for attribution only)
This introduced an error as MWSite.langs failed, preventing
multi site family from being detected, and thus always
creating a single site family.
Bug: T74846
Change-Id: I157c2b48cf49dcc7b94eca439f6f3d3e45bd969e
---
M pywikibot/site_detect.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site_detect.py b/pywikibot/site_detect.py
index 7dd2587..23e3c22 100644
--- a/pywikibot/site_detect.py
+++ b/pywikibot/site_detect.py
@@ -102,9 +102,8 @@
if 'error' in iw:
raise RuntimeError('%s - %s' % (iw['error']['code'],
iw['error']['info']))
- self.langs = [wiki for wiki in iw['query']['interwikimap']
- if u'language' in wiki]
- return self.langs
+ return [wiki for wiki in iw['query']['interwikimap']
+ if u'language' in wiki]
def _parse_pre_117(self, data):
"""Parse HTML."""
--
To view, visit https://gerrit.wikimedia.org/r/235662
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I157c2b48cf49dcc7b94eca439f6f3d3e45bd969e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: pagefromfile.py: -start argument conflict
......................................................................
pagefromfile.py: -start argument conflict
Deprecated -start for -begin to avoid conflict with pagegenerators.py
params, if pagegenerators will be used in future.
Both parameters survive with same meaning, for backward compatibility.
Start will be replaced completely in future.
Bug: T100628
Change-Id: I84ab19e144199de7a7553b2674d10cfbf5fc0ab7
---
M scripts/pagefromfile.py
1 file changed, 11 insertions(+), 3 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/pagefromfile.py b/scripts/pagefromfile.py
index 1eda597..b1411f9 100755
--- a/scripts/pagefromfile.py
+++ b/scripts/pagefromfile.py
@@ -17,7 +17,8 @@
Specific arguments:
--start:xxx Specify the text that marks the beginning of a page
+-begin:xxx Specify the text that marks the beginning of a page
+-start:xxx (deprecated)
-end:xxx Specify the text that marks the end of a page
-file:xxx Give the filename we are getting our material from
(default: dict.txt)
@@ -54,7 +55,7 @@
"""
#
# (C) Andre Engels, 2004
-# (C) Pywikibot team, 2005-2014
+# (C) Pywikibot team, 2005-2015
#
# Distributed under the terms of the MIT license.
#
@@ -66,9 +67,11 @@
import os
import re
import codecs
+from warnings import warn
import pywikibot
from pywikibot import config, Bot, i18n
+from pywikibot.exceptions import ArgumentDeprecationWarning
class NoTitle(Exception):
@@ -278,8 +281,13 @@
notitle = False
for arg in pywikibot.handle_args(args):
- if arg.startswith("-start:"):
+ if arg.startswith('-start:'):
pageStartMarker = arg[7:]
+ warn('-start param (text that marks the beginning) of a page has been '
+ 'deprecated in favor of begin; make sure to use the updated param.',
+ ArgumentDeprecationWarning)
+ elif arg.startswith('-begin:'):
+ pageStartMarker = arg[len('-begin:'):]
elif arg.startswith("-end:"):
pageEndMarker = arg[5:]
elif arg.startswith("-file:"):
--
To view, visit https://gerrit.wikimedia.org/r/214717
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I84ab19e144199de7a7553b2674d10cfbf5fc0ab7
Gerrit-PatchSet: 7
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(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: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>