Hello community,

here is the log from the commit of package python-ceilometerclient for 
openSUSE:Factory checked in at 2013-06-13 21:32:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ceilometerclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-ceilometerclient.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ceilometerclient"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-ceilometerclient/python-ceilometerclient.changes
  2013-04-29 14:16:04.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-ceilometerclient.new/python-ceilometerclient.changes
     2013-06-13 21:32:05.000000000 +0200
@@ -1,0 +2,10 @@
+Mon May  6 11:29:59 UTC 2013 - [email protected]
+
+- update requires to python-PrettyTable 
+
+-------------------------------------------------------------------
+Thu Apr 25 15:49:11 UTC 2013 - [email protected]
+
+- add 0001-Sync-requirements-with-openstack-common-requirements.patch 
+
+-------------------------------------------------------------------

New:
----
  0001-Sync-requirements-with-openstack-common-requirements.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ceilometerclient.spec ++++++
--- /var/tmp/diff_new_pack.Pv34Oh/_old  2013-06-13 21:32:06.000000000 +0200
+++ /var/tmp/diff_new_pack.Pv34Oh/_new  2013-06-13 21:32:06.000000000 +0200
@@ -27,6 +27,7 @@
 License:        Apache-2.0
 Group:          Development/Languages/Python
 Source:         python-ceilometerclient-1.0.0.tar.gz
+Patch0:         0001-Sync-requirements-with-openstack-common-requirements.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  openstack-suse-macros
 BuildRequires:  python-base
@@ -36,10 +37,10 @@
 %else
 BuildArch:      noarch
 %endif
+Requires:       python-PrettyTable >= 0.6
 Requires:       python-httplib2
 Requires:       python-iso8601 >= 0.1.4
 Requires:       python-keystoneclient >= 0.1.2
-Requires:       python-prettytable >= 0.6
 
 %description
 This is a client library for Ceilometer built on the Ceilometer API. It
@@ -62,6 +63,7 @@
 
 %prep
 %setup -q -n python-ceilometerclient-1.0.0
+%patch0 -p1
 %openstack_cleanup_prep
 echo %{version} > ceilometerclient/versioninfo
 

++++++ 0001-Sync-requirements-with-openstack-common-requirements.patch ++++++
>From 169d18e39b84af2ca7c63e6117acb4d30030c781 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <[email protected]>
Date: Thu, 25 Apr 2013 17:47:00 +0200
Subject: [PATCH] Sync requirements with openstack-common/requirements

Allow prettytable 0.7.x specifically. Add testcase.

Change-Id: If0d114cc6ec0f84ea75d798adb5ebc424605b22e
---
 tests/test_utils.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/pip-requires  |  5 +++--
 tools/test-requires |  8 ++++----
 3 files changed, 59 insertions(+), 6 deletions(-)
 create mode 100644 tests/test_utils.py

diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100644
index 0000000..b17b496
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,52 @@
+# Copyright 2013 OpenStack LLC.
+# All Rights Reserved.
+#
+#    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
+#    a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+#    License for the specific language governing permissions and limitations
+#    under the License.
+
+
+import cStringIO
+import sys
+import unittest2
+
+from ceilometerclient.common import utils
+
+
+class UtilsTest(unittest2.TestCase):
+
+    def test_prettytable(self):
+        class Struct:
+            def __init__(self, **entries):
+                self.__dict__.update(entries)
+
+        # test that the prettytable output is wellformatted (left-aligned)
+        columns = ['ID', 'Name']
+        val = ['Name1', 'another', 'veeeery long']
+        images = [Struct(**{'id': i ** 16, 'name': val[i]})
+                  for i in range(len(val))]
+
+        saved_stdout = sys.stdout
+        try:
+            sys.stdout = output_dict = cStringIO.StringIO()
+            utils.print_dict({'K': 'k', 'Key': 'Value'})
+
+        finally:
+            sys.stdout = saved_stdout
+
+        self.assertEqual(output_dict.getvalue(), '''\
++----------+-------+
+| Property | Value |
++----------+-------+
+| K        | k     |
+| Key      | Value |
++----------+-------+
+''')
diff --git a/tools/pip-requires b/tools/pip-requires
index 632d17b..f3314cb 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -1,5 +1,6 @@
+# This file is managed by openstack-depends
 argparse
-prettytable>=0.6,<0.7
-python-keystoneclient>=0.1.2
 httplib2
 iso8601>=0.1.4
+prettytable>=0.6,<0.8
+python-keystoneclient>=0.2,<0.3
diff --git a/tools/test-requires b/tools/test-requires
index 9f9f13a..54b19cc 100644
--- a/tools/test-requires
+++ b/tools/test-requires
@@ -1,11 +1,11 @@
+# This file is managed by openstack-depends
 distribute>=0.6.24
-mox
+mox>=0.5.3
 nose
 nose-exclude
+nosehtmloutput>=0.0.3
 nosexcover
-openstack.nose_plugin
-nosehtmloutput
+openstack.nose_plugin>=0.7
 pep8==1.3.3
-setuptools-git>=0.4
 sphinx>=1.1.2
 unittest2
-- 
1.8.1.4

++++++ _service ++++++
--- /var/tmp/diff_new_pack.Pv34Oh/_old  2013-06-13 21:32:06.000000000 +0200
+++ /var/tmp/diff_new_pack.Pv34Oh/_new  2013-06-13 21:32:06.000000000 +0200
@@ -1,7 +1,7 @@
 <services>
   <service name="git_tarballs" mode="disabled">
     <param 
name="url">http://tarballs.openstack.org/python-ceilometerclient/python-ceilometerclient-1.0.0.tar.gz</param>
-    <param name="email">[email protected]</param>
+    <param name="email">[email protected]</param>
     <param name="plain-version">True</param>
   </service>
 </services>

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to