From 12d87d9ddfc6f66c336727c1c9fe3ad123d8b900 Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Thu, 8 Nov 2012 10:19:39 +0100 Subject: added python namespace package called openlmi This is aimed to be a common package for all openlmi python providers. It allows using fully-qualified imports in provider source packages. --- src/python/README | 2 ++ src/python/openlmi/__init__.py | 1 + src/python/openlmi/__init__.pyc | Bin 0 -> 246 bytes src/python/setup.py | 16 ++++++++++++++++ 4 files changed, 19 insertions(+) create mode 100644 src/python/README create mode 100644 src/python/openlmi/__init__.py create mode 100644 src/python/openlmi/__init__.pyc create mode 100644 src/python/setup.py (limited to 'src/python') diff --git a/src/python/README b/src/python/README new file mode 100644 index 0000000..69ac71b --- /dev/null +++ b/src/python/README @@ -0,0 +1,2 @@ +This is a python namespace package for all openlmi CIM providers +using cmpi-pywbem-bindings. diff --git a/src/python/openlmi/__init__.py b/src/python/openlmi/__init__.py new file mode 100644 index 0000000..de40ea7 --- /dev/null +++ b/src/python/openlmi/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/python/openlmi/__init__.pyc b/src/python/openlmi/__init__.pyc new file mode 100644 index 0000000..d7131d7 Binary files /dev/null and b/src/python/openlmi/__init__.pyc differ diff --git a/src/python/setup.py b/src/python/setup.py new file mode 100644 index 0000000..84284f2 --- /dev/null +++ b/src/python/setup.py @@ -0,0 +1,16 @@ +from setuptools import setup +setup( + name='openlmi', + description='OpenLMI python providers', + author='Michal Minar', + author_email='miminar@redhat.com', + url='https://fedorahosted.org/openlmi/', + version='0.1', + namespace_packages = ['openlmi'], + packages = ['openlmi'], + classifiers=[ + 'license :: osi approved :: gnu general public license v2 or later (gplv2+)', + 'operating system :: posix :: linux', + 'topic :: system :: systems administration', + ] + ) -- cgit