Pin mock 1.0.1 in Python 2 for now.
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 22 Jul 2015 07:18:00 +0000 (10:18 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 22 Jul 2015 07:20:15 +0000 (10:20 +0300)
mock recently dropped Python 2.6 support and then
re-introduced it in its latest release (however,
it's a bit unstable right now).

I think at this point, we can be more cautious
and just use mock==1.0.1.

setup.py

index 10cac2df4740b0a08940dfffdb6fbc7afc12dc68..68303f25cdf42ab39f823add5a7e0dd70cfe42d8 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ if PY2:
     # # use pbr, and currently it breaks things, presumably till
     # # their next release.
     # pyversion_install_requires.append('pbr==0.5.22')
-    pyversion_install_requires.append('mock')  # mock is in the stdlib for 3.3+
+    pyversion_install_requires.append('mock==1.0.1')  # mock is in the stdlib for 3.3+
     # PyPI version (1.4.2) does not have proper Python 3 support
     pyversion_install_requires.append('ExifRead')
     pyversion_install_requires.append('PasteScript')