summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-01-03 09:22:00 -0800
committerMonty Taylor <mordred@inaugust.com>2013-01-11 17:34:13 -0800
commit7ee9613600db879abff65da48e6e7293b4c4c659 (patch)
treee3a5109b0e079d5953d8d798f15f5b378a1cdcc7 /tests
parenta8973c524c9fe901972ba61f34dafac7438417c9 (diff)
downloadoslo-7ee9613600db879abff65da48e6e7293b4c4c659.tar.gz
oslo-7ee9613600db879abff65da48e6e7293b4c4c659.tar.xz
oslo-7ee9613600db879abff65da48e6e7293b4c4c659.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_version.py7
1 files changed, 4 insertions, 3 deletions
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")\