diff options
author | Michal Minar <miminar@redhat.com> | 2013-10-23 08:06:52 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-10-24 10:28:30 +0200 |
commit | 82c2688adeda9286de8819a254c7d0ca1ef0669f (patch) | |
tree | 8d2628262c4f9b268d204eefae62a30158ba7a69 /src/software | |
parent | 74068b042909f529d878daa6a3cd85eee7ca4f8c (diff) | |
download | openlmi-providers-82c2688adeda9286de8819a254c7d0ca1ef0669f.tar.gz openlmi-providers-82c2688adeda9286de8819a254c7d0ca1ef0669f.tar.xz openlmi-providers-82c2688adeda9286de8819a254c7d0ca1ef0669f.zip |
python: let's not hardcode version in setups
Let's write openlmi version to the main __init__ module of each python
egg at build time. This version information is easily accessible from
setup scripts.
Diffstat (limited to 'src/software')
-rw-r--r-- | src/software/lmi/software/__init__.py | 3 | ||||
-rw-r--r-- | src/software/lmi/software/__init__.skel | 26 | ||||
-rw-r--r-- | src/software/setup.py | 4 |
3 files changed, 31 insertions, 2 deletions
diff --git a/src/software/lmi/software/__init__.py b/src/software/lmi/software/__init__.py index ffdae3f..f49e8f9 100644 --- a/src/software/lmi/software/__init__.py +++ b/src/software/lmi/software/__init__.py @@ -18,8 +18,9 @@ # # Authors: Michal Minar <miminar@redhat.com> # - """ CIM providers for software management. Part of OpenLMI project. """ + +__version__ = "0.3.0" diff --git a/src/software/lmi/software/__init__.skel b/src/software/lmi/software/__init__.skel new file mode 100644 index 0000000..ab6b0b1 --- /dev/null +++ b/src/software/lmi/software/__init__.skel @@ -0,0 +1,26 @@ +# Software Management Providers +# +# Copyright (C) 2012-2013 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> +# +""" +CIM providers for software management. +Part of OpenLMI project. +""" + +__version__ = "@OPENLMI_VERSION@" diff --git a/src/software/setup.py b/src/software/setup.py index 77cf2ed..1305345 100644 --- a/src/software/setup.py +++ b/src/software/setup.py @@ -1,11 +1,13 @@ from setuptools import setup +from lmi.software import __version__ + setup( name='openlmi-software', description='Software Management providers', author='Michal Minar', author_email='miminar@redhat.com', url='https://fedorahosted.org/openlmi/', - version='0.3.0', + version=__version__, namespace_packages=['lmi'], packages=[ 'lmi', |