Switching to namespaces to solve upgrade bug

Change-Id: I472abf44125a03702f0bab7ee10c4e37ff846ac1
This commit is contained in:
John Vrbanac 2014-01-15 12:26:23 -06:00
parent 6c434132fb
commit 382e6f12b1
8 changed files with 9 additions and 4 deletions

View File

@ -18,3 +18,5 @@ __title__ = 'cafe'
__author__ = 'Rackspace Cloud QE'
__license__ = 'Apache License Version 2.0'
__copyright__ = 'Copyright 2013 Rackspace Inc.'
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -13,3 +13,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -23,6 +23,6 @@ setup(
author_email='cloud-cafe@lists.rackspace.com',
url='http://rackspace.com',
packages=find_packages(),
package_dir={'cafe': 'cafe'},
namespace_packages=['cafe'],
install_requires=['requests'],
zip_safe=False)

View File

@ -13,3 +13,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -23,6 +23,6 @@ setup(
author_email='cloud-cafe@lists.rackspace.com',
url='http://rackspace.com',
packages=find_packages(),
package_dir={'cafe': 'cafe'},
namespace_packages=['cafe'],
install_requires=['pymongo'],
zip_safe=False)

View File

@ -13,3 +13,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -24,6 +24,6 @@ setup(
author_email='cloud-cafe@lists.rackspace.com',
url='http://rackspace.com',
packages=find_packages(),
package_dir={'cafe': 'cafe'},
namespace_packages=['cafe'],
install_requires=['launchpadlib==1.10.2', 'pygithub==1.17.0'],
zip_safe=False)

View File

@ -82,7 +82,7 @@ setup(
url='http://rackspace.com',
packages=find_packages(),
package_data={'': ['LICENSE', 'NOTICE']},
package_dir={'cafe': 'cafe'},
namespace_packages=['cafe'],
include_package_data=True,
install_requires=requires,
license=open('LICENSE').read(),