diff options
author | kennyballou <kballou@onyx.boisestate.edu> | 2013-03-01 21:12:54 -0700 |
---|---|---|
committer | kennyballou <kballou@onyx.boisestate.edu> | 2013-03-01 21:12:54 -0700 |
commit | 69a4577f44cd3b5a2be63832ad7e9b247469862c (patch) | |
tree | a615f5d8b8d5db1362e533d716d45f2748765133 /xnt | |
parent | 5a440ae9c9f759bf08528de81d0dc815ac05605a (diff) | |
download | xnt-69a4577f44cd3b5a2be63832ad7e9b247469862c.tar.gz xnt-69a4577f44cd3b5a2be63832ad7e9b247469862c.tar.xz |
Refactor Versioning
Xnt now has a version module that all other modules shall use when requesting
version information
Diffstat (limited to 'xnt')
-rw-r--r-- | xnt/__init__.py | 3 | ||||
-rw-r--r-- | xnt/version.py | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/xnt/__init__.py b/xnt/__init__.py index fe8127d..8e77489 100644 --- a/xnt/__init__.py +++ b/xnt/__init__.py @@ -16,7 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -__version__ = "Xnt 0.5.0" +import xnt.version +__version__ = "Xnt " + xnt.version.__version__ __license__ = """ Xnt -- A Wrapper Build Tool Copyright (C) 2012 Kenny Ballou diff --git a/xnt/version.py b/xnt/version.py new file mode 100644 index 0000000..9fd1f15 --- /dev/null +++ b/xnt/version.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +# Xnt -- A Wrapper Build Tool +# Copyright (C) 2012 Kenny Ballou + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +__version_info__ = (0, 5, 0) +__version__ = '.'.join(map(str, __version_info__)) |