From 015a5cd08c23b6baf69c09aa2ea591eaa44ddefd Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 23 Apr 2019 17:25:23 -0700 Subject: [PATCH] Make use of setuptools.find_packages() --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()