From 256a467d3ce5b626f50e24a7d9a053b133390586 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 26 Oct 2012 11:22:24 -0400 Subject: Add setup.py for registering namespace package Create a dummy package and setup.py file solely to be used to register the name "oslo" on PyPI. Change-Id: Ica9dd1cf05fda36c317223ead22a94f337f3ae21 Signed-off-by: Doug Hellmann --- pypi/README | 2 ++ pypi/oslo/__init__.py | 3 +++ pypi/setup.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 pypi/README create mode 100644 pypi/oslo/__init__.py create mode 100644 pypi/setup.py (limited to 'pypi') diff --git a/pypi/README b/pypi/README new file mode 100644 index 0000000..174dc4d --- /dev/null +++ b/pypi/README @@ -0,0 +1,2 @@ +This directory is just here to hold the setup.py used to register the +Oslo name on PyPI, to avoid project name collisions. diff --git a/pypi/oslo/__init__.py b/pypi/oslo/__init__.py new file mode 100644 index 0000000..9d3b5b4 --- /dev/null +++ b/pypi/oslo/__init__.py @@ -0,0 +1,3 @@ +"""Declare namespace package""" + +__import__('pkg_resources').declare_namespace(__name__) diff --git a/pypi/setup.py b/pypi/setup.py new file mode 100644 index 0000000..0183bc0 --- /dev/null +++ b/pypi/setup.py @@ -0,0 +1,43 @@ +#!/usr/bin/python +# -*- encoding: utf-8 -*- +# Copyright (c) 2012 OpenStack, LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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 setuptools + +setuptools.setup( + name='oslo', + version='1', + description="Namespace for common components for Openstack", + long_description="Namespace for common components for Openstack", + classifiers=[ + 'Development Status :: 4 - Beta', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Environment :: No Input/Output (Daemon)', + 'Environment :: OpenStack', + ], + keywords='openstack', + author='OpenStack', + author_email='openstack@lists.launchpad.net', + url='http://www.openstack.org/', + license='Apache Software License', + zip_safe=True, + packages=setuptools.find_packages(exclude=['ez_setup', + 'examples', 'tests']), + namespace_packages=['oslo'], +) -- cgit