summaryrefslogtreecommitdiff
path: root/cloudinit/version.py
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-08-05 15:51:34 -0400
committerScott Moser <smoser@brickies.net>2016-08-05 16:53:53 -0400
commit42bed116b411eb25ebd8368b2b4ed6c56ffd85e7 (patch)
tree60af1c21adda46878ccf9a0c6ab1b3640fa61a4a /cloudinit/version.py
parent10f82bd474c5bc91b330beccd883da06b0014a99 (diff)
downloadvyos-cloud-init-42bed116b411eb25ebd8368b2b4ed6c56ffd85e7.tar.gz
vyos-cloud-init-42bed116b411eb25ebd8368b2b4ed6c56ffd85e7.zip
drop modification of version during make-tarball, tools changes.
Modification of the tarball became problematic, as it meant that any tool extracting source would find the orig source tarball different. I found this unusable when trying to use 'gbp buildpackage'. Other changes here are to better support using python3 or python2 for the build. Makefile will try to call the right python version and can be told which python to use. read-version: by adding 'tiny_p' and avoiding the import of cloudinit.util, we need less dependencies to run this.
Diffstat (limited to 'cloudinit/version.py')
-rw-r--r--cloudinit/version.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/cloudinit/version.py b/cloudinit/version.py
index 01785eb8..aa8ccd7e 100644
--- a/cloudinit/version.py
+++ b/cloudinit/version.py
@@ -17,16 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__VERSION__ = "0.7.6"
-__EXPORT_VERSION__ = "@@EXPORT_VERSION@@"
def version_string():
- if not __EXPORT_VERSION__.startswith("@@"):
- return __EXPORT_VERSION__
return __VERSION__
-
-
-def full_version_string():
- if __EXPORT_VERSION__.startswith("@@"):
- raise ValueError("No full version available")
- return __EXPORT_VERSION__