From d3ee973e2d509725194c925dfd0143d4cd67f40e Mon Sep 17 00:00:00 2001 From: Cedric Veilleux Date: Thu, 16 Jun 2022 15:05:22 -0400 Subject: [PATCH] setup.py: Do not ship tests/ with the dist package. Since the tests are in a top-level module, they end-up being installed in the global namespace. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d2bbb16..a4e9eb8 100644 --- a/setup.py +++ b/setup.py @@ -47,6 +47,8 @@ 'Programming Language :: Python :: 3.0', 'Programming Language :: Python :: 3.5'], keywords='Linux Python nl80211 iw iwconfig ifconfig wireless WLAN WiFi pentest', - packages=find_packages(), + packages=find_packages( + exclude=('tests*'), + ), package_data={'pyric':['nlhelp/*.help','utils/data/*.txt']} )