jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673683 )
Change subject: [6.0.1] Publish release 6.0.1
......................................................................
[6.0.1] Publish release 6.0.1
Change-Id: Ifeaa00429574187eea5ea0a9832324009a4394e4
---
M ROADMAP.rst
M pywikibot/__metadata__.py
2 files changed, 58 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index d9ba9fd..f6d32d1 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -3,6 +3,63 @@
* Add support for taywiki, trvwiki and mnwwiktionary (T275838, T276128, T276250)
+6.0.0
+~~~~~
+
+Breaking changes
+^^^^^^^^^^^^^^^^
+
+* interwiki_graph module was removed (T223826)
+* Require setuptools >= 20.2 due to PEP 440
+* Support of MediaWiki < 1.23 has been dropped (T268979)
+* APISite.loadimageinfo will no longer return any content
+* Return requests.Response with http.request() instead of plain text (T265206)
+* config.db_hostname has been renamed to db_hostname_format
+
+Code cleanups
+^^^^^^^^^^^^^
+
+* tools.PY2 was removed (T213287)
+* Site.language() method was removed in favour of Site.lang property
+* Deprecated Page.getMovedTarget() method was removed in favour of moved_target()
+* Remove deprecated Wikibase.lastrevid attribute
+* config settings of archived scripts were removed (T223826)
+* Drop startsort/endsort parameter for site.categorymembers method (T74101)
+* Deprecated data attribute of http.fetch() result has been dropped (T265206)
+* toStdout parameter of pywikibot.output() has been dropped
+* Deprecated Site.getToken() and Site.case was removed
+* Deprecated Family.known_families dict was removed (T89451)
+* Deprecated DataSite.get_* methods was removed
+* Deprecated LogEntryFactory.logtypes classproperty was removed
+* Unused comms.threadedhttp module was removed; threadedhttp.HttpRequest was already replaced with requests.Response (T265206)
+
+Other changes
+^^^^^^^^^^^^^
+
+* Raise a SiteDefinitionError if api request response is Non-JSON and site is AutoFamily (T272911)
+* Support deleting and undeleting specific file versions (T276725)
+* Only add bot option generator if the bot class have it already
+* Raise a RuntimeError if pagegenerators -namespace option is provided too late (T276916)
+* Check for LookupError exception in http._decide_encoding (T276715)
+* Re-enable setting private family files (T270949)
+* Move the hardcoded namespace identifiers to an IntEnum
+* Buffer 'pageprops' in api.QueryGenerator
+* Ensure that BaseBot.generator is a Generator
+* Add additional info into log if 'messagecode' is missing during login (T261061, T269503)
+* Use hardcoded messages if i18n system is not available (T275981)
+* Move wikibase data structures to page/_collections.py
+* L10N updates
+* Add support for altwiki (T271984)
+* Add support for mniwiki and mniwiktionary (T273467, T273462)
+* Don't use mime parameter as boolean in api.Request (T274723)
+* textlib.removeDisabledPart is able to remove templates (T274138)
+* Create a SiteLink with __getitem__ method and implement lazy load (T273386, T245809, T238471, T226157)
+* Fix date.formats['MonthName'] behaviour (T273573)
+* Implement pagegenerators.handle_args() to process all options at once
+* Add enabled_options, disabled_options to GeneratorFactory (T271320)
+* Move interwiki() interwiki_prefix() and local_interwiki() methods from BaseSite to APISite
+* Add requests.Response.headers to log when an API error occurs (T272325)
+
Future release notes
~~~~~~~~~~~~~~~~~~~~
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 9c335de..f1e4408 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -5,7 +5,7 @@
# Distributed under the terms of the MIT license.
#
__name__ = 'pywikibot'
-__version__ = '6.1.0.dev0'
+__version__ = '6.0.1'
__description__ = 'Python MediaWiki Bot Framework'
__maintainer__ = 'The Pywikibot team'
__maintainer_email__ = 'pywikibot(a)lists.wikimedia.org'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673683
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: Ifeaa00429574187eea5ea0a9832324009a4394e4
Gerrit-Change-Number: 673683
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673559 )
Change subject: Update example hostname for Wikimedia Cloud
......................................................................
Update example hostname for Wikimedia Cloud
https: //w.wiki/37EM
Change-Id: I83ed503bf2c22fe6a08814c8e09ccf0220b10785
---
M pywikibot/config2.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 600c130..24ef1b5 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -654,8 +654,8 @@
# Setting to connect the database or replica of the database of the wiki.
# db_name_format can be used to manipulate the dbName of site.
#
-# Example for a pywikibot running on wmflabs:
-# db_hostname_format = '{0}.analytics.db.svc.eqiad.wmflabs'
+# Example for a pywikibot running on Wikimedia Cloud (Toolforge):
+# db_hostname_format = '{0}.analytics.db.svc.wikimedia.cloud'
# db_name_format = '{0}_p'
# db_connect_file = user_home_path('replica.my.cnf')
db_hostname_format = 'localhost'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673559
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: I83ed503bf2c22fe6a08814c8e09ccf0220b10785
Gerrit-Change-Number: 673559
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673456 )
Change subject: [fix] Simplify if-statement with bool result
......................................................................
[fix] Simplify if-statement with bool result
Change-Id: I89e0a9ed680fcbad226885a53874c79f069330ba
---
M tests/eventstreams_tests.py
1 file changed, 3 insertions(+), 6 deletions(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/eventstreams_tests.py b/tests/eventstreams_tests.py
index c1686ba..55ad600 100644
--- a/tests/eventstreams_tests.py
+++ b/tests/eventstreams_tests.py
@@ -159,7 +159,7 @@
self.assertLength(self.es.filter['all'], 2)
-class TestEventStreamsFilterTests(TestCase):
+class TestEventStreamsFilter(TestCase):
"""Filter tests for eventstreams module."""
@@ -252,11 +252,8 @@
for none_type in (False, True):
for all_type in (False, True):
for any_type in (False, True, None):
- if none_type is False and all_type is True and (
- any_type is None or any_type is True):
- result = True
- else:
- result = False
+ result = none_type is False and all_type is True \
+ and (any_type is None or any_type is True)
self._test_filter(none_type, all_type, any_type, result)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673456
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: I89e0a9ed680fcbad226885a53874c79f069330ba
Gerrit-Change-Number: 673456
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673458 )
Change subject: [fix] KeyboardInterrupt exception raises immediately
......................................................................
[fix] KeyboardInterrupt exception raises immediately
Using raise as the first or only operator of an except handler is
useless because it raises back the exception immediately.
KeyboardInterrupt is a BaseException and not catched by the following
Exception.
Change-Id: Ife17a2986433dae6fa44e2bcbbab633651f2dfa0
---
M scripts/category_redirect.py
1 file changed, 1 insertion(+), 3 deletions(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py
index 5454262..9563b1b 100755
--- a/scripts/category_redirect.py
+++ b/scripts/category_redirect.py
@@ -24,7 +24,7 @@
"""
#
-# (C) Pywikibot team, 2008-2020
+# (C) Pywikibot team, 2008-2021
#
# Distributed under the terms of the MIT license.
#
@@ -168,8 +168,6 @@
pywikibot.output('Server error: retrying in 5 seconds...')
time.sleep(5)
continue
- except KeyboardInterrupt:
- raise
except Exception:
return (None, None)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673458
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: Ife17a2986433dae6fa44e2bcbbab633651f2dfa0
Gerrit-Change-Number: 673458
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged