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.
This commit is contained in:
mhchia 2019-07-09 23:29:03 +08:00
parent b001256f5f
commit 0188985918
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A

View File

@ -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,
)