From db7fa1fccd586b013cd5fcade3f7692c78df0da7 Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Thu, 9 Feb 2017 11:49:30 -0500 Subject: Fix the packaging of tests * Include the tests in the sdist * Don't install the test packages if present when running setup.py install. This way installing correctly omits the tests/ subdirectory when installing from a git checkout -- previously this would install a package called "tests" as well. Furthermore, the tests are now included in the sdist, as they should be. --- MANIFEST.in | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 40c8eef3..3b8a3756 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,5 @@ include COPYING include NEWS include extra/completion/alot-completion.zsh include extra/alot.desktop -recursive-exclude tests * +include tests +recursive-exclude * diff --git a/setup.py b/setup.py index a3f6f908..ecfb33af 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup(name='alot', author_email=alot.__author_email__, url=alot.__url__, license=alot.__copyright__, - packages=find_packages(), + packages=find_packages(exclude=['tests*']), package_data={'alot': [ 'defaults/alot.rc.spec', 'defaults/notmuch.rc.spec', -- cgit v1.2.3