Add test for Pipfile + setup.py
We want to ignore the setup.py file if it is around along with a
Pipfile.
ADD
tests/venv/pipfile/setup-py-implicit/Pipfile
+[[source]]
+url = "https://pypi.python.org/simple"
+verify_ssl = true
+name = "pypi"
+
+[packages]
+there = "*"

ADD
tests/venv/pipfile/setup-py-implicit/README.rst
+Python - Pipfile + setup.py
+---------------------------
+
+The Pipfile did not ask for the local package to be installed with ``setup.py``,
+so lets ensure it wasn't.

ADD
tests/venv/pipfile/setup-py-implicit/dummy/__init__.py
+def dummy():
+ pass

ADD
tests/venv/pipfile/setup-py-implicit/setup.py
+from setuptools import setup, find_packages
+
+setup(
+ name='Dummy',
+ version='1.0.0',
+ url='https://git-place.org/dummy/dummy.git',
+ author='Dummy Name',
+ author_email='dummy@my-email.com',
+ description='Dummy package for testing purposes only',
+ packages=find_packages(),
+ install_requires=['numpy'],
+)

ADD
tests/venv/pipfile/setup-py-implicit/verify
+#!/usr/bin/env python
+import there
+
+try:
+ import dummy
+except ImportError:
+ pass
+else:
+ raise Exception("'dummy' shouldn't have been installed from setup.py when a Pipfile was present")

Add test for Pipfile + setup.py

We want to ignore the setup.py file if it is around along with a
Pipfile.