Hello community, here is the log from the commit of package python-odict for openSUSE:Factory checked in at 2012-06-13 22:46:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-odict (Old) and /work/SRC/openSUSE:Factory/.python-odict.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-odict", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-odict/python-odict.changes 2012-03-16 13:23:23.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-odict.new/python-odict.changes 2012-06-13 22:46:20.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Jun 13 00:13:22 UTC 2012 - [email protected] + +- Update to 1.5.0: + * Implement ``alter_key``. + +------------------------------------------------------------------- Old: ---- odict-1.4.4.tar.gz New: ---- odict-1.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-odict.spec ++++++ --- /var/tmp/diff_new_pack.FULoWX/_old 2012-06-13 22:46:22.000000000 +0200 +++ /var/tmp/diff_new_pack.FULoWX/_new 2012-06-13 22:46:22.000000000 +0200 @@ -11,12 +11,13 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: python-odict -Version: 1.4.4 +Version: 1.5.0 Release: 0 Url: https://github.com/bluedynamics/odict Summary: Ordered dictionary @@ -57,11 +58,12 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +#Tests broken upstream #%%check #python setup.py test %files -%defattr(-,root,root,-) +%defattr(-,root,root) %doc LICENSE.rst README.rst %{python_sitelib}/* ++++++ odict-1.4.4.tar.gz -> odict-1.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/odict-1.4.4/PKG-INFO new/odict-1.5.0/PKG-INFO --- old/odict-1.4.4/PKG-INFO 2011-12-13 16:06:16.000000000 +0100 +++ new/odict-1.5.0/PKG-INFO 2012-05-23 09:36:49.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: odict -Version: 1.4.4 +Version: 1.5.0 Summary: Ordered dictionary. Home-page: https://github.com/bluedynamics/odict Author: BlueDynamics Alliance @@ -146,6 +146,12 @@ Changes ======= + Version 1.5.0 + ------------- + + - Implement ``alter_key``. + [rnix, 2012-05-18] + Version 1.4.4 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/odict-1.4.4/README.rst new/odict-1.5.0/README.rst --- old/odict-1.4.4/README.rst 2011-12-13 16:05:26.000000000 +0100 +++ new/odict-1.5.0/README.rst 2012-05-23 09:35:54.000000000 +0200 @@ -138,6 +138,12 @@ Changes ======= +Version 1.5.0 +------------- + +- Implement ``alter_key``. + [rnix, 2012-05-18] + Version 1.4.4 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/odict-1.4.4/setup.py new/odict-1.5.0/setup.py --- old/odict-1.4.4/setup.py 2011-12-13 16:05:35.000000000 +0100 +++ new/odict-1.5.0/setup.py 2012-05-23 09:35:03.000000000 +0200 @@ -3,7 +3,7 @@ from setuptools import setup, find_packages import os -version = '1.4.4' +version = '1.5.0' shortdesc = 'Ordered dictionary.' longdesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() longdesc += open(os.path.join(os.path.dirname(__file__), 'LICENSE.rst')).read() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/odict-1.4.4/src/odict/pyodict.py new/odict-1.5.0/src/odict/pyodict.py --- old/odict-1.4.4/src/odict/pyodict.py 2011-11-28 12:37:36.000000000 +0100 +++ new/odict-1.5.0/src/odict/pyodict.py 2012-05-18 20:51:34.000000000 +0200 @@ -145,6 +145,22 @@ def keys(self): return list(self.iterkeys()) + + def alter_key(self, old_key, new_key): + dict_impl = self._dict_impl() + val = dict_impl.__getitem__(self, old_key) + dict_impl.__delitem__(self, old_key) + if val[0] != _nil: + prev = dict_impl.__getitem__(self, val[0]) + dict_impl.__setitem__(self, val[0], [prev[0], prev[1], new_key]) + else: + dict_impl.__setattr__(self, 'lh', new_key) + if val[2] != _nil: + next = dict_impl.__getitem__(self, val[2]) + dict_impl.__setitem__(self, val[2], [new_key, next[1], next[2]]) + else: + dict_impl.__setattr__(self, 'lt', new_key) + dict_impl.__setitem__(self, new_key, val) def itervalues(self): dict_impl = self._dict_impl() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/odict-1.4.4/src/odict.egg-info/PKG-INFO new/odict-1.5.0/src/odict.egg-info/PKG-INFO --- old/odict-1.4.4/src/odict.egg-info/PKG-INFO 2011-12-13 16:06:16.000000000 +0100 +++ new/odict-1.5.0/src/odict.egg-info/PKG-INFO 2012-05-23 09:36:49.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: odict -Version: 1.4.4 +Version: 1.5.0 Summary: Ordered dictionary. Home-page: https://github.com/bluedynamics/odict Author: BlueDynamics Alliance @@ -146,6 +146,12 @@ Changes ======= + Version 1.5.0 + ------------- + + - Implement ``alter_key``. + [rnix, 2012-05-18] + Version 1.4.4 ------------- -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
