Hello community, here is the log from the commit of package python-parse for openSUSE:Factory checked in at 2019-04-28 20:11:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-parse (Old) and /work/SRC/openSUSE:Factory/.python-parse.new.5536 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-parse" Sun Apr 28 20:11:20 2019 rev:5 rq:697869 version:1.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-parse/python-parse.changes 2019-02-27 17:28:09.875341959 +0100 +++ /work/SRC/openSUSE:Factory/.python-parse.new.5536/python-parse.changes 2019-04-28 20:11:51.786477778 +0200 @@ -1,0 +2,9 @@ +Thu Apr 25 11:47:55 UTC 2019 - [email protected] + +- version update to 1.12.0 + * Do not assume closing brace when an opening one is found +- added sources + https://github.com/r1chardj0n3s/parse/issues/82 + + LICENSE + +------------------------------------------------------------------- Old: ---- parse-1.11.1.tar.gz New: ---- LICENSE parse-1.12.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-parse.spec ++++++ --- /var/tmp/diff_new_pack.cRT0tt/_old 2019-04-28 20:11:52.726477194 +0200 +++ /var/tmp/diff_new_pack.cRT0tt/_new 2019-04-28 20:11:52.730477190 +0200 @@ -18,13 +18,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-parse -Version: 1.11.1 +Version: 1.12.0 Release: 0 Summary: Python module for parsing strings using a "format" syntax License: MIT Group: Development/Languages/Python URL: https://github.com/r1chardj0n3s/parse -Source: https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz +# https://github.com/r1chardj0n3s/parse/issues/82 +Source1: https://raw.githubusercontent.com/r1chardj0n3s/parse/master/LICENSE BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -37,6 +39,7 @@ %prep %setup -q -n parse-%{version} chmod a-x README.rst +cp %{SOURCE1} . %build %python_build @@ -49,6 +52,7 @@ %python_exec setup.py test -v %files %{python_files} +%license LICENSE %doc README.rst %{python_sitelib}/* ++++++ LICENSE ++++++ Copyright (c) 2012-2019 Richard Jones <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ++++++ parse-1.11.1.tar.gz -> parse-1.12.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parse-1.11.1/PKG-INFO new/parse-1.12.0/PKG-INFO --- old/parse-1.11.1/PKG-INFO 2019-01-23 03:02:57.000000000 +0100 +++ new/parse-1.12.0/PKG-INFO 2019-04-07 03:13:15.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: parse -Version: 1.11.1 +Version: 1.12.0 Summary: parse() is the opposite of format() Home-page: https://github.com/r1chardj0n3s/parse Author: Richard Jones @@ -353,6 +353,7 @@ **Version history (in brief)**: + - 1.12.0 Do not assume closing brace when an opening one is found (thanks @mattsep) - 1.11.1 Revert having unicode char in docstring, it breaks Bamboo builds(?!) - 1.11.0 Implement `__contains__` for Result instances. - 1.10.0 Introduce a "letters" matcher, since "w" matches numbers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parse-1.11.1/README.rst new/parse-1.12.0/README.rst --- old/parse-1.11.1/README.rst 2019-01-23 03:02:57.000000000 +0100 +++ new/parse-1.12.0/README.rst 2019-04-07 03:13:14.000000000 +0200 @@ -345,6 +345,7 @@ **Version history (in brief)**: +- 1.12.0 Do not assume closing brace when an opening one is found (thanks @mattsep) - 1.11.1 Revert having unicode char in docstring, it breaks Bamboo builds(?!) - 1.11.0 Implement `__contains__` for Result instances. - 1.10.0 Introduce a "letters" matcher, since "w" matches numbers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parse-1.11.1/parse.egg-info/PKG-INFO new/parse-1.12.0/parse.egg-info/PKG-INFO --- old/parse-1.11.1/parse.egg-info/PKG-INFO 2019-01-23 03:02:57.000000000 +0100 +++ new/parse-1.12.0/parse.egg-info/PKG-INFO 2019-04-07 03:13:14.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: parse -Version: 1.11.1 +Version: 1.12.0 Summary: parse() is the opposite of format() Home-page: https://github.com/r1chardj0n3s/parse Author: Richard Jones @@ -353,6 +353,7 @@ **Version history (in brief)**: + - 1.12.0 Do not assume closing brace when an opening one is found (thanks @mattsep) - 1.11.1 Revert having unicode char in docstring, it breaks Bamboo builds(?!) - 1.11.0 Implement `__contains__` for Result instances. - 1.10.0 Introduce a "letters" matcher, since "w" matches numbers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parse-1.11.1/parse.py new/parse-1.12.0/parse.py --- old/parse-1.11.1/parse.py 2019-01-23 03:02:39.000000000 +0100 +++ new/parse-1.12.0/parse.py 2019-04-07 03:12:25.000000000 +0200 @@ -345,6 +345,7 @@ **Version history (in brief)**: +- 1.12.0 Do not assume closing brace when an opening one is found (thanks @mattsep) - 1.11.1 Revert having unicode char in docstring, it breaks Bamboo builds(?!) - 1.11.0 Implement `__contains__` for Result instances. - 1.10.0 Introduce a "letters" matcher, since "w" matches numbers @@ -415,7 +416,7 @@ ''' from __future__ import absolute_import -__version__ = '1.11.1' +__version__ = '1.12.0' # yes, I now have two problems import re @@ -431,7 +432,7 @@ def with_pattern(pattern, regex_group_count=None): - """Attach a regular expression pattern matcher to a custom type converter + r"""Attach a regular expression pattern matcher to a custom type converter function. This annotates the type converter with the :attr:`pattern` attribute. @@ -885,7 +886,7 @@ e.append(r'\{') elif part == '}}': e.append(r'\}') - elif part[0] == '{': + elif part[0] == '{' and part[-1] == '}': # this will be a braces-delimited field to handle e.append(self._handle_field(part)) else: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parse-1.11.1/setup.cfg new/parse-1.12.0/setup.cfg --- old/parse-1.11.1/setup.cfg 2019-01-23 03:02:57.000000000 +0100 +++ new/parse-1.12.0/setup.cfg 2019-04-07 03:13:15.000000000 +0200 @@ -1,4 +1,5 @@ [egg_info] tag_build = tag_date = 0 +tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parse-1.11.1/test_parse.py new/parse-1.12.0/test_parse.py --- old/parse-1.11.1/test_parse.py 2019-01-23 03:01:28.000000000 +0100 +++ new/parse-1.12.0/test_parse.py 2019-04-07 03:12:25.000000000 +0200 @@ -771,6 +771,10 @@ self.assertEqual(r[0], 'ALICE') self.assertEqual(r[1], 42) + def test_unmatched_brace_doesnt_match(self): + r = parse.parse("{who.txt", "hello") + self.assertIsNone(r) + # ----------------------------------------------------------------------------- # TEST SUPPORT FOR: TestParseType @@ -793,7 +797,6 @@ result = parser.parse(text) self.assertEqual(result, None) - def test_pattern_should_be_used(self): def parse_number(text): return int(text)
