Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-Arpeggio for openSUSE:Factory
checked in at 2021-05-05 20:39:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Arpeggio (Old)
and /work/SRC/openSUSE:Factory/.python-Arpeggio.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Arpeggio"
Wed May 5 20:39:06 2021 rev:11 rq:889823 version:1.10.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Arpeggio/python-Arpeggio.changes
2020-11-12 22:37:25.742018862 +0100
+++
/work/SRC/openSUSE:Factory/.python-Arpeggio.new.2988/python-Arpeggio.changes
2021-05-05 20:39:07.723140854 +0200
@@ -1,0 +2,9 @@
+Sun Apr 25 13:17:14 UTC 2021 - Sebastian Wagner <[email protected]>
+
+- update to version 1.10.2:
+ - Added EditorConfig configuration ([#77]). Thanks KOLANICH@GitHub
+ - Fixed parsing of version from `setup.py` when global encoding isn't UTF-8
+ ([#86]). Thanks neirbowj@GitHub
+ - Fix repetition termination on a successful empty separator match ([#92]).
+
+-------------------------------------------------------------------
Old:
----
python-Arpeggio-1.10.1.tar.gz
New:
----
python-Arpeggio-1.10.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Arpeggio.spec ++++++
--- /var/tmp/diff_new_pack.kyKBHD/_old 2021-05-05 20:39:08.155139000 +0200
+++ /var/tmp/diff_new_pack.kyKBHD/_new 2021-05-05 20:39:08.159138983 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-Arpeggio
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Arpeggio
-Version: 1.10.1
+Version: 1.10.2
Release: 0
Summary: Packrat parser interpreter
License: MIT
++++++ python-Arpeggio-1.10.1.tar.gz -> python-Arpeggio-1.10.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Arpeggio-1.10.1/.editorconfig
new/Arpeggio-1.10.2/.editorconfig
--- old/Arpeggio-1.10.1/.editorconfig 1970-01-01 01:00:00.000000000 +0100
+++ new/Arpeggio-1.10.2/.editorconfig 2021-04-25 13:27:39.000000000 +0200
@@ -0,0 +1,24 @@
+# http://editorconfig.org
+
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+trim_trailing_whitespace = true
+insert_final_newline = true
+charset = utf-8
+end_of_line = lf
+
+[*.{yml, yaml}]
+indent_size = 2
+
+[*.bat]
+indent_style = tab
+end_of_line = crlf
+
+[LICENSE]
+insert_final_newline = false
+
+[Makefile]
+indent_style = tab
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Arpeggio-1.10.1/CHANGELOG.md
new/Arpeggio-1.10.2/CHANGELOG.md
--- old/Arpeggio-1.10.1/CHANGELOG.md 2020-11-01 20:37:36.000000000 +0100
+++ new/Arpeggio-1.10.2/CHANGELOG.md 2021-04-25 13:27:39.000000000 +0200
@@ -12,17 +12,31 @@
reason for the major version increase so when upgrading between major versions
please take a look at related PRs and issues and see if the change affects you.
+
## [Unreleased]
+[Unreleased]: https://github.com/textX/Arpeggio/compare/1.10.2...HEAD
+
+
+## [1.10.2] (released: 2021-04-25)
+
+- Added EditorConfig configuration ([#77]). Thanks KOLANICH@GitHub
+- Fixed parsing of version from `setup.py` when global encoding isn't UTF-8
+ ([#86]). Thanks neirbowj@GitHub
+- Fix repetition termination on a successful empty separator match ([#92]).
-[Unreleased]: https://github.com/textX/Arpeggio/compare/1.10.1...HEAD
+[1.10.2]: https://github.com/textX/Arpeggio/compare/1.10.1...1.10.2
+[#92]: https://github.com/textX/Arpeggio/issues/92
+[#86]: https://github.com/textX/Arpeggio/pull/86
+[#77]: https://github.com/textX/Arpeggio/pull/77
## [1.10.1] (released: 2020-11-01)
-- Fix packaging, exclude examples from wheel.
+- Fix packaging, exclude examples from wheel. Thanks mgorny@GitHub ([#83])
[1.10.1]: https://github.com/textX/Arpeggio/compare/v1.10.0...1.10.1
+[#83]: https://github.com/textX/Arpeggio/pull/83
## [1.10.0] (released: 2020-11-01)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Arpeggio-1.10.1/arpeggio/__init__.py
new/Arpeggio-1.10.2/arpeggio/__init__.py
--- old/Arpeggio-1.10.1/arpeggio/__init__.py 2020-11-01 20:37:36.000000000
+0100
+++ new/Arpeggio-1.10.2/arpeggio/__init__.py 2021-04-25 13:27:39.000000000
+0200
@@ -20,7 +20,7 @@
from arpeggio.utils import isstr
import types
-__version__ = "1.10.1"
+__version__ = "1.10.2"
if sys.version < '3':
text = unicode
@@ -480,9 +480,8 @@
c_pos = parser.position
if sep and result:
sep_result = sep(parser)
- if not sep_result:
- break
- append(sep_result)
+ if sep_result:
+ append(sep_result)
result = p(parser)
if not result:
break
@@ -524,9 +523,8 @@
c_pos = parser.position
if sep and result:
sep_result = sep(parser)
- if not sep_result:
- break
- append(sep_result)
+ if sep_result:
+ append(sep_result)
result = p(parser)
if not result:
break
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Arpeggio-1.10.1/arpeggio/tests/test_parsing_expressions.py
new/Arpeggio-1.10.2/arpeggio/tests/test_parsing_expressions.py
--- old/Arpeggio-1.10.1/arpeggio/tests/test_parsing_expressions.py
2020-11-01 20:37:36.000000000 +0100
+++ new/Arpeggio-1.10.2/arpeggio/tests/test_parsing_expressions.py
2021-04-25 13:27:39.000000000 +0200
@@ -10,7 +10,7 @@
from __future__ import unicode_literals
import pytest
from arpeggio import ParserPython, UnorderedGroup, ZeroOrMore, OneOrMore, \
- NoMatch, EOF, Optional, And, Not, StrMatch
+ NoMatch, EOF, Optional, And, Not, StrMatch, RegExMatch
def test_sequence():
@@ -214,6 +214,39 @@
parser.parse("bbb")
+def test_zero_or_more_with_optional_separator():
+
+ def grammar():
+ return ZeroOrMore("a", sep=RegExMatch(",?")), EOF
+
+ parser = ParserPython(grammar)
+
+ parsed = parser.parse("a, a , a a , a,a, a")
+
+ assert str(parsed) == \
+ "a | , | a | , | a | a | , | a | , | a | , | a | "
+ assert repr(parsed) == \
+ "[ 'a' [0], ',' [1], 'a' [3], ',' [5], 'a' [7], "\
+ "'a' [11], ',' [13], 'a' [16], ',' [17], 'a' [18], ',' [19],"\
+ " 'a' [21], EOF [22] ]"
+
+ parsed = parser.parse("")
+
+ assert str(parsed) == ""
+ assert repr(parsed) == "[ EOF [0] ]"
+
+ parser.parse("aa a")
+
+ with pytest.raises(NoMatch):
+ parser.parse(",a,a ,a")
+
+ with pytest.raises(NoMatch):
+ parser.parse("a,a ,a,")
+
+ with pytest.raises(NoMatch):
+ parser.parse("bbb")
+
+
def test_one_or_more():
def grammar():
@@ -263,6 +296,35 @@
with pytest.raises(NoMatch):
parser.parse("a a, b")
+
+ with pytest.raises(NoMatch):
+ parser.parse(", a, a b")
+
+
+def test_one_or_more_with_optional_separator():
+
+ def grammar():
+ return OneOrMore("a", sep=RegExMatch(",?")), "b"
+
+ parser = ParserPython(grammar)
+
+ parsed = parser.parse("a, a a, a b")
+
+ assert str(parsed) == "a | , | a | a | , | a | b"
+ assert repr(parsed) == \
+ "[ 'a' [0], ',' [1], 'a' [3], 'a' [6], ',' [7], "\
+ "'a' [9], 'b' [12] ]"
+
+ parser.parse("a b")
+
+ with pytest.raises(NoMatch):
+ parser.parse("")
+
+ with pytest.raises(NoMatch):
+ parser.parse("b")
+
+ with pytest.raises(NoMatch):
+ parser.parse("a a, b")
with pytest.raises(NoMatch):
parser.parse(", a, a b")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Arpeggio-1.10.1/docs/getting_started.md
new/Arpeggio-1.10.2/docs/getting_started.md
--- old/Arpeggio-1.10.1/docs/getting_started.md 2020-11-01 20:37:36.000000000
+0100
+++ new/Arpeggio-1.10.2/docs/getting_started.md 2021-04-25 13:27:39.000000000
+0200
@@ -12,7 +12,7 @@
[PyPI](https://pypi.python.org/pypi/Arpeggio/) with the following command:
```bash
- $ pip install Arpeggio
+$ pip install Arpeggio
```
To verify that you have installed Arpeggio correctly run the following command:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Arpeggio-1.10.1/docs/grammars.md
new/Arpeggio-1.10.2/docs/grammars.md
--- old/Arpeggio-1.10.1/docs/grammars.md 2020-11-01 20:37:36.000000000
+0100
+++ new/Arpeggio-1.10.2/docs/grammars.md 2021-04-25 13:27:39.000000000
+0200
@@ -204,7 +204,7 @@
terminator. The second syntax (from `arpeggio.cleanpeg`) uses `=` for
assignment
and does not use rule terminator. Which one you choose is totally up to you. If
your don't like any of these syntaxes you can make your own (look at
-`arpeggio.peg` and `arpeggio.cleanpeg` modules as an examples).
+`arpeggio.peg` and `arpeggio.cleanpeg` modules as an example).
An example of the `calc` grammar given in PEG syntax (`arpeggio.cleanpeg`):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Arpeggio-1.10.1/setup.py new/Arpeggio-1.10.2/setup.py
--- old/Arpeggio-1.10.1/setup.py 2020-11-01 20:37:36.000000000 +0100
+++ new/Arpeggio-1.10.2/setup.py 2021-04-25 13:27:39.000000000 +0200
@@ -12,13 +12,14 @@
# Parsers are defined using python language construction or PEG language.
###############################################################################
+from io import open
import os
import sys
from setuptools import setup
VERSIONFILE = "arpeggio/__init__.py"
VERSION = None
-for line in open(VERSIONFILE, "r").readlines():
+for line in open(VERSIONFILE, "r", encoding='utf8').readlines():
if line.startswith('__version__'):
VERSION = line.split('"')[1]