summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Denhardt <ian@zenhack.net>2017-02-09 11:49:30 -0500
committerIan Denhardt <ian@zenhack.net>2017-02-09 11:49:30 -0500
commitdb7fa1fccd586b013cd5fcade3f7692c78df0da7 (patch)
tree78d168b6c57c5088b677604ab54e44604bb4a981
parentc2b73f139998cd465133b5942a345875486ce514 (diff)
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.
-rw-r--r--MANIFEST.in3
-rwxr-xr-xsetup.py2
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',