From 9f775f5a79cad0969c80fbb0063cf7dfd60fdb22 Mon Sep 17 00:00:00 2001 From: Christopher Lansing Date: Fri, 10 Apr 2020 18:42:17 -0400 Subject: [PATCH] Add more flexible package detection for setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 585230f..9baab5c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import os import os.path -from setuptools import setup +from setuptools import setup, find_packages thisdir = os.path.abspath(os.path.dirname(__file__)) version = open(os.path.join(thisdir, "pycircuitbreaker", "VERSION")).read().strip() @@ -30,7 +30,7 @@ def readme(): license="MIT", long_description=readme(), long_description_content_type="text/markdown", - packages=["pycircuitbreaker"], + packages=find_packages(exclude=["tests", "tests.*"]), package_data={"": ["VERSION"]}, platforms="any", url="https://github.com/etimberg/pycircuitbreaker",