Make sure we always start from a clean environment and ensure no
dependencies are installed before we run python setup.py instal..
This way those tests are more robust and we ensure those checks run a
correct clean environment.
@@ -31,18 +31,29 @@ whitelist_externals = cp
[testenv:py2.7-dist]
# Verify library installs without any dependencies
skipdist = True
+recreate = True
# NOTE: We intentionally set empty deps to ensure it works on a clean
# environment without any dependencies
deps =
-commands = python setup.py install
+# Ensure those packages are not installed. If they are, it indicates unclean
+# environment so those checks won't work correctly
+commands = bash -c "pip show requests && exit 1 || exit 0"
+ bash -c "pip show typing && exit 1 || exit 0"
+ bash -c "pip show enum34 && exit 1 || exit 0"
+ python setup.py install
[testenv:py3.7-dist]
# Verify library installs without any dependencies
skipdist = True
+recreate = True
# NOTE: We intentionally set empty deps to ensure it works on a clean
# environment without any dependencies
deps =
-commands = python setup.py install
+# Ensure those packages are not installed. If they are, it indicates unclean
+# environment so those checks won't work correctly
+commands = bash -c "pip show requests && exit 1 || exit 0"
+ python setup.py install
+
[testenv:docs]
deps = pysphere
