From 0bf4e55831363995671265a9027a7b53c0dca6b8 Mon Sep 17 00:00:00 2001 From: 0z5a Date: Wed, 18 Nov 2026 21:59:22 +0100 Subject: [PATCH] fix: keep the tests package out of the wheel find_packages() without arguments also finds tests/, so the 2.1.1 wheel installs a top-level `tests` package into site-packages. That regular package shadows a project's own `tests` namespace package. Limit find_packages() to textfsm and its subpackages. The sdist still gets tests/ and testdata/ through MANIFEST.in. Fixes #155 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index aa197ef..b165ab4 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries', ], - packages=find_packages(), + packages=find_packages(include=['textfsm', 'textfsm.*']), entry_points={'console_scripts': ['textfsm=textfsm.parser:main']}, include_package_data=True, package_data={'textfsm': ['../testdata/*']},