From 7ee9613600db879abff65da48e6e7293b4c4c659 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 3 Jan 2013 09:22:00 -0800 Subject: Simplify version processing. In response to the cessation of per-commit tarballs produced by the CI systems, simplify the version processing code. We did many many many complicated things to support producing release artifacts that were not actually supported release artifacts. After a bunch of issues emerged, it was determined that the best way forward was to stop producing quasi-not-really non-release tarballs. If people want to consume versions of openstack that are not released versions, the git repos are always available. Additionally, this patch removes versioninfo and just uses PKG-INFO and pkg_resources to handle version processing. Change-Id: I5c799f3520adb2ba5288d852543706d81a92f8a1 --- tests/unit/test_version.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/unit/test_version.py b/tests/unit/test_version.py index c67ccde..99c11f5 100644 --- a/tests/unit/test_version.py +++ b/tests/unit/test_version.py @@ -1,6 +1,7 @@ # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Red Hat, Inc. +# Copyright 2012-2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -44,7 +45,7 @@ class DeferredVersionTestCase(BaseTestCase): def test_cached_version(self): class MyVersionInfo(version.VersionInfo): - def _generate_version(self): + def _get_version_from_pkg_resources(self): return "5.5.5.5" deferred_string = MyVersionInfo("openstack").\ @@ -54,7 +55,7 @@ class DeferredVersionTestCase(BaseTestCase): def test_print_cached_version(self): class MyVersionInfo(version.VersionInfo): - def _generate_version(self): + def _get_version_from_pkg_resources(self): return "5.5.5.5" deferred_string = MyVersionInfo("openstack")\ @@ -71,7 +72,7 @@ class DeferredVersionTestCase(BaseTestCase): my_version = "11111222223333344444555556666677777888889999900000" class MyVersionInfo(version.VersionInfo): - def _generate_version(self): + def _get_version_from_pkg_resources(self): return my_version deferred_string = MyVersionInfo("openstack")\ -- cgit