jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/620519 )

Change subject: Add wikispore family
......................................................................

Add wikispore family

Bug: T260049
Change-Id: Ie2bfbd9fd98767596d0446fc298de707bb6822a6
---
M ROADMAP.rst
M pywikibot/__metadata__.py
A pywikibot/families/wikispore_family.py
M pywikibot/family.py
4 files changed, 42 insertions(+), 15 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ROADMAP.rst b/ROADMAP.rst
index 54009c0..bdd50c8 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,7 +1,7 @@
 Current release changes
 ~~~~~~~~~~~~~~~~~~~~~~~

-*  (no changes yet)
+* Add wikispore family (T260049)


 Future release notes
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 6f46563..1d9d3b0 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -6,7 +6,7 @@
 # Distributed under the terms of the MIT license.
 #
 __name__ = 'pywikibot'
-__version__ = '4.1.2.dev0'
+__version__ = '4.2.0.dev0'
 __description__ = 'Python MediaWiki Bot Framework'
 __maintainer__ = 'The Pywikibot team'
 __maintainer_email__ = '[email protected]'
diff --git a/pywikibot/families/wikispore_family.py 
b/pywikibot/families/wikispore_family.py
new file mode 100644
index 0000000..f395cb7
--- /dev/null
+++ b/pywikibot/families/wikispore_family.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+"""Family module for Wikispore."""
+#
+# (C) Pywikibot team, 2020
+#
+# Distributed under the terms of the MIT license.
+#
+from pywikibot import family
+from pywikibot.tools import deprecated
+
+
+class Family(family.Family):  # noqa: D101
+
+    """Family class for Wikispore."""
+
+    name = 'wikispore'
+    langs = {
+        'en': 'wikispore.wmflabs.org',
+        'test': 'wikispore-test.wmflabs.org',
+    }
+
+    @deprecated('APISite.version()', since='20141225')
+    def version(self, code):
+        return '1.36.0-alpha'
+
+    def protocol(self, code):
+        return 'https'
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 02b6af0..909c5bb 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -410,19 +410,19 @@
         'wikiconference', 'wikidata', 'wikif1', 'wikifur', 'wikihow',
         'wikiindex', 'wikilemon', 'wikilivres', 'wikimac-de', 'wikimedia',
         'wikinews', 'wikinfo', 'wikinvest', 'wikipapers', 'wikipedia',
-        'wikiquote', 'wikisource', 'wikispecies', 'wikispot', 'labsconsole',
-        'wikiti', 'wikiversity', 'wikivoyage', 'wikiwikiweb', 'wiktionary',
-        'wipipedia', 'wlug', 'wmam', 'wmar', 'wmat', 'wmau', 'wmbd', 'wmbe',
-        'wmbr', 'wmca', 'wmch', 'wmcl', 'wmcn', 'wmco', 'wmcz', 'wmdc',
-        'securewikidc', 'wmdk', 'wmee', 'wmec', 'wmes', 'wmet', 'wmfdashboard',
-        'wmfi', 'wmfr', 'wmhi', 'wmhk', 'wmid', 'wmil', 'wmin', 'wmit', 'wmke',
-        'wmmk', 'wmmx', 'wmnl', 'wmnyc', 'wmno', 'wmpa-us', 'wmph', 'wmpl',
-        'wmpt', 'wmpunjabi', 'wmromd', 'wmrs', 'wmru', 'wmse', 'wmsk', 'wmtr',
-        'wmtw', 'wmua', 'wmuk', 'wmve', 'wmza', 'wm2005', 'wm2006', 'wm2007',
-        'wm2008', 'wm2009', 'wm2010', 'wm2011', 'wm2012', 'wm2013', 'wm2014',
-        'wm2015', 'wm2016', 'wm2017', 'wm2018', 'wikimania', 'wmteam', 'wmf',
-        'wookieepedia', 'wowwiki', 'wqy', 'wurmpedia', 'viaf', 'zrhwiki',
-        'zum', 'zwiki',
+        'wikiquote', 'wikisource', 'wikispecies', 'wikispore', 'wikispot',
+        'labsconsole', 'wikiti', 'wikiversity', 'wikivoyage', 'wikiwikiweb',
+        'wiktionary', 'wipipedia', 'wlug', 'wmam', 'wmar', 'wmat', 'wmau',
+        'wmbd', 'wmbe', 'wmbr', 'wmca', 'wmch', 'wmcl', 'wmcn', 'wmco', 'wmcz',
+        'wmdc', 'securewikidc', 'wmdk', 'wmee', 'wmec', 'wmes', 'wmet',
+        'wmfdashboard', 'wmfi', 'wmfr', 'wmhi', 'wmhk', 'wmid', 'wmil', 'wmin',
+        'wmit', 'wmke', 'wmmk', 'wmmx', 'wmnl', 'wmnyc', 'wmno', 'wmpa-us',
+        'wmph', 'wmpl', 'wmpt', 'wmpunjabi', 'wmromd', 'wmrs', 'wmru', 'wmse',
+        'wmsk', 'wmtr', 'wmtw', 'wmua', 'wmuk', 'wmve', 'wmza', 'wm2005',
+        'wm2006', 'wm2007', 'wm2008', 'wm2009', 'wm2010', 'wm2011', 'wm2012',
+        'wm2013', 'wm2014', 'wm2015', 'wm2016', 'wm2017', 'wm2018',
+        'wikimania', 'wmteam', 'wmf', 'wookieepedia', 'wowwiki', 'wqy',
+        'wurmpedia', 'viaf', 'zrhwiki', 'zum', 'zwiki',
     )}

     known_families.update({

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/620519
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie2bfbd9fd98767596d0446fc298de707bb6822a6
Gerrit-Change-Number: 620519
Gerrit-PatchSet: 14
Gerrit-Owner: GergÅ‘ Tisza <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Isaacandy <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to