Make use of setuptools.find_packages()

This commit is contained in:
Eric Torres 2019-04-23 17:25:23 -07:00
parent cc42fcdebe
commit 015a5cd08c

View File

@ -2,10 +2,12 @@ import setuptools
from sphinx.setup_command import BuildDoc
# ========== Constants ==========
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"]
EXCLUDED_PACKAGES = ["test", "tests"]
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
SCRIPTS = ["bin/backup"]
CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ==========
with open("README.rst", "r") as fh:
long_description = fh.read()