I\'m setting up Travis-CI for my project, and oddly, I can\'t import my project:
$ python tests/tests.py
Traceback (most recent call last):
File \"tests/te
In complement of @Brian-Cain answer, you can also use setuptools instead of distutils. As of writing, distutils is being phased out, and setuptools is being used as a replacement, even though setuptools is not yet in standard library.
from setuptools import setup, find_packages
setup(name='Foo',
version='0.0.1',
description='Python Distribution Utilities',
author='',
author_email='',
url='',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
)
For a quick tutorial on making a setup.py with setuptools:
https://packaging.python.org/tutorials/distributing-packages/
For a quick real example: https://github.com/pypa/sampleproject/blob/master/setup.py