diff --git a/setup.py b/setup.py index 1149c78..451c128 100644 --- a/setup.py +++ b/setup.py @@ -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()