I\'m trying to put a Python project into a tarball using setuptools. The problem is that setuptools doesn\'t appear to like the way that the source tree was originally setu
This is what I found in setuptools manual:
from setuptools import setup, find_packages
...
packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
In my case the following was enough to exclude top-level tests directory:
packages = find_packages(exclude=["tests.*", "tests"]),