summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2012-11-08 10:19:39 +0100
committerMichal Minar <miminar@redhat.com>2012-11-08 10:19:39 +0100
commit12d87d9ddfc6f66c336727c1c9fe3ad123d8b900 (patch)
tree5c11a873ecbc323066a34a36a71e57108c75c788 /src/python
parentff3d4f0da089a9012b980336ce416d66c52c31b1 (diff)
downloadopenlmi-providers-12d87d9ddfc6f66c336727c1c9fe3ad123d8b900.tar.gz
openlmi-providers-12d87d9ddfc6f66c336727c1c9fe3ad123d8b900.tar.xz
openlmi-providers-12d87d9ddfc6f66c336727c1c9fe3ad123d8b900.zip
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.
Diffstat (limited to 'src/python')
-rw-r--r--src/python/README2
-rw-r--r--src/python/openlmi/__init__.py1
-rw-r--r--src/python/openlmi/__init__.pycbin0 -> 246 bytes
-rw-r--r--src/python/setup.py16
4 files changed, 19 insertions, 0 deletions
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
--- /dev/null
+++ b/src/python/openlmi/__init__.pyc
Binary files 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',
+ ]
+ )