Exclude tests directory from installation.

This fixed bug #1146340 by excluding tests packages.

Change-Id: Id892c0a2e521a199a9ac42ed8d3729e17fffb5bd
This commit is contained in:
Lianhao Lu 2013-03-05 16:53:16 +08:00
parent d9c4de87af
commit b9d9539a48
1 changed files with 4 additions and 2 deletions

View File

@ -63,14 +63,16 @@ setuptools.setup(
'Topic :: System :: Monitoring',
],
packages=setuptools.find_packages(exclude=['bin']),
packages=setuptools.find_packages(exclude=['bin',
'tests',
'tests.*',
'*.tests']),
cmdclass=common_setup.get_cmdclass(),
package_data={
"ceilometer":
directories("ceilometer/api/static")
+ directories("ceilometer/api/templates"),
},
exclude_package_data={'': ['tests/*']},
include_package_data=True,
test_suite='nose.collector',