From 332e3ec5d012c86d64e4fd29d04009ce8f79d45d Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 12 Mar 2018 20:59:09 +0000 Subject: [PATCH] setup: Scan project dir to find packages This eliminates the possibility of the filesystem and setup.py diverging, as had happened with ansible_mitogen/connection/ vs ansible_mitogen/connection.py --- setup.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index d663bc56..af41c13a 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -from setuptools import setup +from setuptools import find_packages, setup setup( name = 'mitogen', @@ -35,12 +35,7 @@ setup( author = 'David Wilson', license = 'New BSD', url = 'https://github.com/dw/mitogen/', - packages = [ - 'mitogen', - 'ansible_mitogen', - 'ansible_mitogen.connection', - 'ansible_mitogen.strategy', - ], + packages = find_packages(exclude=['tests', 'examples']), use_2to3=True, zip_safe = False, classifiers = [