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 from sphinx.setup_command import BuildDoc
# ========== Constants ========== # ========== Constants ==========
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"] EXCLUDED_PACKAGES = ["test", "tests"]
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
SCRIPTS = ["bin/backup"] SCRIPTS = ["bin/backup"]
CMDCLASS = {"build_sphinx": BuildDoc} CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ========== # ========== Functions ==========
with open("README.rst", "r") as fh: with open("README.rst", "r") as fh:
long_description = fh.read() long_description = fh.read()