Skip to content
Permalink
Browse files

Without .gitignore to get the framework missing binaries

  • Loading branch information...
JackPotte committed Jun 30, 2017
1 parent 6545349 commit fd3c0ded98cba00d1cdba1730c75b8cbb5edcf89
Showing with 1,955 additions and 0 deletions.
  1. +2 −0 core/pywikibot/families/__init__.py
  2. +86 −0 core/pywikibot/families/anarchopedia_family.py
  3. +25 −0 core/pywikibot/families/battlestarwiki_family.py
  4. +42 −0 core/pywikibot/families/commons_family.py
  5. +25 −0 core/pywikibot/families/i18n_family.py
  6. +20 −0 core/pywikibot/families/incubator_family.py
  7. +25 −0 core/pywikibot/families/lyricwiki_family.py
  8. +21 −0 core/pywikibot/families/mediawiki_family.py
  9. +38 −0 core/pywikibot/families/meta_family.py
  10. +42 −0 core/pywikibot/families/omegawiki_family.py
  11. +26 −0 core/pywikibot/families/osm_family.py
  12. +26 −0 core/pywikibot/families/outreach_family.py
  13. +26 −0 core/pywikibot/families/species_family.py
  14. +30 −0 core/pywikibot/families/strategy_family.py
  15. +22 −0 core/pywikibot/families/test_family.py
  16. +33 −0 core/pywikibot/families/vikidia_family.py
  17. +32 −0 core/pywikibot/families/wikia_family.py
  18. +64 −0 core/pywikibot/families/wikibooks_family.py
  19. +104 −0 core/pywikibot/families/wikidata_family.py
  20. +32 −0 core/pywikibot/families/wikimediachapter_family.py
  21. +47 −0 core/pywikibot/families/wikinews_family.py
  22. +220 −0 core/pywikibot/families/wikipedia_family.py
  23. +80 −0 core/pywikibot/families/wikiquote_family.py
  24. +118 −0 core/pywikibot/families/wikisource_family.py
  25. +25 −0 core/pywikibot/families/wikitech_family.py
  26. +34 −0 core/pywikibot/families/wikiversity_family.py
  27. +36 −0 core/pywikibot/families/wikivoyage_family.py
  28. +128 −0 core/pywikibot/families/wiktionary_family.py
  29. +54 −0 core/pywikibot/families/wowwiki_family.py
  30. +1 −0 core/scripts/i18n
  31. +2 −0 core/tests/i18n/__init__.py
  32. +10 −0 core/tests/i18n/pywikibot.py
  33. +4 −0 core/tests/i18n/test/de.json
  34. +6 −0 core/tests/i18n/test/en.json
  35. +3 −0 core/tests/i18n/test/fr.json
  36. +3 −0 core/tests/i18n/test/fy.json
  37. +3 −0 core/tests/i18n/test/ja.json
  38. +5 −0 core/tests/i18n/test/nl.json
  39. +437 −0 core/user-config.py
  40. +5 −0 nbproject/project.properties
  41. +13 −0 nbproject/project.xml
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
"""Families package."""
@@ -0,0 +1,86 @@
# -*- coding: utf-8 -*-
"""Family module for Anarchopedia wiki."""
#
# (C) Pywikibot team, 2006-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: acdf1ce1983f17eb0fdff98f7d870994140b0d45 $'

from pywikibot import family


# The Anarchopedia family
class Family(family.SubdomainFamily):

"""Family class for Anarchopedia wiki."""

name = 'anarchopedia'
domain = 'anarchopedia.org'

interwiki_replacements = {
# ISO 639-2 -> ISO 639-1 mappings
'ara': 'ar',
'chi': 'zh',
'dan': 'da',
'deu': 'de',
'dut': 'nl',
'ell': 'el',
'eng': 'en',
'epo': 'eo',
'fas': 'fa',
'fin': 'fi',
'fra': 'fr',
'ger': 'de',
'gre': 'el',
'heb': 'he',
'hye': 'hy',
'ind': 'id',
'ita': 'it',
'jpn': 'ja',
'kor': 'ko',
'lav': 'lv',
'lit': 'lt',
'nno': 'no',
'nob': 'no',
'nor': 'no',
'pol': 'pl',
'por': 'pt',
'rum': 'ro',
'rus': 'ru',
'spa': 'es',
'srp': 'sr',
'sqi': 'sq',
'swe': 'sv',
'tur': 'tr',
'zho': 'zh',

# ISO 639-1 -> ISO 639-1 mappings
'bs': 'hr',

# Non-compliant mappings
'bos': 'hr',
'nsh': 'hr',
}

def __init__(self):
"""Constructor."""
self.languages_by_size = [
'ar', 'en', 'de', 'nl', 'el', 'it', 'fa', 'fi', 'fr', 'he', 'es',
'hy', 'id', 'meta', 'ja', 'ko', 'lv', 'lt', 'no', 'hr', 'pl', 'pt',
'ro', 'ru', 'hrv', 'sq', 'sr', 'sv', 'tr', 'zh', 'eo', 'da',
]

super(Family, self).__init__()

self.nocapitalize = list(self.langs.keys())

def force_version(self, code):
"""Return the version for this family."""
return '1.14'

def scriptpath(self, code):
"""Return the script path for this family."""
return ''
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
"""Family module for Battlestar Wiki."""
#
# (C) Pywikibot team, 2007-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 1a12f7926bce8844b2c080ad4f2c5bc33c1ae121 $'

from pywikibot import family


# The Battlestar Wiki family, a set of Battlestar wikis.
class Family(family.SubdomainFamily):

"""Family class for Battlestar Wiki."""

name = 'battlestarwiki'
domain = 'battlestarwiki.org'

codes = ['en', 'de']

interwiki_removals = ['fr', 'zh', 'es', 'ms', 'tr', 'simple']
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
"""Family module for Wikimedia Commons."""
#
# (C) Pywikibot team, 2005-2017
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 7cd505d495f65dac68025dc8d187d145021b0369 $'

from pywikibot import family


# The Wikimedia Commons family
class Family(family.WikimediaOrgFamily):

"""Family class for Wikimedia Commons."""

name = 'commons'

def __init__(self):
"""Constructor."""
super(Family, self).__init__()

self.interwiki_forward = 'wikipedia'

# Templates that indicate a category redirect
# Redirects to these templates are automatically included
self.category_redirect_templates = {
'commons': (
u'Category redirect',
u'Synonym taxon category redirect',
u'Invalid taxon category redirect',
u'Monotypic taxon category redirect',
),
}

# Subpages for documentation.
self.doc_subpages = {
'_default': ((u'/doc', ), ['commons']),
}
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
"""Family module for Translate Wiki."""
#
# (C) Pywikibot team, 2007-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 0e205cd0a56fa8ee0ed00102ed444a4dde9701f0 $'

from pywikibot import family


# The Wikimedia i18n family
class Family(family.SingleSiteFamily):

"""Family class for Translate Wiki."""

name = 'i18n'
domain = 'translatewiki.net'

def protocol(self, code):
"""Return https as the protocol for this family."""
return "https"
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
"""Family module for Incubator Wiki."""
#
# (C) Pywikibot team, 2006-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 266d5e7b7e225427f229267a811c7e883cae8e05 $'

from pywikibot import family


# The Wikimedia Incubator family
class Family(family.WikimediaOrgFamily):

"""Family class for Incubator Wiki."""

name = 'incubator'
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
"""Family module for LyricWiki."""
#
# (C) Pywikibot team, 2007-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: c4dc48ed9b6c45a6b3dd004fc987a37bbc94d392 $'

from pywikibot import family


# The LyricWiki family

# user_config.py:
# usernames['lyricwiki']['en'] = 'user'
class Family(family.SingleSiteFamily, family.WikiaFamily):

"""Family class for LyricWiki."""

name = 'lyricwiki'
code = 'en'
domain = 'lyrics.wikia.com'
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
"""Family module for MediaWiki wiki."""
#
# (C) Pywikibot team, 2006-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 5fd30f497c158166479ff15ef56e636e9053b2ec $'

from pywikibot import family


# The MediaWiki family
class Family(family.WikimediaFamily, family.SingleSiteFamily):

"""Family module for MediaWiki wiki."""

name = 'mediawiki'
domain = 'www.mediawiki.org'
@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
"""Family module for Meta Wiki."""
#
# (C) Pywikibot team, 2005-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 6654b2d10b1ffbe1f5ff27bd0b2dd3f717e697c9 $'

from pywikibot import family


# The meta wikimedia family
class Family(family.WikimediaOrgFamily):

"""Family class for Meta Wiki."""

name = 'meta'

def __init__(self):
"""Constructor."""
super(Family, self).__init__()

self.interwiki_forward = 'wikipedia'
self.cross_allowed = ['meta', ]

self.category_redirect_templates = {
'meta': (
'Category redirect',
),
}

# Subpages for documentation.
self.doc_subpages = {
'_default': (('/doc',), ['meta']),
}
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
"""Family module for Omega Wiki."""
#
# (C) Pywikibot team, 2006-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 534b6458da1300c18f7eb090961d21bbe17f1895 $'

from pywikibot import family


# Omegawiki, the Ultimate online dictionary
class Family(family.SingleSiteFamily):

"""Family class for Omega Wiki."""

name = 'omegawiki'
domain = 'www.omegawiki.org'

def __init__(self):
"""Constructor."""
super(Family, self).__init__()

# On most Wikipedias page names must start with a capital letter, but some
# languages don't use this.

self.nocapitalize = list(self.langs.keys())

def scriptpath(self, code):
"""Return the script path for this family."""
return ''

def protocol(self, code):
"""Return https as the protocol for this family."""
return "https"

def ignore_certificate_error(self, code):
"""Ignore certificate errors."""
return True # has an expired certificate.
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
"""Family module for OpenStreetMap wiki."""
#
# (C) Pywikibot team, 2009-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: b0255b9e9d3079ead4bd5554069fda0ca6536106 $'

from pywikibot import family


# The project wiki of OpenStreetMap (OSM).
class Family(family.SingleSiteFamily):

"""Family class for OpenStreetMap wiki."""

name = 'osm'
domain = 'wiki.openstreetmap.org'
code = 'en'

def protocol(self, code):
"""Return https as the protocol for this family."""
return "https"
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
"""Family module for Wikimedia outreach wiki."""
#
# (C) Pywikibot team, 2014-2015
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id: 5afe6e5037a035351d0fe4fe23c89a2a939d850a $'

from pywikibot import family


# Outreach wiki custom family
class Family(family.WikimediaOrgFamily):

"""Family class for Wikimedia outreach wiki."""

name = 'outreach'

def __init__(self):
"""Constructor."""
super(Family, self).__init__()

self.interwiki_forward = 'wikipedia'

0 comments on commit fd3c0de

Please sign in to comment.
You can’t perform that action at this time.