jenkins-bot has submitted this change and it was merged.
Change subject: Update families and versions for Pywikibot ......................................................................
Update families and versions for Pywikibot
Removed three defunct wikis and added one, as well as updated version numbers for each wiki. Version in family.py updated to latest 1.24wmf7 branch.
Change-Id: I3e1069185d856ae62d57d72da7f06ffe426233f1 --- M pywikibot/families/battlestarwiki_family.py D pywikibot/families/fon_family.py D pywikibot/families/gentoo_family.py M pywikibot/families/omegawiki_family.py M pywikibot/families/osm_family.py A pywikibot/families/outreach_family.py D pywikibot/families/southernapproach_family.py M pywikibot/family.py 8 files changed, 23 insertions(+), 74 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/pywikibot/families/battlestarwiki_family.py b/pywikibot/families/battlestarwiki_family.py index 3935367..8be7a43 100644 --- a/pywikibot/families/battlestarwiki_family.py +++ b/pywikibot/families/battlestarwiki_family.py @@ -20,4 +20,4 @@ return '%s.battlestarwiki.org' % code
def version(self, code): - return "1.15.0" + return "1.16.4" diff --git a/pywikibot/families/fon_family.py b/pywikibot/families/fon_family.py deleted file mode 100644 index 5d776f2..0000000 --- a/pywikibot/families/fon_family.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -__version__ = '$Id$' - -from pywikibot import family - - -# The official Beta Wiki. -class Family(family.Family): - - def __init__(self): - - family.Family.__init__(self) - self.name = 'fon' - - self.langs = { - 'en': None, - } - - def hostname(self, code): - return 'wiki.fon.com' - - def scriptpath(self, code): - return '/mediawiki' - - def version(self, code): - return "1.15.1" diff --git a/pywikibot/families/gentoo_family.py b/pywikibot/families/gentoo_family.py deleted file mode 100644 index 1d8e63b..0000000 --- a/pywikibot/families/gentoo_family.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- - -from pywikibot import family - -__version__ = '$Id$' - - -# An inofficial Gentoo wiki project. -# Ask for permission at http://gentoo-wiki.com/Help:Bots before running a bot. -# Be very careful, and set a long throttle: "until we see it is good one edit -# ever minute and one page fetch every 30 seconds, maybe a *bit* faster later". -class Family(family.Family): - - def __init__(self): - family.Family.__init__(self) - self.name = 'gentoo' - - self.languages_by_size = [ - 'en', 'ru', 'de', 'fr', 'tr', 'es', 'scratch', 'cs', 'nl', 'fi', - ] - for l in self.languages_by_size: - self.langs[l] = '%s.gentoo-wiki.com' % l - - self.known_families.pop('gentoo-wiki') - - def version(self, code): - return "1.16alpha" diff --git a/pywikibot/families/omegawiki_family.py b/pywikibot/families/omegawiki_family.py index f2ae535..74e6cfd 100644 --- a/pywikibot/families/omegawiki_family.py +++ b/pywikibot/families/omegawiki_family.py @@ -22,7 +22,7 @@ return 'www.omegawiki.org'
def version(self, code): - return "1.16alpha" + return "1.22.6"
def scriptpath(self, code): return '' diff --git a/pywikibot/families/osm_family.py b/pywikibot/families/osm_family.py index 3a7ccbe..8da9070 100644 --- a/pywikibot/families/osm_family.py +++ b/pywikibot/families/osm_family.py @@ -16,4 +16,4 @@ }
def version(self, code): - return "1.16.2" + return "1.22.7" diff --git a/pywikibot/families/outreach_family.py b/pywikibot/families/outreach_family.py new file mode 100644 index 0000000..900e785 --- /dev/null +++ b/pywikibot/families/outreach_family.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +__version__ = '$Id$' + +from pywikibot import family + + +# Outreach wiki custom family +class Family(family.WikimediaFamily): + def __init__(self): + super(Family, self).__init__() + self.name = u'outreach' + self.langs = { + 'outreach': 'outreach.wikimedia.org', + } + self.interwiki_forward = 'wikipedia' + + def version(self, code): + return "1.24wmf6" diff --git a/pywikibot/families/southernapproach_family.py b/pywikibot/families/southernapproach_family.py deleted file mode 100644 index 33b218d..0000000 --- a/pywikibot/families/southernapproach_family.py +++ /dev/null @@ -1,17 +0,0 @@ -# -*- coding: utf-8 -*- -__version__ = '$Id$' - -from pywikibot import family - - -# ZRHwiki, formerly known as SouthernApproachWiki, a wiki about Zürich Airport. -class Family(family.Family): - def __init__(self): - family.Family.__init__(self) - self.name = 'southernapproach' - self.langs = { - 'de': 'www.zrhwiki.ch', - } - - def version(self, code): - return "1.17alpha" diff --git a/pywikibot/family.py b/pywikibot/family.py index b1dba43..75ed448 100644 --- a/pywikibot/family.py +++ b/pywikibot/family.py @@ -964,7 +964,7 @@
""" # Here we return the latest mw release for downloading - return '1.20wmf2' + return '1.24wmf7'
@pywikibot.deprecated("version()") def versionnumber(self, code):
pywikibot-commits@lists.wikimedia.org