summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2012-11-28 10:24:59 +0100
committerMichal Minar <miminar@redhat.com>2012-11-28 10:24:59 +0100
commit148b5b7d18c449b87b1103c05612ff2a2fe83233 (patch)
tree44ec8759acb37b79bae705550e37a8cb7885b20c /src
parent084ed5a5ffe8dccd0436e880449a6b39863690a4 (diff)
downloadopenlmi-providers-148b5b7d18c449b87b1103c05612ff2a2fe83233.tar.gz
openlmi-providers-148b5b7d18c449b87b1103c05612ff2a2fe83233.tar.xz
openlmi-providers-148b5b7d18c449b87b1103c05612ff2a2fe83233.zip
added pylintlmi checker for python source checking
pylintlmi uses pylint (python source code checking utility) - giving it custom configuration for openlmi project and plugins with additional checks for usage see src/software/README renamed directory "src/software/providers" to "src/software/openlmi/software" * allows installation to custom PYTHONPATH together with openlmi-python egg * that also allows running pylint on sources in devel directory without messages like: W0403: 28,0: Relative import 'openlmi.software.core', should be 'openlmi.software.openlmi.software.core' E0611: 28,0: No name 'software' in module 'openlmi' F0401: 28,0: Unable to import 'openlmi.software.core'
Diffstat (limited to 'src')
-rw-r--r--src/software/openlmi/__init__.py21
-rw-r--r--src/software/openlmi/software/LMI_SoftwareFileCheck.py (renamed from src/software/providers/LMI_SoftwareFileCheck.py)0
-rw-r--r--src/software/openlmi/software/LMI_SoftwareInstalledPackage.py (renamed from src/software/providers/LMI_SoftwareInstalledPackage.py)0
-rw-r--r--src/software/openlmi/software/LMI_SoftwarePackage.py (renamed from src/software/providers/LMI_SoftwarePackage.py)0
-rw-r--r--src/software/openlmi/software/LMI_SoftwarePackageChecks.py (renamed from src/software/providers/LMI_SoftwarePackageChecks.py)0
-rw-r--r--src/software/openlmi/software/__init__.py (renamed from src/software/providers/__init__.py)0
-rw-r--r--src/software/openlmi/software/util/__init__.py (renamed from src/software/providers/util/__init__.py)0
-rw-r--r--src/software/openlmi/software/util/common.py (renamed from src/software/providers/util/common.py)0
-rw-r--r--src/software/openlmi/software/util/singletonmixin.py (renamed from src/software/providers/util/singletonmixin.py)0
l---------src/software/providers1
-rw-r--r--src/software/setup.py4
11 files changed, 24 insertions, 2 deletions
diff --git a/src/software/openlmi/__init__.py b/src/software/openlmi/__init__.py
new file mode 100644
index 0000000..085d611
--- /dev/null
+++ b/src/software/openlmi/__init__.py
@@ -0,0 +1,21 @@
+# Software Management Providers
+#
+# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# Authors: Michal Minar <miminar@redhat.com>
+#
+__import__('pkg_resources').declare_namespace(__name__)
diff --git a/src/software/providers/LMI_SoftwareFileCheck.py b/src/software/openlmi/software/LMI_SoftwareFileCheck.py
index c667352..c667352 100644
--- a/src/software/providers/LMI_SoftwareFileCheck.py
+++ b/src/software/openlmi/software/LMI_SoftwareFileCheck.py
diff --git a/src/software/providers/LMI_SoftwareInstalledPackage.py b/src/software/openlmi/software/LMI_SoftwareInstalledPackage.py
index 51d15b6..51d15b6 100644
--- a/src/software/providers/LMI_SoftwareInstalledPackage.py
+++ b/src/software/openlmi/software/LMI_SoftwareInstalledPackage.py
diff --git a/src/software/providers/LMI_SoftwarePackage.py b/src/software/openlmi/software/LMI_SoftwarePackage.py
index 2395dca..2395dca 100644
--- a/src/software/providers/LMI_SoftwarePackage.py
+++ b/src/software/openlmi/software/LMI_SoftwarePackage.py
diff --git a/src/software/providers/LMI_SoftwarePackageChecks.py b/src/software/openlmi/software/LMI_SoftwarePackageChecks.py
index a2f798b..a2f798b 100644
--- a/src/software/providers/LMI_SoftwarePackageChecks.py
+++ b/src/software/openlmi/software/LMI_SoftwarePackageChecks.py
diff --git a/src/software/providers/__init__.py b/src/software/openlmi/software/__init__.py
index 2ebe827..2ebe827 100644
--- a/src/software/providers/__init__.py
+++ b/src/software/openlmi/software/__init__.py
diff --git a/src/software/providers/util/__init__.py b/src/software/openlmi/software/util/__init__.py
index 2ebe827..2ebe827 100644
--- a/src/software/providers/util/__init__.py
+++ b/src/software/openlmi/software/util/__init__.py
diff --git a/src/software/providers/util/common.py b/src/software/openlmi/software/util/common.py
index 7b54f1e..7b54f1e 100644
--- a/src/software/providers/util/common.py
+++ b/src/software/openlmi/software/util/common.py
diff --git a/src/software/providers/util/singletonmixin.py b/src/software/openlmi/software/util/singletonmixin.py
index 8051695..8051695 100644
--- a/src/software/providers/util/singletonmixin.py
+++ b/src/software/openlmi/software/util/singletonmixin.py
diff --git a/src/software/providers b/src/software/providers
new file mode 120000
index 0000000..6105f87
--- /dev/null
+++ b/src/software/providers
@@ -0,0 +1 @@
+openlmi/software \ No newline at end of file
diff --git a/src/software/setup.py b/src/software/setup.py
index 433be41..25eb001 100644
--- a/src/software/setup.py
+++ b/src/software/setup.py
@@ -6,10 +6,10 @@ setup(
author_email='miminar@redhat.com',
url='https://fedorahosted.org/openlmi/',
version='0.5',
- package=['openlmi'],
- package_dir={'openlmi.software': 'providers'},
+ namespace_packages=['openlmi'],
packages=['openlmi.software', 'openlmi.software.util'],
install_requires=['openlmi'],
+ license="LGPLv2+",
classifiers=[
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Operating System :: POSIX :: Linux',