lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
July 2021
----- 2024 -----
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
1 participants
93 discussions
Start a n
N
ew thread
[Gerrit] ...core[master]: [tests] Remove PYWIKIBOT_NO_L10N_TESTS environment variable
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/704096
) Change subject: [tests] Remove PYWIKIBOT_NO_L10N_TESTS environment variable ...................................................................... [tests] Remove PYWIKIBOT_NO_L10N_TESTS environment variable l10n tests are exected by Jenkins for each patch submitted to pywikibot-i18n. pywikibot-core should not run this tests to decrease test time. For unittests l10n is excuded in tests.collector already because i18n is part of disabled_test_modules. Travis (as well as fasttests) may run pytest. Therefore add addopts command line to tox.ini to exclude the l10n tests with pytest. Finally we can remove PYWIKIBOT_NO_L10N_TESTS environment variable Change-Id: I8097a7b16c79ef6c0ba54c92890a2cc6beb43a15 --- M .appveyor.yml M .travis.yml M tests/l10n_tests.py M tox.ini 4 files changed, 1 insertion(+), 9 deletions(-) Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified diff --git a/.appveyor.yml b/.appveyor.yml index 0f9f65a..f5b9cfc 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,7 +9,6 @@ PYWIKIBOT_PASSWD_FILE: "%appdata%\\Pywikibot\\passwordfile" PYSETUP_TEST_EXTRAS: "1" - PYWIKIBOT_NO_L10N_TESTS: "1" PYWIKIBOT_TESTS_RUNNING: "1" matrix: diff --git a/.travis.yml b/.travis.yml index d072ed9..0eba46e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -118,7 +118,6 @@ env: global: - TEST_TIMEOUT=300 - - PYWIKIBOT_NO_L10N_TESTS=1 - PYWIKIBOT_TESTS_RUNNING=1 matrix: diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py index e3f2b4e..820f5d6 100644 --- a/tests/l10n_tests.py +++ b/tests/l10n_tests.py @@ -4,7 +4,6 @@ # # Distributed under the terms of the MIT license. # -import os import unittest from contextlib import suppress @@ -121,12 +120,6 @@ .format(key)) -def setUpModule(): # noqa: N802 - """Skip Travis tests if PYWIKIBOT_NO_L10N_TESTS variable is set.""" - if os.environ.get('PYWIKIBOT_NO_L10N_TESTS', '0') == '1': - raise unittest.SkipTest('L10N tests disabled.') - - if __name__ == '__main__': # pragma: no cover with suppress(SystemExit): unittest.main() diff --git a/tox.ini b/tox.ini index 76f2922..22fcbe1 100644 --- a/tox.ini +++ b/tox.ini @@ -230,5 +230,6 @@ minversion = 5.3 testpaths = tests python_files = *_tests.py +addopts = --ignore=tests/l10n_tests.py norecursedirs = archive filterwarnings = ignore::pytest.PytestDeprecationWarning -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/704096
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: I8097a7b16c79ef6c0ba54c92890a2cc6beb43a15 Gerrit-Change-Number: 704096 Gerrit-PatchSet: 2 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [doc] Cleanup badges
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703933
) Change subject: [doc] Cleanup badges ...................................................................... [doc] Cleanup badges - Travis is no longer available. Remove the badge. (T285032= - Remove weekly download badge, the monthly would be enough Bug: T285032 Change-Id: I456f854d3437b4ebf39c787e04c15ca954cf2596 --- M README.rst 1 file changed, 0 insertions(+), 6 deletions(-) Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified diff --git a/README.rst b/README.rst index c1ab3e4..4a02555 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,3 @@ -.. image::
https://api.travis-ci.com/wikimedia/pywikibot.svg?branch=master
- :alt: Travis Build Status - :target:
https://travis-ci.com/github/wikimedia/pywikibot
.. image::
https://ci.appveyor.com/api/projects/status/xo2g4ctoom8k6yvw/branch/master?…
:alt: AppVeyor Build Status :target:
https://ci.appveyor.com/project/ladsgroup/pywikibot-g4xqx
@@ -22,9 +19,6 @@ .. image::
https://static.pepy.tech/personalized-badge/pywikibot?period=month&units=in…
:alt: Monthly downloads :target:
https://pepy.tech/project/pywikibot
-.. image::
https://static.pepy.tech/personalized-badge/pywikibot?period=week&units=int…
- :alt: Weekly downloads - :target:
https://pepy.tech/project/pywikibot
Pywikibot ========= -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703933
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: I456f854d3437b4ebf39c787e04c15ca954cf2596 Gerrit-Change-Number: 703933 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...i18n[master]: Localisation updates from https://translatewiki.net.
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/704090
) Change subject: Localisation updates from
https://translatewiki.net
. ...................................................................... Localisation updates from
https://translatewiki.net
. Change-Id: I70b09dd8c24c8e4f945f144392a65d6ed8f736fc --- M undelete/nn.json 1 file changed, 2 insertions(+), 1 deletion(-) Approvals: L10n-bot: Looks good to me, approved jenkins-bot: Verified diff --git a/undelete/nn.json b/undelete/nn.json index 88e0115..0ee992c 100644 --- a/undelete/nn.json +++ b/undelete/nn.json @@ -2,10 +2,11 @@ "@metadata": { "authors": [ "Gaute", + "Ranveig", "Xqt" ] }, "undelete-from-file": "Robot: Atterreiser ei liste med sider", - "undelete-images": "Robot: Atterreiser alle bilder på sida %(page)s", + "undelete-images": "Robot: Gjenoppretter alle bilete på %(page)s", "undelete-linked-pages": "Robot: Atterreiser alle sider som er lenkja frå %(page)s" } -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/704090
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n Gerrit-Branch: master Gerrit-Change-Id: I70b09dd8c24c8e4f945f144392a65d6ed8f736fc Gerrit-Change-Number: 704090 Gerrit-PatchSet: 1 Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net> Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [tests] Don't use cffi 1.14.6 with appveyor tests with Python 3.5
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/704084
) Change subject: [tests] Don't use cffi 1.14.6 with appveyor tests with Python 3.5 ...................................................................... [tests] Don't use cffi 1.14.6 with appveyor tests with Python 3.5 Bug: T286457 Change-Id: I94c3a3fddc3d24362e21a298a70dadc32fe032d8 --- M dev-requirements.txt 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/dev-requirements.txt b/dev-requirements.txt index 9318088..e644ceb 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -2,7 +2,7 @@ # # cffi 1.14.6 fails (T286457) -cffi >= 1.0.0, != 1.4.6; python_version=="3.5" and platform_system=="Windows" +cffi >= 1.0.0, != 1.14.6; python_version=="3.5" and platform_system=="Windows" cffi >= 1.0.0; python_version!="3.5" or platform_system!="Windows" pytest >= 5.3 -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/704084
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: I94c3a3fddc3d24362e21a298a70dadc32fe032d8 Gerrit-Change-Number: 704084 Gerrit-PatchSet: 2 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [tests] Don't use cffi 1.14.6 with appveyor tests with Python 3.5
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/704078
) Change subject: [tests] Don't use cffi 1.14.6 with appveyor tests with Python 3.5 ...................................................................... [tests] Don't use cffi 1.14.6 with appveyor tests with Python 3.5 Bug: T286457 Change-Id: I4a2d8a86ea92bb671265802beda0120e072863f6 --- M dev-requirements.txt 1 file changed, 5 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/dev-requirements.txt b/dev-requirements.txt index a0c87ea..9318088 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,10 @@ # This is a PIP 6+ requirements file for development dependencies # + +# cffi 1.14.6 fails (T286457) +cffi >= 1.0.0, != 1.4.6; python_version=="3.5" and platform_system=="Windows" +cffi >= 1.0.0; python_version!="3.5" or platform_system!="Windows" + pytest >= 5.3 pytest-cov >= 2.6.1 pytest-timeout -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/704078
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: I4a2d8a86ea92bb671265802beda0120e072863f6 Gerrit-Change-Number: 704078 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [doc] Update ROADMAP.rst
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703931
) Change subject: [doc] Update ROADMAP.rst ...................................................................... [doc] Update ROADMAP.rst Change-Id: I6d7b8123bdf791908d3526fbba57c9a16c04c723 --- M ROADMAP.rst 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/ROADMAP.rst b/ROADMAP.rst index 29befb8..b47c094 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -1,6 +1,9 @@ Current release changes ^^^^^^^^^^^^^^^^^^^^^^^ +* Add support for Lingua Libre family (T286303) +* Catch invalid titles in Category.isCategoryRedirect() +* L10N updates * Provide structured data on Commons (T213904, T223820) -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703931
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: I6d7b8123bdf791908d3526fbba57c9a16c04c723 Gerrit-Change-Number: 703931 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [L10N] update languages_by_size
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703922
) Change subject: [L10N] update languages_by_size ...................................................................... [L10N] update languages_by_size Change-Id: I9519abf9176ec2c4593f2de7a8af04365b71e604 --- M pywikibot/families/wikibooks_family.py M pywikibot/families/wikipedia_family.py M pywikibot/families/wikisource_family.py M pywikibot/families/wiktionary_family.py 4 files changed, 20 insertions(+), 20 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/families/wikibooks_family.py b/pywikibot/families/wikibooks_family.py index 4fffa7a..d826bd7 100644 --- a/pywikibot/families/wikibooks_family.py +++ b/pywikibot/families/wikibooks_family.py @@ -31,7 +31,7 @@ languages_by_size = [ 'en', 'hu', 'de', 'fr', 'it', 'pt', 'ja', 'es', 'nl', 'pl', 'id', 'he', 'fi', 'zh', 'sq', 'az', 'fa', 'ru', 'vi', 'ca', 'eu', 'da', 'ko', 'ba', - 'sv', 'th', 'gl', 'cs', 'sr', 'uk', 'hi', 'hr', 'no', 'sa', 'tr', 'ar', + 'sv', 'th', 'gl', 'cs', 'sr', 'hi', 'uk', 'hr', 'no', 'sa', 'tr', 'ar', 'ta', 'eo', 'sk', 'is', 'ro', 'bn', 'si', 'ms', 'mk', 'bg', 'ka', 'tt', 'lt', 'el', 'li', 'sl', 'tl', 'ur', 'km', 'la', 'et', 'be', 'kk', 'ia', 'mr', 'ml', 'oc', 'hy', 'ne', 'cv', 'pa', 'tg', 'te', 'ku', 'fy', 'bs', diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index cfec49b..6f25c0b 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -41,22 +41,22 @@ 'bar', 'io', 'gu', 'als', 'kn', 'scn', 'bpy', 'ia', 'qu', 'mn', 'si', 'bat-smg', 'nv', 'xmf', 'or', 'cdo', 'ilo', 'gd', 'yi', 'am', 'avk', 'nap', 'sd', 'bug', 'hsb', 'mai', 'frr', 'fo', 'os', 'li', 'map-bms', - 'mzn', 'sah', 'eml', 'ps', 'ace', 'gor', 'sa', 'bcl', 'wa', 'crh', - 'zh-classical', 'lij', 'mrj', 'mhr', 'ha', 'hif', 'hak', 'roa-tara', + 'mzn', 'sah', 'eml', 'ps', 'ace', 'gor', 'sa', 'wa', 'bcl', 'crh', + 'zh-classical', 'lij', 'ha', 'mrj', 'mhr', 'hif', 'hak', 'roa-tara', 'shn', 'hyw', 'pam', 'as', 'zu', 'nso', 'km', 'ban', 'ie', 'rue', 'se', 'bh', 'vls', 'nds-nl', 'mi', 'sn', 'sc', 'nah', 'vep', 'gan', 'myv', - 'glk', 'sat', 'kab', 'so', 'ab', 'bo', 'tk', 'co', 'fiu-vro', 'kv', + 'glk', 'sat', 'so', 'kab', 'bo', 'tk', 'co', 'ab', 'fiu-vro', 'kv', 'csb', 'pcd', 'frp', 'udm', 'ug', 'gv', 'ay', 'zea', 'kw', 'nrm', - 'lez', 'ary', 'gn', 'lfn', 'mni', 'stq', 'mt', 'mwl', 'lo', 'rm', - 'skr', 'bjn', 'olo', 'lad', 'gom', 'koi', 'fur', 'ang', 'dsb', 'dty', - 'ext', 'ln', 'tyv', 'cbk-zam', 'smn', 'dv', 'ksh', 'gag', 'pfl', 'pi', - 'pag', 'bxr', 'av', 'awa', 'tay', 'haw', 'pap', 'ig', 'rw', 'xal', - 'krc', 'za', 'szy', 'pdc', 'kaa', 'inh', 'arc', 'to', 'nov', 'kbp', - 'jam', 'wo', 'tpi', 'na', 'kbd', 'atj', 'ki', 'tet', 'tcy', 'ak', - 'lld', 'lg', 'jbo', 'bi', 'roa-rup', 'lbe', 'kg', 'ty', 'mdf', 'xh', + 'ary', 'lez', 'gn', 'lfn', 'mni', 'mt', 'stq', 'mwl', 'lo', 'rm', + 'skr', 'bjn', 'olo', 'lad', 'gom', 'fur', 'koi', 'ang', 'dsb', 'dty', + 'ext', 'ln', 'tyv', 'cbk-zam', 'smn', 'dv', 'ksh', 'gag', 'pfl', 'bxr', + 'pi', 'pag', 'av', 'awa', 'tay', 'haw', 'ig', 'pap', 'rw', 'xal', + 'krc', 'szy', 'za', 'pdc', 'kaa', 'inh', 'arc', 'to', 'kbp', 'jam', + 'nov', 'wo', 'tpi', 'na', 'kbd', 'atj', 'ki', 'tet', 'tcy', 'ak', + 'lld', 'lg', 'jbo', 'bi', 'roa-rup', 'lbe', 'kg', 'ty', 'xh', 'mdf', 'fj', 'srn', 'om', 'trv', 'gcr', 'sm', 'ltg', 'chr', 'nia', 'nqo', 'mnw', 'pih', 'got', 'st', 'kl', 'mad', 'tw', 'cu', 'ny', 'tn', 'ts', - 'bm', 'rmy', 've', 'chy', 'rn', 'tum', 'iu', 'ss', 'ch', 'ks', 'alt', + 'bm', 'rmy', 've', 'chy', 'rn', 'tum', 'iu', 'ks', 'ss', 'ch', 'alt', 'pnt', 'ady', 'ee', 'ff', 'ik', 'din', 'sg', 'dz', 'ti', 'cr', 'dag', 'shi', ] diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py index 5ba20c9..3a0670c 100644 --- a/pywikibot/families/wikisource_family.py +++ b/pywikibot/families/wikisource_family.py @@ -26,9 +26,9 @@ languages_by_size = [ 'pl', 'en', 'ru', 'de', 'fr', 'zh', 'he', 'it', 'es', 'ar', 'uk', 'cs', - 'gu', 'mul', 'pt', 'sr', 'fa', 'hu', 'sv', 'ko', 'ml', 'sa', 'bn', + 'mul', 'gu', 'pt', 'sr', 'fa', 'hu', 'sv', 'ml', 'ko', 'sa', 'bn', 'te', 'ta', 'sl', 'hy', 'el', 'tr', 'ro', 'fi', 'ja', 'vi', 'nap', - 'la', 'az', 'ca', 'br', 'nl', 'kn', 'hr', 'th', 'no', 'eo', 'is', + 'la', 'az', 'ca', 'br', 'nl', 'kn', 'hr', 'no', 'th', 'eo', 'is', 'vec', 'pms', 'id', 'hi', 'be', 'et', 'lij', 'da', 'mk', 'yi', 'as', 'mr', 'bg', 'li', 'lt', 'wa', 'eu', 'or', 'pa', 'cy', 'gl', 'bs', 'sah', 'sk', 'zh-min-nan', 'fo', 'ban', diff --git a/pywikibot/families/wiktionary_family.py b/pywikibot/families/wiktionary_family.py index 1ca3101..5af4b47 100644 --- a/pywikibot/families/wiktionary_family.py +++ b/pywikibot/families/wiktionary_family.py @@ -32,12 +32,12 @@ 'pt', 'kn', 'vi', 'sr', 'th', 'hi', 'ro', 'no', 'et', 'id', 'cs', 'ml', 'my', 'uz', 'li', 'or', 'te', 'eo', 'fa', 'ar', 'gl', 'jv', 'oc', 'az', 'eu', 'uk', 'br', 'ast', 'da', 'lo', 'simple', 'is', 'hr', 'bn', 'la', - 'fj', 'tg', 'ky', 'skr', 'bg', 'sk', 'wa', 'ur', 'ps', 'cy', 'vo', - 'he', 'shn', 'af', 'zh-min-nan', 'sl', 'scn', 'tl', 'pa', 'om', 'sw', - 'fy', 'nn', 'ka', 'lv', 'sq', 'nds', 'min', 'co', 'mn', 'pnb', 'lb', - 'ms', 'bs', 'nah', 'yue', 'sa', 'kk', 'km', 'diq', 'vec', 'tk', 'be', - 'mk', 'sm', 'hsb', 'shy', 'gd', 'ga', 'nia', 'an', 'wo', 'mni', 'gom', - 'mnw', 'mr', 'ang', 'ia', 'fo', 'tt', 'mt', 'sd', 'gn', 'ks', 'ie', + 'fj', 'tg', 'skr', 'ky', 'sk', 'bg', 'wa', 'ur', 'ps', 'cy', 'vo', + 'shn', 'he', 'af', 'zh-min-nan', 'sl', 'scn', 'tl', 'om', 'pa', 'sw', + 'fy', 'nn', 'ka', 'lv', 'sq', 'nds', 'min', 'co', 'mn', 'pnb', 'ms', + 'lb', 'bs', 'nah', 'yue', 'sa', 'kk', 'km', 'diq', 'vec', 'tk', 'be', + 'mk', 'sm', 'hsb', 'shy', 'gd', 'ga', 'nia', 'mnw', 'an', 'wo', 'mni', + 'gom', 'mr', 'ang', 'ia', 'fo', 'tt', 'mt', 'sd', 'gn', 'ks', 'ie', 'so', 'csb', 'ug', 'su', 'bcl', 'st', 'roa-rup', 'si', 'hif', 'zu', 'kl', 'mi', 'ay', 'jbo', 'ln', 'yi', 'gu', 'na', 'gv', 'kw', 'tpi', 'ne', 'rw', 'ts', 'ha', 'qu', 'ss', 'chr', 'iu', 'am', 'dv', 'sg', -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703922
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: I9519abf9176ec2c4593f2de7a8af04365b71e604 Gerrit-Change-Number: 703922 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [bugfix] buffer_interface string representation is unhelpful
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703917
) Change subject: [bugfix] buffer_interface string representation is unhelpful ...................................................................... [bugfix] buffer_interface string representation is unhelpful Our buffer_interface has an unhelpful string representation because it subclasses logging.Handler... >>> import pywikibot.userinterfaces.buffer_interface >>> import pywikibot.userinterfaces.terminal_interface >>> buffer_ui = pywikibot.userinterfaces.buffer_interface.UI() >>> repr(buffer_ui) '<UI (INFO)>' >>> unix_ui = pywikibot.userinterfaces.terminal_interface.UI() >>> str(unix_ui) '<pywikibot.userinterfaces.terminal_interface_unix.UnixUI object at 0x7fc30076ec40>' We can simply have a log handler attribute rather than subclass it. Doing so fixes this. >>> import pywikibot.userinterfaces.buffer_interface >>> buffer_ui = pywikibot.userinterfaces.buffer_interface.UI() >>> repr(buffer_ui) '<pywikibot.userinterfaces.buffer_interface.UI object at 0x7fcc23ddecd0>' This drops the get_output() method from the UI class because it's unused and incompatible with a QueueHandler. Change-Id: Ia898cb8ebcd9afae9b55baa173eb37853a871e37 --- M pywikibot/userinterfaces/buffer_interface.py 1 file changed, 24 insertions(+), 18 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/userinterfaces/buffer_interface.py b/pywikibot/userinterfaces/buffer_interface.py index 8978304..d4b683e 100755 --- a/pywikibot/userinterfaces/buffer_interface.py +++ b/pywikibot/userinterfaces/buffer_interface.py @@ -5,28 +5,32 @@ # Distributed under the terms of the MIT license. # import logging +import queue from typing import Any, Sequence, Union from pywikibot import config from pywikibot.logging import INFO, VERBOSE from pywikibot.userinterfaces._interface_base import ABUIC +BAD_BUFFER_TYPE = 'BUG: bufffer can only contain logs and strings, had {}' -class UI(ABUIC, logging.Handler): + +class UI(ABUIC): """Collects output into an unseen buffer.""" def __init__(self): """Initialize the UI.""" super().__init__() - self.setLevel(VERBOSE if config.verbose_output else INFO) - self.setFormatter(logging.Formatter(fmt='%(message)s%(newline)s')) - self._output = [] + self._buffer = queue.Queue() + + self.log_handler = logging.handlers.QueueHandler(self._buffer) + self.log_handler.setLevel(VERBOSE if config.verbose_output else INFO) def init_handlers(self, root_logger, *args, **kwargs): """Initialize the handlers for user output.""" - root_logger.addHandler(self) + root_logger.addHandler(self.log_handler) def input(self, question: str, password: bool = False, default: str = '', force: bool = False) -> str: @@ -47,22 +51,24 @@ def output(self, text, *args, **kwargs) -> None: """Output text that would usually go to a stream.""" - self._output.append(text) - - def emit(self, record: logging.LogRecord) -> None: - """Logger output.""" - self.output(record.getMessage()) - - def get_output(self): - """Provides any output we've buffered.""" - return list(self._output) + self._buffer.put(text) def pop_output(self): """Provide and clear any buffered output.""" - buffered_output = self.get_output() - self.clear() - return buffered_output + output = [] + + while not self._buffer.empty(): + record = self._buffer.get_nowait() + + if isinstance(record, str): + output.append(record) + elif isinstance(record, logging.LogRecord): + output.append(record.getMessage()) + else: + raise ValueError(BAD_BUFFER_TYPE.format(type(record).__name__)) + + return output def clear(self): """Removes any buffered output.""" - self._output.clear() + self.pop_output() -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703917
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: Ia898cb8ebcd9afae9b55baa173eb37853a871e37 Gerrit-Change-Number: 703917 Gerrit-PatchSet: 2 Gerrit-Owner: Damian <atagar1(a)gmail.com> Gerrit-Reviewer: Damian <atagar1(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: Allow to request for item on Lingua Libre
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703918
) Change subject: Allow to request for item on Lingua Libre ...................................................................... Allow to request for item on Lingua Libre Bug: T286303 Change-Id: Ic0d8824d1bf326f2182fbb64d0cc2ed77f82fd4c --- M pywikibot/families/lingualibre_family.py 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/families/lingualibre_family.py b/pywikibot/families/lingualibre_family.py index 54d907a..3e47258 100644 --- a/pywikibot/families/lingualibre_family.py +++ b/pywikibot/families/lingualibre_family.py @@ -26,3 +26,7 @@ def scriptpath(self, code): """Return the script path for this family.""" return '' + + def interface(self, code): + """Return 'DataSite'.""" + return 'DataSite' -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/703918
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: Ic0d8824d1bf326f2182fbb64d0cc2ed77f82fd4c Gerrit-Change-Number: 703918 Gerrit-PatchSet: 1 Gerrit-Owner: Pamputt <pamputt0(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
[Gerrit] ...core[master]: [doc] Add settings to sphinx doc
by jenkins-bot (Code Review)
jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/702920
) Change subject: [doc] Add settings to sphinx doc ...................................................................... [doc] Add settings to sphinx doc Keep ACCOUNT SETTINGS together Change-Id: I26fceeb90a543654acc108f3f31c77225d537e96 --- A docs/api_ref/pywikibot.config.rst M docs/api_ref/pywikibot.rst M pywikibot/config.py 3 files changed, 130 insertions(+), 6 deletions(-) Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified diff --git a/docs/api_ref/pywikibot.config.rst b/docs/api_ref/pywikibot.config.rst new file mode 100644 index 0000000..290636c --- /dev/null +++ b/docs/api_ref/pywikibot.config.rst @@ -0,0 +1,124 @@ +pywikibot.config module +----------------------- + +API reference +^^^^^^^^^^^^^ + +.. automodule:: pywikibot.config + :noindex: + +Option setting +^^^^^^^^^^^^^^ + + +Account Settings +++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# ACCOUNT SETTINGS + :end-before: # ############# + +User Interface Settings ++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# USER INTERFACE SETTINGS + :end-before: # ############# + +External Editor Settings +++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# EXTERNAL EDITOR SETTINGS + :end-before: # ############# + +Logfile Settings +++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# LOGFILE SETTINGS + :end-before: # ############# + +External Script Path Settings ++++++++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# EXTERNAL SCRIPT PATH SETTINGS + :end-before: # ############# + +External Families Settings +++++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# EXTERNAL FAMILIES SETTINGS + :end-before: # ############# + +Interwiki Settings +++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# INTERWIKI SETTINGS + :end-before: # ############# + +Solve Disambiguations Settings +++++++++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# SOLVE_DISAMBIGUATION SETTINGS + :end-before: # ############# + +Image Related Settings +++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# IMAGE RELATED SETTINGS + :end-before: # ############# + +Settings to Avoid Server Overload ++++++++++++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# SETTINGS TO AVOID SERVER OVERLOAD + :end-before: # ############# + +Weblink Checker Settings +++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# WEBLINK CHECKER SETTINGS + :end-before: # ############# + +Database Settings ++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# DATABASE SETTINGS + :end-before: # ############# + +Http Settings ++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# HTTP SETTINGS + :end-before: # ############# + +Cosmetic Changes Settings ++++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# COSMETIC CHANGES SETTINGS + :end-before: # ############# + +Replication Bot Settings +++++++++++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# REPLICATION BOT SETTINGS + :end-before: # ############# + +Further Settings +++++++++++++++++ + +.. literalinclude:: ../../pywikibot/config.py + :start-at: # ############# FURTHER SETTINGS + :end-before: # ============= diff --git a/docs/api_ref/pywikibot.rst b/docs/api_ref/pywikibot.rst index bbfec20..58aa3b6 100644 --- a/docs/api_ref/pywikibot.rst +++ b/docs/api_ref/pywikibot.rst @@ -35,10 +35,7 @@ .. automodule:: pywikibot.bot_choice -pywikibot.config module ------------------------ - -.. automodule:: pywikibot.config +.. include:: pywikibot.config.rst pywikibot.cosmetic\_changes module ---------------------------------- diff --git a/pywikibot/config.py b/pywikibot/config.py index 2304599..426f39d 100644 --- a/pywikibot/config.py +++ b/pywikibot/config.py @@ -273,6 +273,11 @@ # not just MediaWiki API calls. extra_headers = {} +# Set to True to override the {{bots}} exclusion protocol (at your own risk!) +ignore_bot_templates = False + +# ############################################# + def user_home_path(path): """Return a file path to a file in the user home.""" @@ -438,8 +443,6 @@ # ‘families/’ is a subdirectory of the directory in which config.py is found. register_families_folder(os.path.join(os.path.dirname(__file__), 'families')) -# Set to True to override the {{bots}} exclusion protocol (at your own risk!) -ignore_bot_templates = False # ############# USER INTERFACE SETTINGS ############## -- To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/702920
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: I26fceeb90a543654acc108f3f31c77225d537e96 Gerrit-Change-Number: 702920 Gerrit-PatchSet: 3 Gerrit-Owner: Xqt <info(a)gno.de> Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
2 years, 9 months
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
9
10
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
Results per page:
10
25
50
100
200