jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404420 )
Change subject: Revert "Add vcr cassettes for some classes in wikibase_tests.py"
......................................................................
Revert "Add vcr cassettes for some classes in wikibase_tests.py"
Revert due to failing tests:
https://travis-ci.org/wikimedia/pywikibot/builds/329129072
This reverts commit c535c77389ad137d48b877660a7a0eb62f9a12b7.
Change-Id: I6a90c7a7b7c21da679fe1f63435360da3835ac54
---
D tests/cassettes/wikidata.wikidata/TestNamespaces.test_empty_wikibase_page.yaml
D tests/cassettes/wikidata.wikidata/TestNamespaces.test_item_unknown_namespace.yaml
D tests/cassettes/wikidata.wikidata/TestNamespaces.test_wikibase_namespace_selection.yaml
D tests/cassettes/wikidata.wikidata/TestRedirects.test_normal_item.yaml
D tests/cassettes/wikidata.wikidata/TestRedirects.test_redirect_item.yaml
D tests/cassettes/wikipedia.af/TestLinks.test_iterlinks_filtering.yaml
M tests/wikibase_tests.py
7 files changed, 0 insertions(+), 2,363 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
--
To view, visit https://gerrit.wikimedia.org/r/404420
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6a90c7a7b7c21da679fe1f63435360da3835ac54
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404287 )
Change subject: Add vcr cassettes for some classes in wikibase_tests.py
......................................................................
Add vcr cassettes for some classes in wikibase_tests.py
Add vcr cassettes for some classses in wikibase_tests.py:
- TestRedirects
- TestLinks
- TestNamespaces
Bug: T184081
Change-Id: Ib0d52dc743adf6c7c0d7c683615f1c2b6127efd1
---
A tests/cassettes/wikidata.wikidata/TestNamespaces.test_empty_wikibase_page.yaml
A tests/cassettes/wikidata.wikidata/TestNamespaces.test_item_unknown_namespace.yaml
A tests/cassettes/wikidata.wikidata/TestNamespaces.test_wikibase_namespace_selection.yaml
A tests/cassettes/wikidata.wikidata/TestRedirects.test_normal_item.yaml
A tests/cassettes/wikidata.wikidata/TestRedirects.test_redirect_item.yaml
A tests/cassettes/wikipedia.af/TestLinks.test_iterlinks_filtering.yaml
M tests/wikibase_tests.py
7 files changed, 2,363 insertions(+), 0 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
--
To view, visit https://gerrit.wikimedia.org/r/404287
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib0d52dc743adf6c7c0d7c683615f1c2b6127efd1
Gerrit-PatchSet: 8
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Rafidaslam <rafidteam(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Rafidaslam <rafidteam(a)gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404159 )
Change subject: tests.utils.DrySite.version: Return '999.999'
......................................................................
tests.utils.DrySite.version: Return '999.999'
In pywikibot site.version is used to see if an API feature is implemented in
that version or not. '999.999' is a big enough version to be greater than any
foreseeable MW version. From the dry tests point of view it will seem like
the most recent version of MediaWiki.
Change-Id: Iaa4e4dc86a9e139f83d1962bb7f8fee6494c9f6c
---
M tests/utils.py
1 file changed, 2 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/utils.py b/tests/utils.py
index ebaea24..ea9d420 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -21,7 +21,6 @@
from collections import Mapping
from types import ModuleType
-from warnings import warn
from pywikibot.tools import PY2
@@ -462,10 +461,8 @@
return self._userinfo
def version(self):
- """Dummy version, with warning to show the callers context."""
- warn('%r returning version 1.24; override if unsuitable.'
- % self, DrySiteNote, stacklevel=2)
- return '1.24'
+ """Return a big dummy version string."""
+ return '999.999'
def image_repository(self):
"""Return Site object for image repository e.g. commons."""
--
To view, visit https://gerrit.wikimedia.org/r/404159
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa4e4dc86a9e139f83d1962bb7f8fee6494c9f6c
Gerrit-PatchSet: 4
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404151 )
Change subject: utils.py: Ignore the deprecation Warning in 2.6 and 3.3
......................................................................
utils.py: Ignore the deprecation Warning in 2.6 and 3.3
This was causing script tests to fail under Python 2.6 builds.
See: https://travis-ci.org/wikimedia/pywikibot/jobs/328633098#L5051
Change-Id: I35e49ef8816b25fff451892851e2a3563fddbfbd
---
M tests/utils.py
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/utils.py b/tests/utils.py
index 5235917..ebaea24 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -791,7 +791,9 @@
if PYTHON_VERSION < (2, 7):
command.insert(
1, '-W ignore:{0}:DeprecationWarning'.format(PYTHON_26_CRYPTO_WARN))
-
+ if PYTHON_VERSION[:2] in ((3, 3), (2, 6)):
+ command.insert(1, '-W ignore:{0}:DeprecationWarning'.format(
+ 'Pywikibot will soon drop support for Python 2.6 and 3.3'))
# Any environment variables added on Windows must be of type
# str() on Python 2.
env = os.environ.copy()
--
To view, visit https://gerrit.wikimedia.org/r/404151
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I35e49ef8816b25fff451892851e2a3563fddbfbd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404055 )
Change subject: DeprecationWarning: support for py2.6 and py3.3 will be dropped
......................................................................
DeprecationWarning: support for py2.6 and py3.3 will be dropped
Bug: T154771
Bug: T184508
Change-Id: I548a75ac5e27131c06e2745446123801004d7a14
---
M HISTORY.rst
M pywikibot/__init__.py
2 files changed, 9 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/HISTORY.rst b/HISTORY.rst
index c88b72a..e2bbd3c 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,7 @@
Current release
---------------
+* Deprecation warning: support for py2.6 and py3.3 will be dropped
* Bugfixes and improvements
* Localisation updates
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 8a593fb..508f8ba 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""The initialization file for the Pywikibot framework."""
#
-# (C) Pywikibot team, 2008-2017
+# (C) Pywikibot team, 2008-2018
#
# Distributed under the terms of the MIT license.
#
@@ -134,6 +134,13 @@
deprecate_arg = redirect_func(_deprecate_arg)
+if sys.version_info[:2] in ((2, 6), (3, 3)):
+ warn(
+ 'Pywikibot will soon drop support for Python 2.6 and 3.3',
+ DeprecationWarning,
+ )
+
+
class Timestamp(datetime.datetime):
"""Class for handling MediaWiki timestamps.
--
To view, visit https://gerrit.wikimedia.org/r/404055
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I548a75ac5e27131c06e2745446123801004d7a14
Gerrit-PatchSet: 10
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>