From 6ec1e7b54a0be31a8e4186c9c283cbde405fa5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Sun, 5 Nov 2017 09:50:46 +0100 Subject: [PATCH] Distribution: Include tests in dist file Since commit e948509 ("setup.py - don't distribute tests"), tests files are not included in the `.tar.gz` bundle on a fresh repo clone. (On old repos they were still included, because listed in `yamllint.egg-info/SOURCES.txt`.) Let's explicitly include them. --- MANIFEST.in | 1 + setup.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 8c22eeb..792a672 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ include LICENSE include README.rst include docs/* +include tests/*.py tests/rules/*.py tests/yaml-1.2-spec-examples/* diff --git a/setup.py b/setup.py index e87980f..0c61d01 100644 --- a/setup.py +++ b/setup.py @@ -44,8 +44,7 @@ setup( 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/*']}, + package_data={'yamllint': ['conf/*.yaml']}, install_requires=['pathspec >=0.5.3', 'pyyaml'], test_suite='tests', )