Hello community, here is the log from the commit of package python-poyo for openSUSE:Factory checked in at 2019-03-26 15:45:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-poyo (Old) and /work/SRC/openSUSE:Factory/.python-poyo.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-poyo" Tue Mar 26 15:45:44 2019 rev:3 rq:688607 version:0.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-poyo/python-poyo.changes 2018-12-24 11:41:22.613452934 +0100 +++ /work/SRC/openSUSE:Factory/.python-poyo.new.25356/python-poyo.changes 2019-03-26 15:45:46.376071855 +0100 @@ -1,0 +2,6 @@ +Tue Mar 26 08:36:47 UTC 2019 - [email protected] + +- version update to 0.4.2 + * Resolve a bug with list items and comments + +------------------------------------------------------------------- Old: ---- poyo-0.4.1.tar.gz New: ---- poyo-0.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-poyo.spec ++++++ --- /var/tmp/diff_new_pack.jhkz1d/_old 2019-03-26 15:45:47.172071472 +0100 +++ /var/tmp/diff_new_pack.jhkz1d/_new 2019-03-26 15:45:47.172071472 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-poyo # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-poyo -Version: 0.4.1 +Version: 0.4.2 Release: 0 Summary: YAML Parser for Python License: MIT ++++++ poyo-0.4.1.tar.gz -> poyo-0.4.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/CHANGES.md new/poyo-0.4.2/CHANGES.md --- old/poyo-0.4.1/CHANGES.md 1970-01-01 01:00:00.000000000 +0100 +++ new/poyo-0.4.2/CHANGES.md 2018-05-22 12:35:33.000000000 +0200 @@ -0,0 +1,128 @@ +# 0.4.2 + +### Bugfixes + +* Resolve a bug with list items and comments, thanks to + [@ishanarora][@ishanarora] (#18) + +[@ishanarora]: https://github.com/ishanarora + +# 0.4.1 + +### Bugfixes + +* Update regex patterns to allow for no newline at the end of the given string, + thanks to [@mikeckennedy][@mikeckennedy] and [@hackebrot][@hackebrot] + (#13, #14) + +[@mikeckennedy]: https://github.com/mikeckennedy + +# 0.4.0 + +### Features + +* Add support for block comments in sections, thanks to [@jakubka][@jakubka] + and [@hackebrot][@hackebrot] (#7) + +```yaml +default_context: # foobar + greeting: こんにちは + # comment + # allthethings + docs: true + + 123: 456.789 +``` + +### Improvements + +* Set up ``poyo`` logger with NullHandler to log DEBUG messages when parsing, + thanks to [@hackebrot][@hackebrot] + +```text +DEBUG:poyo.parser:parse_simple <- 123: 456.789 +DEBUG:poyo.parser:parse_int <- 123 +DEBUG:poyo.parser:parse_int -> 123 +DEBUG:poyo.parser:parse_float <- 456.789 +DEBUG:poyo.parser:parse_float -> 456.789 +DEBUG:poyo.parser:parse_simple -> <Simple name: 123, value: 456.789> +``` + +### Bugfixes + +* Fix an issue around section names if the line contained more than one colon + symbol, thanks to [@gvalkov][@gvalkov] and [@hackebrot][@hackebrot] (#9) +* Fix an issue that caused partial matches to raise an error, thanks to + [@gvalkov][@gvalkov] and [@hackebrot][@hackebrot] (#9) + +[@gvalkov]: https://github.com/gvalkov +[@hackebrot]: https://github.com/hackebrot +[@jakubka]: https://github.com/jakubka + + +# 0.3.0 + +### Features + +* Add support for blank lines and comment lines in lists, thanks to + [@eykd][@eykd] and [@hackebrot][@hackebrot] (#5) + +```yaml +doc_tools: + # docs or didn't happen + - mkdocs + - 'sphinx' + + - null +``` + +### Improvements + +* Add tests for patterns, thanks to [@eykd][@eykd] and [@hackebrot][@hackebrot] + (#5) + +### Bugfixes + +* Solve an issue with ``~`` character not being recognized as ``None`` + +[@eykd]: https://github.com/eykd +[@hackebrot]: https://github.com/hackebrot + + +# 0.2.0 + +### Features + +* Add support for list values + +```yaml +doc_tools: + - mkdocs + - 'sphinx' + - null +``` +* Expose ``PoyoException`` in API + +```python +from poyo import PoyoException +``` + +### Bugfixes + +* Ignore dashes in lines + +```yaml +--- +default_context: + foo: "hallo #welt" #Inline comment :) + docs: true +``` + + +# 0.1.0 + +First release on PyPI. + +### Features + +* ``parse_string()`` to load a YAML string as a Python dict diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/CONTRIBUTORS.rst new/poyo-0.4.2/CONTRIBUTORS.rst --- old/poyo-0.4.1/CONTRIBUTORS.rst 2017-03-21 13:19:42.000000000 +0100 +++ new/poyo-0.4.2/CONTRIBUTORS.rst 2018-05-22 11:51:11.000000000 +0200 @@ -11,6 +11,7 @@ ------------------------- * David Eyk (`@eykd`_) +* Ishan Arora (`@ishanarora`_) Bug Reports and Suggestions --------------------------- @@ -24,7 +25,8 @@ .. _`@eykd`: https://github.com/eykd .. _`@gvalkov`: https://github.com/gvalkov .. _`@hackebrot`: https://github.com/hackebrot +.. _`@ishanarora`: https://github.com/ishanarora .. _`@jakubka`: https://github.com/jakubka +.. _`@mikeckennedy`: https://github.com/mikeckennedy .. _`@nchammas`: https://github.com/nchammas .. _`@sathlan`: https://github.com/sathlan -.. _`@mikeckennedy`: https://github.com/mikeckennedy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/HISTORY.rst new/poyo-0.4.2/HISTORY.rst --- old/poyo-0.4.1/HISTORY.rst 2015-12-28 00:47:42.000000000 +0100 +++ new/poyo-0.4.2/HISTORY.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -.. :changelog: - -History -------- - -0.1.0 (2015-12-28) ------------------- - -First release on PyPI. - -Features: - -* ``parse_string()`` to load a YAML string as a Python dict diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/MANIFEST.in new/poyo-0.4.2/MANIFEST.in --- old/poyo-0.4.1/MANIFEST.in 2016-05-22 20:34:24.000000000 +0200 +++ new/poyo-0.4.2/MANIFEST.in 2018-05-22 12:45:53.000000000 +0200 @@ -1,6 +1,6 @@ include CONTRIBUTORS.rst include CONTRIBUTING.rst -include HISTORY.rst +include CHANGES.md include LICENSE include README.rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/PKG-INFO new/poyo-0.4.2/PKG-INFO --- old/poyo-0.4.1/PKG-INFO 2017-03-21 15:42:41.000000000 +0100 +++ new/poyo-0.4.2/PKG-INFO 2018-09-28 12:35:27.000000000 +0200 @@ -1,10 +1,12 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: poyo -Version: 0.4.1 +Version: 0.4.2 Summary: A lightweight YAML Parser for Python Home-page: https://github.com/hackebrot/poyo Author: Raphael Pierzina Author-email: [email protected] +Maintainer: Raphael Pierzina +Maintainer-email: [email protected] License: MIT Description: ==== Poyo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/poyo/__init__.py new/poyo-0.4.2/poyo/__init__.py --- old/poyo-0.4.1/poyo/__init__.py 2017-03-21 13:25:30.000000000 +0100 +++ new/poyo-0.4.2/poyo/__init__.py 2018-09-26 10:22:48.000000000 +0200 @@ -7,7 +7,7 @@ __author__ = 'Raphael Pierzina' __email__ = '[email protected]' -__version__ = '0.4.1' +__version__ = '0.4.2' logging.getLogger(__name__).addHandler(logging.NullHandler()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/poyo/patterns.py new/poyo-0.4.2/poyo/patterns.py --- old/poyo-0.4.1/poyo/patterns.py 2017-03-21 13:18:41.000000000 +0100 +++ new/poyo-0.4.2/poyo/patterns.py 2018-05-22 11:44:33.000000000 +0200 @@ -19,7 +19,7 @@ _LIST_VALUE = ( _BLANK + r"-" + _BLANK + - r"('.*?'|\".*?\"|[^#]+?)" + + r"('.*?'|\".*?\"|[^#\n]+?)" + _INLINE_COMMENT + _OPT_NEWLINE ) _LIST_ITEM = _BLANK_LINE + r"|" + _COMMENT + r"|" + _LIST_VALUE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/poyo.egg-info/PKG-INFO new/poyo-0.4.2/poyo.egg-info/PKG-INFO --- old/poyo-0.4.1/poyo.egg-info/PKG-INFO 2017-03-21 15:42:41.000000000 +0100 +++ new/poyo-0.4.2/poyo.egg-info/PKG-INFO 2018-09-28 12:35:27.000000000 +0200 @@ -1,10 +1,12 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: poyo -Version: 0.4.1 +Version: 0.4.2 Summary: A lightweight YAML Parser for Python Home-page: https://github.com/hackebrot/poyo Author: Raphael Pierzina Author-email: [email protected] +Maintainer: Raphael Pierzina +Maintainer-email: [email protected] License: MIT Description: ==== Poyo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/poyo.egg-info/SOURCES.txt new/poyo-0.4.2/poyo.egg-info/SOURCES.txt --- old/poyo-0.4.1/poyo.egg-info/SOURCES.txt 2017-03-21 15:42:41.000000000 +0100 +++ new/poyo-0.4.2/poyo.egg-info/SOURCES.txt 2018-09-28 12:35:27.000000000 +0200 @@ -1,6 +1,6 @@ +CHANGES.md CONTRIBUTING.rst CONTRIBUTORS.rst -HISTORY.rst LICENSE MANIFEST.in README.rst @@ -18,6 +18,7 @@ poyo.egg-info/not-zip-safe poyo.egg-info/top_level.txt tests/foobar.yml +tests/lists.yml tests/no-newline-list.yml tests/no-newline.yml tests/test_parser.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/setup.cfg new/poyo-0.4.2/setup.cfg --- old/poyo-0.4.1/setup.cfg 2017-03-21 15:42:41.000000000 +0100 +++ new/poyo-0.4.2/setup.cfg 2018-09-28 12:35:27.000000000 +0200 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.4.1 +current_version = 0.4.2 commit = True tag = True tag_name = {new_version} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/setup.py new/poyo-0.4.2/setup.py --- old/poyo-0.4.1/setup.py 2017-03-21 15:29:45.000000000 +0100 +++ new/poyo-0.4.2/setup.py 2018-09-26 10:22:48.000000000 +0200 @@ -14,7 +14,7 @@ setup( name='poyo', - version='0.4.1', + version='0.4.2', author='Raphael Pierzina', author_email='[email protected]', maintainer='Raphael Pierzina', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/tests/lists.yml new/poyo-0.4.2/tests/lists.yml --- old/poyo-0.4.1/tests/lists.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/poyo-0.4.2/tests/lists.yml 2018-05-22 11:44:33.000000000 +0200 @@ -0,0 +1,13 @@ +a: + - 1 + - 2 # comment between a and b +b: + - 3 + - 4 +c: + - 5 + - 6 +# comment between c and d +d: + - 7 + - 8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/poyo-0.4.1/tests/test_parser.py new/poyo-0.4.2/tests/test_parser.py --- old/poyo-0.4.1/tests/test_parser.py 2017-03-21 13:18:41.000000000 +0100 +++ new/poyo-0.4.2/tests/test_parser.py 2018-05-22 11:44:33.000000000 +0200 @@ -71,3 +71,26 @@ }, } assert parse_string(string_data) == expected + + [email protected]('ymlfile', ['lists']) +def test_parse_string_lists(string_data): + expected = { + u'a': [ + 1, + 2, + ], + u'b': [ + 3, + 4, + ], + u'c': [ + 5, + 6, + ], + u'd': [ + 7, + 8, + ], + } + assert parse_string(string_data) == expected
