From e948509fe53aaebbf6711dcb13748dd04126bb07 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Fri, 7 Oct 2016 10:52:48 +0100 Subject: [PATCH] setup.py - don't distribute tests Found them installed in my `site-packages`, importable as `import tests` :scream: Tested with: ``` In [2]: find_packages() Out[2]: ['tests', 'yamllint', 'tests.rules', 'yamllint.rules'] In [3]: find_packages(exclude=['tests', 'tests.*']) Out[3]: ['yamllint', 'yamllint.rules'] ``` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0954e35..8a865f4 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ setup( 'Topic :: Software Development :: Testing', ], - packages=find_packages(), + packages=find_packages(exclude=['tests', 'tests.*']), entry_points={'console_scripts': ['yamllint=yamllint.cli:run']}, package_data={'yamllint': ['conf/*.yaml'], 'tests': ['yaml-1.2-spec-examples/*']},