From 01889859180360ae1e1655fbbfc07b149d0fa700 Mon Sep 17 00:00:00 2001 From: mhchia Date: Tue, 9 Jul 2019 23:29:03 +0800 Subject: [PATCH] Change `packages` in `setup` Previously, only the top level `libp2p` is included. This left only `__init__.py` in the built distribution. Use `setuptools.find_packages` with `exclude` instead, to avoid tiringly list all of the subpackages. --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index b1de125d..452ea3b2 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,7 @@ import setuptools classifiers = [ - ( - "Programming Language :: Python :: %s" % version - ) + f"Programming Language :: Python :: {version}" for version in ["3.7"] ] @@ -28,6 +26,6 @@ setuptools.setup( "lru-dict>=1.1.6", "aio_timers" ], - packages=["libp2p"], + packages=setuptools.find_packages(exclude=["tests", "tests.*"]), zip_safe=False, )