jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/658082 )
Change subject: [doc] Update ROADMAP.rst
......................................................................
[doc] Update ROADMAP.rst
Change-Id: Iaafce6e1ad5452c62beac5027f9d33a240757216
---
M ROADMAP.rst
1 file changed, 12 insertions(+), 6 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 42305fc..69a9836 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,25 +1,31 @@
Current release changes
~~~~~~~~~~~~~~~~~~~~~~~
+Breaking changes
+^^^^^^^^^^^^^^^^
+
+* config.db_hostname has been renamed to db_hostname_format
+
+Other changes
+^^^^^^^^^^^^^
+
* (no changes yet)
Future release notes
~~~~~~~~~~~~~~~~~~~~
-* 5.6.0: MediaWiki 1.23+ is supported only
-* 5.6.0: comms.http.request() will return a requests.Response object rather than plain text
-* 5.6.0: comms.threadedhttp module will be removed
-* 5.6.0: config.db_hostname will be renamed to db_hostname_format
+* 5.6.0: comms.http.request() will return a requests.Response object rather than plain text (T265206)
+* 5.6.0: comms.threadedhttp module will be removed (T265206)
* 5.6.0: APISite.loadimageinfo will no longer return any content
* 5.6.0: pagenenerators.handleArg() method will be removed in favour of handle_arg() (T271437)
+* 5.5.0: Deprecated data attribute of http.fetch() result will be given up (T265206)
* 5.5.0: Site.getuserinfo() method will be dropped in favour of userinfo property
* 5.5.0: Site.getglobaluserinfo() method will be dropped in favour of globaluserinfo property
* 5.4.0: Support of MediaWiki < 1.23 will be dropped with release 6.0 (T268979)
* 5.4.0: LoginManager.getCookie() is deprecated and will be removed
* 5.4.0: tools.PY2 will be removed (T213287)
* 5.3.0: LogEntryFactory.logtypes property will be removed
-* 5.3.0: stdout parameter of logging.output()/pywikibot.output() function will be desupported
-* 5.0.0: HttpRequest result of http.fetch() will be replaced by requests.Response (T265206)
+* 5.3.0: toStdout parameter of logging.output()/pywikibot.output() function will be desupported
* 5.0.0: OptionHandler.options dict will be removed in favour of OptionHandler.opt
* 5.0.0: Methods deprecated for 5 years or longer will be removed
* 5.0.0: pagegenerators.ReferringPageGenerator is desupported and will be removed
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/658082
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: Iaafce6e1ad5452c62beac5027f9d33a240757216
Gerrit-Change-Number: 658082
Gerrit-PatchSet: 2
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/+/657990 )
Change subject: [6.0] drop support for mw 1.19-1.22 in proofreadpage.py
......................................................................
[6.0] drop support for mw 1.19-1.22 in proofreadpage.py
Bug: T268979
Change-Id: Ieb7a489a8e41a3ef09e1edbfd45204a1b4b244e1
---
M pywikibot/proofreadpage.py
1 file changed, 1 insertion(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py
index 80334c2..f6fe401 100644
--- a/pywikibot/proofreadpage.py
+++ b/pywikibot/proofreadpage.py
@@ -1,8 +1,6 @@
"""
Objects used with ProofreadPage Extension.
-The extension is supported by MW 1.21+.
-
This module includes objects:
* ProofreadPage(Page)
@@ -21,7 +19,7 @@
"""
#
-# (C) Pywikibot team, 2015-2020
+# (C) Pywikibot team, 2015-2021
#
# Distributed under the terms of the MIT license.
#
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657990
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: Ieb7a489a8e41a3ef09e1edbfd45204a1b4b244e1
Gerrit-Change-Number: 657990
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/+/657536 )
Change subject: [IMPR] format db_hostname the same as db_name
......................................................................
[IMPR] format db_hostname the same as db_name
The current Wiki Replicas setup allows querrying any db replica from any
host since all of the wikis are one all of the hosts.
With the 2020 redesign each host will only have some wikis, so format
the hostname with the database name.
db_hostname is replaced by db_hostname_format.
Change-Id: Ife681250a279577b79ad80f7a9aa42b069ad4bb6
---
M pywikibot/config2.py
M pywikibot/data/mysql.py
2 files changed, 4 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 00d3b50..644d63b 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -113,6 +113,7 @@
'available_ssl_project', 'fake_user_agent', 'interwiki_contents_on_disk',
'line_separator', 'LS', 'panoramio', 'proxy', 'special_page_limit',
'sysopnames', 'use_mwparserfromhell', 'use_SSL_onlogin', 'use_SSL_always',
+ 'db_hostname',
}
_future_variables = {'absolute_import', 'division', 'unicode_literals'}
@@ -689,10 +690,10 @@
# db_name_format can be used to manipulate the dbName of site.
#
# Example for a pywikibot running on wmflabs:
-# db_hostname = 'enwiki.analytics.db.svc.eqiad.wmflabs'
+# db_hostname_format = '{0}.analytics.db.svc.eqiad.wmflabs'
# db_name_format = '{0}_p'
# db_connect_file = user_home_path('replica.my.cnf')
-db_hostname = 'localhost'
+db_hostname_format = 'localhost'
db_username = ''
db_password = ''
db_name_format = '{0}'
diff --git a/pywikibot/data/mysql.py b/pywikibot/data/mysql.py
index 3f5d4d5..956b9d0 100644
--- a/pywikibot/data/mysql.py
+++ b/pywikibot/data/mysql.py
@@ -56,7 +56,7 @@
else:
credentials = {'read_default_file': config.db_connect_file}
- with closing(pymysql.connect(config.db_hostname,
+ with closing(pymysql.connect(config.db_hostname_format.format(dbname),
db=config.db_name_format.format(dbname),
port=config.db_port,
charset='utf8',
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657536
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: Ife681250a279577b79ad80f7a9aa42b069ad4bb6
Gerrit-Change-Number: 657536
Gerrit-PatchSet: 2
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
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/+/658041 )
Change subject: [6.0.0] Prepare Pywikibot 6.0
......................................................................
[6.0.0] Prepare Pywikibot 6.0
Change-Id: I2e3e38fa15fe8bd9a44769476b98a250bc65d566
---
M .appveyor.yml
M HISTORY.rst
M README.rst
M ROADMAP.rst
M pywikibot/__metadata__.py
5 files changed, 28 insertions(+), 28 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.appveyor.yml b/.appveyor.yml
index bf53c50..6d5c7ba 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,6 +1,6 @@
clone_depth: 50
skip_tags: true
-version: 5.6.{build}
+version: 6.0.{build}
environment:
APPVEYOR_PYTHON_URL: "https://raw.githubusercontent.com/dvorapa/python-appveyor-demo/master/appve…"
diff --git a/HISTORY.rst b/HISTORY.rst
index c3555c8..5402742 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,25 @@
Release history
===============
+5.6.0
+-----
+*24 January 2021*
+
+* Use string instead of Path-like object with "open" function in UploadRobot for Python 3.5 compatibility (T272345)
+* Add support for trwikivoyage (T271263)
+* UI.input_list_choice() has been improved (T272237)
+* Global handleArgs() function was removed in favour of handle_args
+* Deprecated originPage and foundIn property has been removed in interwiki_graph.py
+* ParamInfo modules, prefixes, query_modules_with_limits properties and module_attribute_map() method was removed
+* Allow querying alldeletedrevisions with APISite.alldeletedrevisions() and User.deleted_contributions()
+* data attribute of http.fetch() response is deprecated (T265206)
+* Positional arguments of page.Revision aren't supported any longer (T259428)
+* pagenenerators.handleArg() method was renamed to handle_arg() (T271437)
+* Page methods deprecated for 6 years were removed
+* Create a Site with AutoFamily if a family isn't predefined (T249087)
+* L10N updates
+
+
5.5.0
-----
*12 January 2021*
diff --git a/README.rst b/README.rst
index fc2e0b3..86253d5 100644
--- a/README.rst
+++ b/README.rst
@@ -25,13 +25,13 @@
.. image:: https://static.pepy.tech/personalized-badge/pywikibot?period=week&units=int…
:alt: Weekly downloads
:target: https://pepy.tech/project/pywikibot
-
+
Pywikibot
=========
The Pywikibot framework is a Python library that interfaces with the
`MediaWiki API <https://www.mediawiki.org/wiki/API:Main_page>`_
-version 1.19 or higher.
+version 1.23 or higher.
Also included are various general function scripts that can be adapted for
different tasks.
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 2d6c11b..42305fc 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,34 +1,15 @@
-**Note: 5.6.0 is the last release supporting MediaWiki 1.19-1.22.**
-
-Breaking changes with Pywikibot 6.0.0
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-* MediaWiki 1.23+ is supported only
-* comms.http.request() will return a requests.Response object rather than plain text
-* comms.threadedhttp module will be removed
-* config.db_hostname will be renamed to db_hostname_format
-* APISite.loadimageinfo() will not return any content
-
Current release changes
~~~~~~~~~~~~~~~~~~~~~~~
-* Use string instead of Path-like object with "open" function in UploadRobot for Python 3.5 compatibility (T272345)
-* Add support for trwikivoyage (T271263)
-* UI.input_list_choice() has been improved (T272237)
-* Global handleArgs() function was removed in favour of handle_args
-* Deprecated originPage and foundIn property has been removed in interwiki_graph.py
-* ParamInfo modules, prefixes, query_modules_with_limits properties and module_attribute_map() method was removed
-* Allow querying alldeletedrevisions with APISite.alldeletedrevisions() and User.deleted_contributions()
-* data attribute of http.fetch() response is deprecated (T265206)
-* Positional arguments of page.Revision aren't supported any longer (T259428)
-* pagenenerators.handleArg() method was renamed to handle_arg() (T271437)
-* Page methods deprecated for 6 years were removed
-* Create a Site with AutoFamily if a family isn't predefined (T249087)
-* L10N updates
+* (no changes yet)
Future release notes
~~~~~~~~~~~~~~~~~~~~
+* 5.6.0: MediaWiki 1.23+ is supported only
+* 5.6.0: comms.http.request() will return a requests.Response object rather than plain text
+* 5.6.0: comms.threadedhttp module will be removed
+* 5.6.0: config.db_hostname will be renamed to db_hostname_format
* 5.6.0: APISite.loadimageinfo will no longer return any content
* 5.6.0: pagenenerators.handleArg() method will be removed in favour of handle_arg() (T271437)
* 5.5.0: Site.getuserinfo() method will be dropped in favour of userinfo property
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index ef12b46..80eb5d2 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -5,7 +5,7 @@
# Distributed under the terms of the MIT license.
#
__name__ = 'pywikibot'
-__version__ = '5.6.0'
+__version__ = '6.0.0.dev0'
__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/+/658041
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: I2e3e38fa15fe8bd9a44769476b98a250bc65d566
Gerrit-Change-Number: 658041
Gerrit-PatchSet: 2
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/+/657976 )
Change subject: [doc] Update ROADMAP.rst and prepare release 6.0
......................................................................
[doc] Update ROADMAP.rst and prepare release 6.0
Bug: T269066
Change-Id: I57fa0425fda2dbeb185ea63323884344d988f0a6
---
M ROADMAP.rst
1 file changed, 13 insertions(+), 0 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 82bd3c1..2d6c11b 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,6 +1,18 @@
+**Note: 5.6.0 is the last release supporting MediaWiki 1.19-1.22.**
+
+Breaking changes with Pywikibot 6.0.0
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+* MediaWiki 1.23+ is supported only
+* comms.http.request() will return a requests.Response object rather than plain text
+* comms.threadedhttp module will be removed
+* config.db_hostname will be renamed to db_hostname_format
+* APISite.loadimageinfo() will not return any content
+
Current release changes
~~~~~~~~~~~~~~~~~~~~~~~
+* Use string instead of Path-like object with "open" function in UploadRobot for Python 3.5 compatibility (T272345)
* Add support for trwikivoyage (T271263)
* UI.input_list_choice() has been improved (T272237)
* Global handleArgs() function was removed in favour of handle_args
@@ -12,6 +24,7 @@
* pagenenerators.handleArg() method was renamed to handle_arg() (T271437)
* Page methods deprecated for 6 years were removed
* Create a Site with AutoFamily if a family isn't predefined (T249087)
+* L10N updates
Future release notes
~~~~~~~~~~~~~~~~~~~~
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657976
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: I57fa0425fda2dbeb185ea63323884344d988f0a6
Gerrit-Change-Number: 657976
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657853 )
Change subject: [doc] Update ui_tests.py documentation
......................................................................
[doc] Update ui_tests.py documentation
Change-Id: I4a6f5536ad125cc565cf8061e4fc21fa37b91339
---
M tests/ui_tests.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
index 6d17093..d95c06e 100644
--- a/tests/ui_tests.py
+++ b/tests/ui_tests.py
@@ -15,9 +15,8 @@
# adapt the helper functions in TestWindowsTerminalUnicode for other versions.
#
# For the Windows-based tests, you need the following packages installed:
-# - pywin32, for clipboard access, which can be downloaded here:
-# http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/
-# make sure to download the package for the correct python version!
+# - pywin32, for clipboard access, which can be installed using:
+# pip install -U pywin32
#
# - pywinauto, to send keys to the terminal, which can be installed using:
# pip install -U pywinauto
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/657853
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: I4a6f5536ad125cc565cf8061e4fc21fa37b91339
Gerrit-Change-Number: 657853
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged