diff --git a/setup.py b/setup.py
index 7b5c483..3a32493 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
     author_email='nico@beerfactory.org',
     url="https://github.com/beerfactory/hbmqtt",
     license='MIT',
-    packages=find_packages(exclude=['tests']),
+    packages=find_packages(exclude=['tests*']),
     include_package_data=True,
     platforms='all',
     install_requires=[
