Add test for Pipfile + setup.py

We want to ignore the setup.py file if it is around along with a
Pipfile.
pull/649/head
Erik Sundell 2019-04-21 14:53:05 +02:00
rodzic 4b74a13364
commit dff18e840d
5 zmienionych plików z 35 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,7 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
there = "*"

Wyświetl plik

@ -0,0 +1,5 @@
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.

Wyświetl plik

@ -0,0 +1,2 @@
def dummy():
pass

Wyświetl plik

@ -0,0 +1,12 @@
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'],
)

Wyświetl plik

@ -0,0 +1,9 @@
#!/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")