jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/649375 )
Change subject: [cleanup] remove date functions deprecated 5 years ago
......................................................................
[cleanup] remove date functions deprecated 5 years ago
Change-Id: I762c778e38e30a3828fec9a13fb42a5bae5e2b0e
---
M pywikibot/date.py
1 file changed, 0 insertions(+), 17 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/date.py b/pywikibot/date.py
index 3b199fa..d66470a 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -191,12 +191,6 @@
return v[0]
-@deprecated(since='20151014', future_warning=True)
-def encNoConv(i):
- """Return i."""
- return i
-
-
def encDec0(i):
"""Round to the nearest decade, decade starts with a '0'-ending year."""
return (i // 10) * 10
@@ -1924,17 +1918,6 @@
formatLimits[dayMnthFmts[monthId]] = _format_limit_dom(30)
-@deprecated('calendar.monthrange', since='20150707', future_warning=True)
-def getNumberOfDaysInMonth(month):
- """
- Return the maximum number of days in a given month, 1 being January, etc.
-
- For February always 29 will be given, even it is not a leap year.
- """
- # use year 2000 which is a leap year
- return calendar.monthrange(2000, month)[1]
-
-
def getAutoFormat(lang, title, ignoreFirstLetterCase=True):
"""
Return first matching formatted date value.
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/649375
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: I762c778e38e30a3828fec9a13fb42a5bae5e2b0e
Gerrit-Change-Number: 649375
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/650725 )
Change subject: [5.3.1] Prepare next release
......................................................................
[5.3.1] Prepare next release
Change-Id: If4c52aa8a413b771fc6e11997eee3cfb785825a5
---
M HISTORY.rst
M ROADMAP.rst
M pywikibot/__metadata__.py
3 files changed, 27 insertions(+), 20 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/HISTORY.rst b/HISTORY.rst
index c182e68..bfa46c5 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,31 @@
Release history
===============
+5.3.0
+-----
+*19 December 2020*
+
+* Allow using pywikibot as site-package without user-config.py (T270474)
+* Python 3.10 is supported
+* Fix AutoFamily scriptpath() call (T270370)
+* Add support for skrwiki, skrwiktionary, eowikivoyage, wawikisource, madwiki (T268414, T268460, T269429, T269434, T269442)
+* wikistats methods fetch, raw_cached, csv, xml has been removed
+* PageRelatedError.getPage() has been removed in favour of PageRelatedError.page
+* DataSite.get_item() method has been removed
+* global put_throttle option may be given as float (T269741)
+* Property.getType() method has been removed
+* Family.server_time() method was removed; it is still available from Site object (T89451)
+* All HttpRequest parameters except of charset has been dropped (T265206)
+* A lot of methods and properties of HttpRequest are deprecared in favour of requests.Resonse attributes (T265206)
+* Method and properties of HttpRequest are delegated to requests.Response object (T265206)
+* comms.threadedhttp.HttpRequest.raw was replaced by HttpRequest.content property (T265206)
+* Desupported version.getfileversion() has been removed
+* site parameter of comms.http.requests() function is mandatory and cannot be omitted
+* date.MakeParameter() function has been removed
+* api.Request.http_params() method has been removed
+* L10N updates
+
+
5.2.0
-----
*10 December 2020*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 44032aa..fb8ede4 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,25 +1,7 @@
Current release changes
~~~~~~~~~~~~~~~~~~~~~~~
-* Allow using pywikibot as site-package without user-config.py (T270474)
-* Python 3.10 is supported
-* Fix AutoFamily scriptpath() call (T270370)
-* Add support for skrwiki, skrwiktionary, eowikivoyage, wawikisource, madwiki (T268414, T268460, T269429, T269434, T269442)
-* wikistats methods fetch, raw_cached, csv, xml has been removed
-* PageRelatedError.getPage() has been removed in favour of PageRelatedError.page
-* DataSite.get_item() method has been removed
-* global put_throttle option may be given as float (T269741)
-* Property.getType() method has been removed
-* Family.server_time() method was removed; it is still available from Site object (T89451)
-* All HttpRequest parameters except of charset has been dropped (T265206)
-* A lot of methods and properties of HttpRequest are deprecared in favour of requests.Resonse attributes (T265206)
-* Method and properties of HttpRequest are delegated to requests.Response object (T265206)
-* comms.threadedhttp.HttpRequest.raw was replaced by HttpRequest.content property (T265206)
-* Desupported version.getfileversion() has been removed
-* site parameter of comms.http.requests() function is mandatory and cannot be omitted
-* date.MakeParameter() function has been removed
-* api.Request.http_params() method has been removed
-* L10N updates
+* (no changes yet)
Future release notes
~~~~~~~~~~~~~~~~~~~~
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 6b13517..31db005 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -6,7 +6,7 @@
# Distributed under the terms of the MIT license.
#
__name__ = 'pywikibot'
-__version__ = '5.3.0'
+__version__ = '5.3.1.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/+/650725
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: If4c52aa8a413b771fc6e11997eee3cfb785825a5
Gerrit-Change-Number: 650725
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/+/650706 )
Change subject: [doc] update ROADMAP.rst
......................................................................
[doc] update ROADMAP.rst
Change-Id: I24e2f1b588c0132747497942cddf64157c6aa21c
---
M ROADMAP.rst
1 file changed, 9 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 5fec263..44032aa 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,9 +1,13 @@
Current release changes
~~~~~~~~~~~~~~~~~~~~~~~
+* Allow using pywikibot as site-package without user-config.py (T270474)
+* Python 3.10 is supported
+* Fix AutoFamily scriptpath() call (T270370)
+* Add support for skrwiki, skrwiktionary, eowikivoyage, wawikisource, madwiki (T268414, T268460, T269429, T269434, T269442)
* wikistats methods fetch, raw_cached, csv, xml has been removed
* PageRelatedError.getPage() has been removed in favour of PageRelatedError.page
-* DataSite.get_item() method will be removed
+* DataSite.get_item() method has been removed
* global put_throttle option may be given as float (T269741)
* Property.getType() method has been removed
* Family.server_time() method was removed; it is still available from Site object (T89451)
@@ -15,10 +19,14 @@
* site parameter of comms.http.requests() function is mandatory and cannot be omitted
* date.MakeParameter() function has been removed
* api.Request.http_params() method has been removed
+* L10N updates
Future release notes
~~~~~~~~~~~~~~~~~~~~
+* 5.3.0: api.ParamInfo.modules property will be removed
+* 5.3.0: LogEntryFactory.logtypes property will be removed
+* 5.3.0: stdout parameter of logging.output()/pywikibot.output() function will be desupported
* 5.1.0: Positional arguments of page.Revision must be replaced by keyword arguments (T259428)
* 5.0.0: HttpRequest result of http.fetch() will be replaced by requests.Response (T265206)
* 5.0.0: OptionHandler.options dict will be removed in favour of OptionHandler.opt
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/650706
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: I24e2f1b588c0132747497942cddf64157c6aa21c
Gerrit-Change-Number: 650706
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged