jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/565778 )
Change subject: [bugfix] Do not convert UserWarning to exceptions
......................................................................
[bugfix] Do not convert UserWarning to exceptions
Python 2 and 3.5.0 AppVeyor tests fail because UserWarning within
setuptools. Do not convert it to exception via command line warning
control but use the default behaviour instead to start tests even
that warning is given.
Bug: T243133
Change-Id: I108be7f40f8cadd16b5f8f0551bbf0911ab6c57d
---
M .appveyor.yml
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.appveyor.yml b/.appveyor.yml
index 8fd51f0..a1af5f2 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -108,7 +108,7 @@
- set PYTHONIOENCODING=utf8
- "mkdir %PYWIKIBOT_DIR%"
- - "python -Werror::UserWarning -m generate_user_files -dir:%PYWIKIBOT_DIR% -family:wikipedia -lang:en -v -debug"
+ - "python -Wd::UserWarning -m generate_user_files -dir:%PYWIKIBOT_DIR% -family:wikipedia -lang:en -v -debug"
- ps: "[IO.File]::AppendAllText($env:PYWIKIBOT_USER_CONFIG, 'max_retries = 2; maximum_GET_length = 5000; transliteration_target = None;')"
- set PYSETUP_TEST_NO_UI=1
--
To view, visit https://gerrit.wikimedia.org/r/565778
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I108be7f40f8cadd16b5f8f0551bbf0911ab6c57d
Gerrit-Change-Number: 565778
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/565564 )
Change subject: [doc] Update HISTORY.rst
......................................................................
[doc] Update HISTORY.rst
Change-Id: I254c155d8dc5877d587673cdb04359627f631598
---
M HISTORY.rst
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index 7c79562..fdf865b 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,8 @@
Current release
---------------
+* Refactor Wikibase entity namespace handling (T160395)
+* Site.has_api method will be removed in next release
* Category.copyTo and Category.copyAndKeep will be removed in the next release
* weblib module has been removed (T85001)
* botirc module has been removed (T212632)
--
To view, visit https://gerrit.wikimedia.org/r/565564
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I254c155d8dc5877d587673cdb04359627f631598
Gerrit-Change-Number: 565564
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/565757 )
Change subject: mysql: update requirements
......................................................................
mysql: update requirements
The PyMySql module has been the default since 72f072f0c and is the
prefered python module. Do not give a hint to deprecated MySQLdb any
longer.
detached from Iaa295b272
Bug: T89976
Change-Id: I4a84aba97c782d543a511017c6b31ffc40ddac03
---
M requirements.txt
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/requirements.txt b/requirements.txt
index f8d1aa5..c205c71 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -56,8 +56,7 @@
# textlib.py and patrol.py
mwparserfromhell>=0.3.3
-# The mysql generator in pagegenerators depends on either PyMySQL or MySQLdb
-# pywikibot prefers PyMySQL over MySQLdb (Python 2 only)
+# The mysql generator in pagegenerators depends on PyMySQL
PyMySQL
# core HTML comparison parser in diff module
--
To view, visit https://gerrit.wikimedia.org/r/565757
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4a84aba97c782d543a511017c6b31ffc40ddac03
Gerrit-Change-Number: 565757
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Hashar <hashar(a)free.fr>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/565511 )
Change subject: [tests] Use PY2 instead of PYTHON_VERSION for WarningSourceSkipContextManager
......................................................................
[tests] Use PY2 instead of PYTHON_VERSION for WarningSourceSkipContextManager
Pywikibot supports Python (3.4)/3.5+. It is not necessary to have a different
behaviour for 3.0 - 3.1 anymore
Change-Id: I63136e4b877d4cd4ea239e30c13281387f25e306
---
M tests/utils.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/utils.py b/tests/utils.py
index 1d917cb..f1acc10 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -253,7 +253,7 @@
skip_frames -= 1
# Ignore socket IO warnings (T183696, T184996)
- if (PYTHON_VERSION >= (3, 2)
+ if (not PY2
and issubclass(warn_msg.category, ResourceWarning)
and str(warn_msg.message).startswith(
('unclosed <ssl.SSLSocket',
--
To view, visit https://gerrit.wikimedia.org/r/565511
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I63136e4b877d4cd4ea239e30c13281387f25e306
Gerrit-Change-Number: 565511
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/564433 )
Change subject: [cleanup] Announce Site.has_api method to be removed
......................................................................
[cleanup] Announce Site.has_api method to be removed
Pywikibot core only supports MediaWiki which has API.
Therefore the compat method has_api can be removed after 5 years.
Change-Id: I847894bda56536b70b8609b8d487aee2f4c55b55
---
M pywikibot/site.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index a3e72bb..a2bde12 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -783,7 +783,7 @@
self._pagemutex = threading.Condition()
self._locked_pages = set()
- @deprecated(since='20141225')
+ @deprecated(since='20141225', future_warning=True)
def has_api(self):
"""Return whether this site has an API."""
return False
@@ -1883,7 +1883,7 @@
return pywikibot.Site(url=site['url'] + '/w/index.php')
raise ValueError('Cannot parse a site out of %s.' % dbname)
- @deprecated(since='20141225')
+ @deprecated(since='20141225', future_warning=True)
def has_api(self):
"""Return whether this site has an API."""
return True
--
To view, visit https://gerrit.wikimedia.org/r/564433
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I847894bda56536b70b8609b8d487aee2f4c55b55
Gerrit-Change-Number: 564433
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)