From 47b358351fb60029abf93a5a86f48c9c555f5bbc Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 7 Mar 2023 16:30:40 +0100 Subject: [PATCH] Exclude tests from wheel. Fixes #241. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6a4457f..34dd79c 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,9 @@ else: pkg_name = "rns" requirements = ['cryptography>=3.4.7', 'pyserial>=3.5', 'netifaces'] +excluded_modules = exclude=["tests.*", "tests"] +packages = setuptools.find_packages(exclude=excluded_modules) + setuptools.setup( name=pkg_name, version=__version__, @@ -31,7 +34,7 @@ setuptools.setup( long_description=long_description, long_description_content_type="text/markdown", url="https://reticulum.network/", - packages=setuptools.find_packages(), + packages=packages, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",