jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/950137 )
Change subject: [8.3.1] Update family files
......................................................................
[8.3.1] Update family files
- add wikifunctions_family file
- add support for suwikisource and blkwiktionary
- update sphinx/furo
Change-Id: I9b6c9e5326431d85ca8e0de2a6d2a210353213ca
---
M pywikibot/families/wikisource_family.py
M ROADMAP.rst
M docs/conf.py
M pywikibot/family.py
M docs/api_ref/pywikibot.families.rst
M pywikibot/__metadata__.py
A pywikibot/families/wikifunctions_family.py
M docs/requirements.txt
M HISTORY.rst
M pywikibot/families/wikiversity_family.py
M pywikibot/families/wikiquote_family.py
M pywikibot/families/wiktionary_family.py
M pywikibot/families/wikipedia_family.py
13 files changed, 95 insertions(+), 50 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index 6dd9ca5..831d538 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,17 @@
Release history
===============
+8.3.0
+-----
+*27 July 2023*
+
+* Add support for btmwiktionary (:phab:`T336117`)
+* Add 'yue'/'zh-yue' code_aliases to family files (:phab:`T341960`)
+* All wbtypes are placed in ``pywkibot._wbtypes`` module
+* Use ``site.lang`` instead of ``site.code`` in :func:`comms.http.user_agent`
(:phab:`T228322`)
+* Make header extraction in :func:`textlib.extract_sections` more robust
(:phab:`T341787`)
+*
+
8.2.0
-----
*05 July 2023*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index a1acaa7..12fb9ad 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,11 +1,9 @@
Current release
---------------
-* Add support for btmwiktionary (:phab:`T336117`)
-* Add 'yue'/'zh-yue' code_aliases to family files (:phab:`T341960`)
-* All wbtypes are placed in ``pywkibot._wbtypes`` module
-* Use ``site.lang`` instead of ``site.code`` in :func:`comms.http.user_agent`
(:phab:`T228322`)
-* Make header extraction in :func:`textlib.extract_sections` more robust
(:phab:`T341787`)
+* Add support for suwikisource and blkwiktionary (:phab:`T343544`, :phab:`T343550`)
+* :mod:`families.wikifunctions_family` was added (:phab:`T343573`)
+* i18n updates
Deprecations
diff --git a/docs/api_ref/pywikibot.families.rst b/docs/api_ref/pywikibot.families.rst
index 183ea6d..5dcafe4 100644
--- a/docs/api_ref/pywikibot.families.rst
+++ b/docs/api_ref/pywikibot.families.rst
@@ -83,6 +83,12 @@
.. automodule:: families.wikidata_family
:synopsis: Family module for Wikidata
+:mod:`families.wikifunctions\_family` --- Wikifunctions
+=======================================================
+
+.. automodule:: families.wikifunctions_family
+ :synopsis: Family module for Wikifunctions
+
:mod:`families.wikihow\_family` --- Wikihow
===========================================
diff --git a/docs/conf.py b/docs/conf.py
index e29746b..f8edf4d 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -43,7 +43,7 @@
# If your documentation needs a minimal Sphinx version, state it here.
#
-needs_sphinx = '6.2.1'
+needs_sphinx = '7.1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -53,9 +53,7 @@
'sphinx.ext.autosectionlabel',
'sphinx.ext.autosummary',
'sphinx.ext.extlinks',
- # 'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
- 'sphinx.ext.todo',
'sphinx.ext.viewcode',
'sphinxext.opengraph',
]
@@ -142,7 +140,7 @@
# keep_warnings = False
# If true, `todo` and `todoList` produce output, else they produce nothing.
-todo_include_todos = True
+# todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
diff --git a/docs/requirements.txt b/docs/requirements.txt
index c16dfa7..593130e 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,6 +1,6 @@
# This is a PIP requirements file for building Sphinx documentation of pywikibot
# requirements.txt is also needed
-sphinx >= 6.2.1, < 7.0
+sphinx >= 7.1.0
rstcheck >=6.1.2
sphinxext-opengraph >= 0.8.1
-furo >= 2023.3.27
+furo >= 2023.7.26
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 6d7d27f..3b0d4d8 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -11,7 +11,7 @@
__name__ = 'pywikibot'
-__version__ = '8.3.0'
+__version__ = '8.3.1'
__description__ = 'Python MediaWiki Bot Framework'
__maintainer__ = 'The Pywikibot team'
__maintainer_email__ = 'pywikibot(a)lists.wikimedia.org'
diff --git a/pywikibot/families/wikifunctions_family.py
b/pywikibot/families/wikifunctions_family.py
new file mode 100644
index 0000000..0810392
--- /dev/null
+++ b/pywikibot/families/wikifunctions_family.py
@@ -0,0 +1,18 @@
+"""Family module for Wikifunction.
+
+.. versionadded:: 8.4
+"""
+#
+# (C) Pywikibot team, 2023
+#
+# Distributed under the terms of the MIT license.
+#
+from pywikibot import family
+
+
+class Family(family.SingleSiteFamily, family.WikimediaFamily):
+
+ """Family class for Wikifunctions."""
+
+ name = 'wikifunctions'
+ domain = 'www.wikifunctions.org'
diff --git a/pywikibot/families/wikipedia_family.py
b/pywikibot/families/wikipedia_family.py
index 35be345..68d4f72 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -30,32 +30,32 @@
'ja', 'zh', 'vi', 'uk', 'war',
'ar', 'pt', 'fa', 'ca', 'sr', 'id',
'ko', 'no', 'ce', 'fi', 'cs',
'tr', 'hu', 'tt', 'sh', 'ro',
'zh-min-nan', 'eu', 'ms', 'eo', 'he',
'hy', 'da', 'bg', 'cy', 'sk',
- 'azb', 'uz', 'et', 'simple', 'kk',
'be', 'min', 'el', 'hr', 'lt', 'gl',
+ 'azb', 'uz', 'et', 'simple', 'be',
'kk', 'min', 'el', 'hr', 'lt', 'gl',
'az', 'ur', 'sl', 'lld', 'ka',
'nn', 'hi', 'th', 'ta', 'bn', 'la',
- 'mk', 'zh-yue', 'ast', 'lv', 'tg',
'af', 'my', 'mg', 'mr', 'sq', 'bs',
- 'oc', 'te', 'nds', 'ml', 'be-tarask',
'br', 'ky', 'sw', 'jv', 'new',
- 'lmo', 'pnb', 'vec', 'ht', 'pms',
'ba', 'lb', 'su', 'ku', 'ga', 'szl',
+ 'mk', 'zh-yue', 'ast', 'lv', 'af',
'tg', 'my', 'mg', 'mr', 'sq', 'bs',
+ 'oc', 'te', 'ml', 'nds', 'be-tarask',
'br', 'ky', 'sw', 'jv', 'lmo',
+ 'new', 'pnb', 'vec', 'ht', 'pms',
'ba', 'lb', 'su', 'ku', 'ga', 'szl',
'is', 'fy', 'cv', 'ckb', 'pa',
'tl', 'an', 'wuu', 'diq', 'io', 'sco',
- 'vo', 'yo', 'ne', 'ia', 'gu',
'kn', 'als', 'ha', 'avk', 'bar', 'scn',
- 'crh', 'bpy', 'qu', 'nv', 'mn',
'xmf', 'ban', 'si', 'tum', 'ps', 'frr',
- 'os', 'bat-smg', 'or', 'sah', 'ig',
'mzn', 'cdo', 'gd', 'bug', 'yi',
+ 'vo', 'yo', 'ne', 'ia', 'kn',
'gu', 'als', 'ha', 'avk', 'bar', 'crh',
+ 'scn', 'bpy', 'qu', 'nv', 'mn',
'xmf', 'ban', 'si', 'tum', 'ps', 'frr',
+ 'os', 'mzn', 'bat-smg', 'or', 'ig',
'sah', 'cdo', 'gd', 'bug', 'yi',
'sd', 'ilo', 'am', 'nap', 'li',
'bcl', 'fo', 'gor', 'hsb', 'map-bms',
'mai', 'shn', 'eml', 'ace',
'zh-classical', 'sa', 'as', 'wa', 'ie',
- 'lij', 'hyw', 'mhr', 'zu', 'sn',
'hif', 'mrj', 'bjn', 'mni', 'km',
- 'hak', 'roa-tara', 'pam', 'rue', 'sat',
'nso', 'bh', 'so', 'se', 'mi',
- 'myv', 'vls', 'nds-nl', 'sc', 'dag',
'kw', 'bo', 'vep', 'co', 'ary',
+ 'hyw', 'lij', 'mhr', 'zu', 'sn',
'hif', 'mrj', 'bjn', 'mni', 'km',
+ 'hak', 'roa-tara', 'pam', 'sat', 'rue',
'nso', 'bh', 'so', 'mi', 'se',
+ 'myv', 'vls', 'nds-nl', 'dag', 'sc',
'ary', 'co', 'kw', 'bo', 'vep',
'glk', 'tk', 'kab', 'gan', 'rw',
'fiu-vro', 'ab', 'gv', 'ug', 'nah',
- 'zea', 'skr', 'frp', 'udm', 'pcd',
'kv', 'mt', 'csb', 'gn', 'smn',
+ 'zea', 'skr', 'frp', 'udm', 'pcd',
'mt', 'kv', 'csb', 'gn', 'smn',
'ay', 'nrm', 'ks', 'lez', 'lfn',
'olo', 'mwl', 'stq', 'lo', 'ang',
- 'fur', 'rm', 'mdf', 'lad', 'gom',
'ext', 'kaa', 'tyv', 'koi', 'av',
- 'pap', 'dsb', 'ln', 'dty', 'tw',
'cbk-zam', 'dv', 'ksh', 'za', 'gag',
+ 'mdf', 'fur', 'rm', 'lad', 'kaa',
'gom', 'ext', 'koi', 'tyv', 'pap',
+ 'av', 'dsb', 'ln', 'dty', 'tw',
'cbk-zam', 'dv', 'ksh', 'za', 'gag',
'bxr', 'pfl', 'lg', 'szy', 'pag',
'blk', 'pi', 'tay', 'haw', 'awa',
'inh', 'krc', 'xal', 'pdc', 'to',
'atj', 'tcy', 'arc', 'mnw', 'jam',
- 'kbp', 'wo', 'kbd', 'anp', 'nia',
'nov', 'shi', 'ki', 'nqo', 'bi',
- 'om', 'tpi', 'xh', 'tet', 'roa-rup',
'jbo', 'fj', 'lbe', 'kg', 'ff',
- 'ty', 'guw', 'cu', 'trv', 'ami',
'srn', 'sm', 'mad', 'alt', 'gcr',
- 'ltg', 'chr', 'tn', 'ny', 'st',
'pih', 'rmy', 'got', 'ee', 'pcm', 'bm',
- 'ss', 'gpe', 've', 'ts', 'chy',
'kcg', 'rn', 'gur', 'ch', 'ik', 'ady',
+ 'shi', 'kbp', 'wo', 'anp', 'kbd',
'nia', 'nov', 'om', 'ki', 'nqo',
+ 'bi', 'xh', 'tpi', 'tet', 'ff',
'roa-rup', 'jbo', 'fj', 'kg', 'lbe',
+ 'ty', 'guw', 'cu', 'trv', 'ami',
'srn', 'sm', 'mad', 'alt', 'ltg',
+ 'gcr', 'chr', 'tn', 'ny', 'st',
'pih', 'rmy', 'got', 'ee', 'pcm', 'bm',
+ 'ss', 'gpe', 'ts', 've', 'kcg',
'chy', 'rn', 'ch', 'gur', 'ik', 'ady',
'fat', 'pnt', 'guc', 'iu', 'pwn',
'sg', 'din', 'ti', 'kl', 'dz', 'cr',
]
diff --git a/pywikibot/families/wikiquote_family.py
b/pywikibot/families/wikiquote_family.py
index 4aec2e9..2858fa8 100644
--- a/pywikibot/families/wikiquote_family.py
+++ b/pywikibot/families/wikiquote_family.py
@@ -32,7 +32,7 @@
'ar', 'su', 'id', 'bg', 'hy',
'hr', 'el', 'nn', 'sv', 'li', 'hu',
'ko',
'nl', 'sah', 'ja', 'la', 'ta',
'hi', 'ig', 'gl', 'gu', 'ur', 'as',
'guw', 'be', 'te', 'vi', 'tl',
'bn', 'cy', 'no', 'sq', 'ml', 'kn',
- 'ro', 'eu', 'ku', 'uz', 'ka',
'da', 'sa', 'is', 'bcl', 'th', 'br',
+ 'eu', 'ro', 'ku', 'uz', 'ka',
'da', 'sa', 'is', 'bcl', 'th', 'br',
'mr', 'af', 'ky',
]
diff --git a/pywikibot/families/wikisource_family.py
b/pywikibot/families/wikisource_family.py
index 278879c..a246e23 100644
--- a/pywikibot/families/wikisource_family.py
+++ b/pywikibot/families/wikisource_family.py
@@ -27,11 +27,11 @@
languages_by_size = [
'pl', 'en', 'ru', 'de', 'fr',
'zh', 'he', 'it', 'uk', 'ar', 'es',
'mul', 'gu', 'cs', 'sr', 'pt',
'bn', 'fa', 'sv', 'ko', 'hu', 'ta',
- 'ml', 'sa', 'te', 'sl', 'tr',
'vi', 'la', 'hy', 'be', 'el', 'ja',
'nl',
+ 'ml', 'sa', 'te', 'tr', 'sl',
'vi', 'la', 'hy', 'be', 'el', 'ja',
'nl',
'ro', 'fi', 'nap', 'az', 'ca',
'hr', 'br', 'kn', 'no', 'id', 'th',
- 'hi', 'eo', 'is', 'cy', 'vec',
'mr', 'ban', 'pms', 'lij', 'da', 'et',
+ 'hi', 'eo', 'is', 'cy', 'vec',
'mr', 'pms', 'ban', 'lij', 'da', 'et',
'as', 'mk', 'yi', 'bg', 'jv',
'wa', 'li', 'lt', 'pa', 'or', 'eu',
'gl',
- 'bs', 'sah', 'sk', 'zh-min-nan', 'fo',
+ 'bs', 'sah', 'sk', 'zh-min-nan', 'fo',
'su',
]
# Sites we want to edit but not count as real languages
diff --git a/pywikibot/families/wikiversity_family.py
b/pywikibot/families/wikiversity_family.py
index 52c856f..21e8b18 100644
--- a/pywikibot/families/wikiversity_family.py
+++ b/pywikibot/families/wikiversity_family.py
@@ -16,7 +16,7 @@
name = 'wikiversity'
languages_by_size = [
- 'de', 'en', 'fr', 'zh', 'it',
'ru', 'cs', 'pt', 'es', 'sl', 'ar',
'sv',
+ 'de', 'en', 'fr', 'zh', 'it',
'cs', 'ru', 'pt', 'es', 'sl', 'ar',
'sv',
'fi', 'el', 'hi', 'ko', 'ja',
]
diff --git a/pywikibot/families/wiktionary_family.py
b/pywikibot/families/wiktionary_family.py
index 4579347..1fced79 100644
--- a/pywikibot/families/wiktionary_family.py
+++ b/pywikibot/families/wiktionary_family.py
@@ -35,19 +35,19 @@
'en', 'fr', 'mg', 'zh', 'ru',
'de', 'es', 'sh', 'sv', 'nl', 'el',
'pl',
'ku', 'lt', 'ca', 'it', 'hu',
'fi', 'ta', 'pt', 'tr', 'ja', 'io',
'hy',
'ko', 'kn', 'vi', 'sr', 'th',
'hi', 'ro', 'id', 'no', 'et', 'skr',
- 'cs', 'ml', 'my', 'uz', 'li',
'eo', 'or', 'te', 'fa', 'gl', 'ar',
'oc',
- 'sg', 'jv', 'is', 'az', 'uk',
'eu', 'ast', 'br', 'mnw', 'da', 'bn',
- 'simple', 'lo', 'la', 'hr', 'shn',
'sk', 'fj', 'ky', 'wa', 'bg', 'ur',
- 'lmo', 'cy', 'ps', 'tg', 'he',
'kbd', 'vo', 'om', 'sl', 'af',
- 'zh-min-nan', 'scn', 'ms', 'tl', 'pa',
'fy', 'sw', 'ka', 'nn', 'kk',
- 'min', 'lv', 'gor', 'nds', 'sq',
'lb', 'co', 'bs', 'mn', 'pnb', 'nah',
- 'yue', 'ckb', 'sa', 'km', 'be',
'vec', 'diq', 'tk', 'nia', 'mk', 'sm',
- 'hsb', 'ks', 'shy', 'su', 'bcl',
'ga', 'gd', 'an', 'gom', 'mr', 'wo',
- 'mni', 'ia', 'bjn', 'ang', 'mt',
'sd', 'fo', 'tt', 'ha', 'so', 'gn',
- 'si', 'ie', 'mi', 'csb', 'ug',
'guw', 'st', 'hif', 'roa-rup', 'jbo',
- 'kl', 'zu', 'ay', 'ln', 'yi',
'gu', 'na', 'gv', 'kw', 'tpi', 'kcg',
- 'am', 'ne', 'rw', 'ts', 'ig',
'qu', 'ss', 'iu', 'chr', 'dv', 'ti',
- 'tn', 'btm',
+ 'cs', 'ml', 'my', 'uz', 'li',
'eo', 'or', 'te', 'fa', 'gl', 'sg',
'ar',
+ 'oc', 'jv', 'is', 'az', 'uk',
'eu', 'ast', 'br', 'mnw', 'da', 'simple',
+ 'bn', 'lo', 'la', 'shn', 'hr',
'sk', 'fj', 'ky', 'wa', 'bg', 'lmo',
+ 'ur', 'cy', 'ps', 'tg', 'he',
'kbd', 'vo', 'om', 'sl', 'af',
+ 'zh-min-nan', 'ms', 'scn', 'tl', 'pa',
'fy', 'sw', 'kk', 'ka', 'nn',
+ 'min', 'lv', 'gor', 'nds', 'sq',
'lb', 'bs', 'co', 'mn', 'pnb', 'nah',
+ 'yue', 'ckb', 'sa', 'km', 'be',
'vec', 'tk', 'diq', 'nia', 'mk', 'sm',
+ 'hsb', 'ks', 'shy', 'su', 'bcl',
'ga', 'btm', 'gd', 'an', 'gom', 'mr',
+ 'wo', 'mni', 'ia', 'bjn', 'ang',
'mt', 'sd', 'fo', 'tt', 'ha', 'so',
+ 'gn', 'si', 'ie', 'mi', 'csb',
'ug', 'guw', 'st', 'hif', 'jbo',
+ 'roa-rup', 'kl', 'zu', 'ay', 'ln',
'yi', 'gu', 'na', 'gv', 'kw', 'tpi',
+ 'kcg', 'am', 'ne', 'rw', 'ts',
'ig', 'qu', 'ss', 'iu', 'chr', 'dv',
+ 'ti', 'tn', 'blk',
]
category_redirect_templates = {
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 9660c83..198b649 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -871,9 +871,10 @@
]
other_content_families = [
- 'wikidata',
- 'mediawiki',
'lingualibre',
+ 'mediawiki',
+ 'wikidata',
+ 'wikifunctions',
]
content_families = set(
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/950137
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: stable
Gerrit-Change-Id: I9b6c9e5326431d85ca8e0de2a6d2a210353213ca
Gerrit-Change-Number: 950137
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged