jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/951057 )
Change subject: [doc] Update documentation for unidata.py script ......................................................................
[doc] Update documentation for unidata.py script
Change-Id: Ia39b20cfa7eb4d4884ff2a70e6b1596391109500 --- M scripts/maintenance/unidata.py M scripts/CHANGELOG.rst M scripts/README.rst M docs/scripts_ref/scripts.maintenance.rst M docs/scripts/maintenance.rst 5 files changed, 39 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/scripts/maintenance.rst b/docs/scripts/maintenance.rst index bc26c71..5cf355a 100644 --- a/docs/scripts/maintenance.rst +++ b/docs/scripts/maintenance.rst @@ -16,10 +16,23 @@ :no-members: :noindex:
+make_i18n_dict script +======================= + +.. automodule:: scripts.maintenance.make_i18n_dict + :no-members: + :noindex: + +unidata script +============== + +.. automodule:: scripts.maintenance.unidata + :no-members: + :noindex: + wikimedia_sites script =======================
.. automodule:: scripts.maintenance.wikimedia_sites :no-members: :noindex: - diff --git a/docs/scripts_ref/scripts.maintenance.rst b/docs/scripts_ref/scripts.maintenance.rst index ab32f10..54a0e2d 100644 --- a/docs/scripts_ref/scripts.maintenance.rst +++ b/docs/scripts_ref/scripts.maintenance.rst @@ -25,6 +25,11 @@
.. automodule:: scripts.maintenance.make_i18n_dict
+scripts.maintenance.unidata +--------------------------- + +.. automodule:: scripts.maintenance.unidata + scripts.maintenance.wikimedia_sites ------------------------------------
diff --git a/scripts/CHANGELOG.rst b/scripts/CHANGELOG.rst index 8f7b62d..7c38049 100644 --- a/scripts/CHANGELOG.rst +++ b/scripts/CHANGELOG.rst @@ -15,6 +15,12 @@
* Enable ``-touch`` in newitem script for confirmed user (:phab:`T343877`)
+maintenance +~~~~~~~~~~~ + +* new script unidata to update ``_first_upper_exception_dict`` of + :mod:`pywikibot.tools._unidata`. +
8.3.0 ----- diff --git a/scripts/README.rst b/scripts/README.rst index 562694b..68610ad 100644 --- a/scripts/README.rst +++ b/scripts/README.rst @@ -170,6 +170,8 @@ +------------------------+---------------------------------------------------------+ | make_i18n_dict.py | Generate an i18n file from a given script. | +------------------------+---------------------------------------------------------+ +| unidata.py | Updates _first_upper_exception_dict in tools.unidata | ++------------------------+---------------------------------------------------------+ | wikimedia_sites.py | Updates the language lists in Wikimedia family files. | +------------------------+---------------------------------------------------------+
diff --git a/scripts/maintenance/unidata.py b/scripts/maintenance/unidata.py index cf20dca..2d6b03a 100644 --- a/scripts/maintenance/unidata.py +++ b/scripts/maintenance/unidata.py @@ -1,12 +1,13 @@ #!/usr/bin/env python3 """Script to update :mod:`pywikibot.tools._unidata`.
-This script is for updating ``_first_upper_exception_dict``. Run this -module multiple times using different python versions. +This script is for updating ``_first_upper_exception_dict``.
.. note:: I seems that running under the latest version of Python gives a superse of the older version and should be enough. But this is not tested completely. + +.. versionadded:: 8.4 """ # # (C) Pywikibot team, 2018-2023
pywikibot-commits@lists.wikimedia.org