From 34cb09d9b273a104c6086a94b86a66789a3a0079 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Mon, 4 Mar 2013 09:33:33 -0600 Subject: [PATCH] Exclude tests when installing ceilometer Dont include the tests directory when installing ceilometer as they might conflict with other poorly installed packages on the users systems. Fixes LP: #1102110 Signed-off-by Chuck Short Change-Id: Ia8b0477af72b30dcf54b4751a51bbb460a7a90f4 --- MANIFEST.in | 4 ++-- setup.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 16188e036f..d09a358105 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,9 +3,9 @@ include ChangeLog include ceilometer/storage/sqlalchemy/migrate_repo/migrate.cfg exclude .gitignore exclude .gitreview -recursive-include tests *.py +graft tests recursive-include nova_tests *.py global-exclude *.pyc recursive-include public * recursive-include ceilometer/locale * -recursive-include ceilometer *.html \ No newline at end of file +recursive-include ceilometer *.html diff --git a/setup.py b/setup.py index 9fe04fb147..2954d548be 100755 --- a/setup.py +++ b/setup.py @@ -70,6 +70,7 @@ setuptools.setup( directories("ceilometer/api/static") + directories("ceilometer/api/templates"), }, + exclude_package_data={'': ['tests/*']}, include_package_data=True, test_suite='nose.collector',