Making contrib a Python package

Change-Id: Ibfde2e5cbececeec0b6a17f7d71da207f582a5c7
This commit is contained in:
Rick Harris 2011-12-15 22:38:05 +00:00
parent 82d3099a08
commit b3f48f7064
3 changed files with 5 additions and 1 deletions

View File

@ -134,6 +134,10 @@ class OpenStackComputeShell(object):
extensions = []
for ext_path in glob.iglob(ext_glob):
name = os.path.basename(ext_path)[:-3]
if name == "__init__":
continue
ext_module = imp.load_source(name, ext_path)
# Extract Manager class

View File

View File

@ -35,7 +35,7 @@ setuptools.setup(
long_description=read_file("README.rst"),
license="Apache License, Version 2.0",
url="https://github.com/openstack/python-novaclient",
packages=["novaclient", "novaclient.v1_0", "novaclient.v1_1"],
packages=["novaclient", "novaclient.v1_1", "novaclient.v1_1.contrib"],
install_requires=requirements,
tests_require=["nose", "mock"],
test_suite="nose.collector",