Hello community, here is the log from the commit of package python-configobj for openSUSE:Factory checked in at 2014-09-12 10:03:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-configobj (Old) and /work/SRC/openSUSE:Factory/.python-configobj.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-configobj" Changes: -------- --- /work/SRC/openSUSE:Factory/python-configobj/python-configobj.changes 2014-07-27 18:47:31.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-configobj.new/python-configobj.changes 2014-09-12 10:03:56.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Sep 11 10:37:46 UTC 2014 - toddrme2178@gmail.com + +- Update to version 5.0.6 + * Improves error messages in certain edge cases + +------------------------------------------------------------------- Old: ---- configobj-5.0.5.tar.gz New: ---- configobj-5.0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-configobj.spec ++++++ --- /var/tmp/diff_new_pack.DdyE9Y/_old 2014-09-12 10:03:58.000000000 +0200 +++ /var/tmp/diff_new_pack.DdyE9Y/_new 2014-09-12 10:03:58.000000000 +0200 @@ -16,26 +16,25 @@ # -%define modname configobj -Name: python-%{modname} -Version: 5.0.5 +Name: python-configobj +Version: 5.0.6 Release: 0 Url: https://github.com/DiffSK/configobj Summary: Config file reading, writing and validation License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel +BuildRequires: python-six Requires: python-six # There are no real docs! -Provides: python-%{modname}-docs = %{version} -Obsoletes: python-%{modname}-docs < %{version} +Provides: python-configobj-docs = %{version} +Obsoletes: python-configobj-docs < %{version} %if 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %else BuildArch: noarch -%py_requires %endif %description @@ -58,7 +57,7 @@ * Powerful ``unrepr`` mode for storing/retrieving Python data-types %prep -%setup -q -n %{modname}-%{version} +%setup -q -n configobj-%{version} %build python setup.py build @@ -68,9 +67,9 @@ %files %defattr(-,root,root,-) -%{python_sitelib}/%{modname}.py* +%{python_sitelib}/configobj.py* %{python_sitelib}/validate.py* %{python_sitelib}/_version.py* -%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/configobj-%{version}-py*.egg-info %changelog ++++++ configobj-5.0.5.tar.gz -> configobj-5.0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/configobj-5.0.5/PKG-INFO new/configobj-5.0.6/PKG-INFO --- old/configobj-5.0.5/PKG-INFO 2014-04-28 13:18:13.000000000 +0200 +++ new/configobj-5.0.6/PKG-INFO 2014-08-26 03:16:28.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: configobj -Version: 5.0.5 +Version: 5.0.6 Summary: Config file reading, writing and validation. Home-page: https://github.com/DiffSK/configobj Author: Rob Dennis, Eli Courtwright (Michael Foord & Nicola Larosa original maintainers) @@ -26,6 +26,7 @@ * The order of keys/sections is preserved * Powerful ``unrepr`` mode for storing/retrieving Python data-types + | Release 5.0.6 improves error messages in certain edge cases | Release 5.0.5 corrects a unicode-bug that still existed in writing files | Release 5.0.4 corrects a unicode-bug that still existed in reading files after | fixing lists of string in 5.0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/configobj-5.0.5/_version.py new/configobj-5.0.6/_version.py --- old/configobj-5.0.5/_version.py 2014-04-26 19:06:01.000000000 +0200 +++ new/configobj-5.0.6/_version.py 2014-08-26 03:13:35.000000000 +0200 @@ -1 +1 @@ -__version__ = '5.0.5' \ No newline at end of file +__version__ = '5.0.6' \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/configobj-5.0.5/configobj.py new/configobj-5.0.6/configobj.py --- old/configobj-5.0.5/configobj.py 2014-04-26 19:06:01.000000000 +0200 +++ new/configobj-5.0.6/configobj.py 2014-08-26 03:13:35.000000000 +0200 @@ -1581,7 +1581,7 @@ self.indent_type = indent cur_depth = sect_open.count('[') if cur_depth != sect_close.count(']'): - self._handle_error("Cannot compute the section depth at line %s.", + self._handle_error("Cannot compute the section depth", NestingError, infile, cur_index) continue @@ -1591,7 +1591,7 @@ parent = self._match_depth(this_section, cur_depth).parent except SyntaxError: - self._handle_error("Cannot compute nesting level at line %s.", + self._handle_error("Cannot compute nesting level", NestingError, infile, cur_index) continue elif cur_depth == this_section.depth: @@ -1601,12 +1601,13 @@ # the new section is a child the current section parent = this_section else: - self._handle_error("Section too nested at line %s.", + self._handle_error("Section too nested", NestingError, infile, cur_index) + continue sect_name = self._unquote(sect_name) if sect_name in parent: - self._handle_error('Duplicate section name at line %s.', + self._handle_error('Duplicate section name', DuplicateError, infile, cur_index) continue @@ -1626,7 +1627,7 @@ mat = self._keyword.match(line) if mat is None: self._handle_error( - 'Invalid line ({0!r}) (matched as neither section nor keyword) at line "%s".'.format(line), + 'Invalid line ({0!r}) (matched as neither section nor keyword)'.format(line), ParseError, infile, cur_index) else: # is a keyword value @@ -1641,7 +1642,7 @@ value, infile, cur_index, maxline) except SyntaxError: self._handle_error( - 'Parse error in multiline value at line %s.', + 'Parse error in multiline value', ParseError, infile, cur_index) continue else: @@ -1651,9 +1652,9 @@ value = unrepr(value) except Exception as e: if type(e) == UnknownType: - msg = 'Unknown name or type in value at line %s.' + msg = 'Unknown name or type in value' else: - msg = 'Parse error from unrepr-ing multiline value at line %s.' + msg = 'Parse error from unrepr-ing multiline value' self._handle_error(msg, UnreprError, infile, cur_index) continue @@ -1664,9 +1665,9 @@ value = unrepr(value) except Exception as e: if isinstance(e, UnknownType): - msg = 'Unknown name or type in value at line %s.' + msg = 'Unknown name or type in value' else: - msg = 'Parse error from unrepr-ing value at line %s.' + msg = 'Parse error from unrepr-ing value' self._handle_error(msg, UnreprError, infile, cur_index) continue @@ -1676,14 +1677,14 @@ (value, comment) = self._handle_value(value) except SyntaxError: self._handle_error( - 'Parse error in value at line %s.', + 'Parse error in value', ParseError, infile, cur_index) continue # key = self._unquote(key) if key in this_section: self._handle_error( - 'Duplicate keyword name at line %s.', + 'Duplicate keyword name', DuplicateError, infile, cur_index) continue # add the key. @@ -1734,7 +1735,7 @@ """ line = infile[cur_index] cur_index += 1 - message = text % cur_index + message = '{0} at line {1}.'.format(text, cur_index) error = ErrorClass(message, cur_index, line) if self.raise_errors: # raise the error - parsing stops here diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/configobj-5.0.5/setup.py new/configobj-5.0.6/setup.py --- old/configobj-5.0.5/setup.py 2014-04-26 19:06:01.000000000 +0200 +++ new/configobj-5.0.6/setup.py 2014-08-26 03:13:35.000000000 +0200 @@ -51,6 +51,7 @@ * The order of keys/sections is preserved * Powerful ``unrepr`` mode for storing/retrieving Python data-types +| Release 5.0.6 improves error messages in certain edge cases | Release 5.0.5 corrects a unicode-bug that still existed in writing files | Release 5.0.4 corrects a unicode-bug that still existed in reading files after | fixing lists of string in 5.0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/configobj-5.0.5/validate.py new/configobj-5.0.6/validate.py --- old/configobj-5.0.5/validate.py 2014-02-20 03:41:51.000000000 +0100 +++ new/configobj-5.0.6/validate.py 2014-08-26 03:13:35.000000000 +0200 @@ -538,7 +538,7 @@ ConfigObj, an alternative to ConfigParser which supports lists and can validate a config file using a config schema. For more details on using Validator with ConfigObj see: - http://www.voidspace.org.uk/python/configobj.html + https://configobj.readthedocs.org/en/latest/configobj.html """ # this regex does the initial parsing of the checks -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org