Hello community,

here is the log from the commit of package python-calmjs.parse for 
openSUSE:Factory checked in at 2020-03-30 23:04:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-calmjs.parse (Old)
 and      /work/SRC/openSUSE:Factory/.python-calmjs.parse.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-calmjs.parse"

Mon Mar 30 23:04:08 2020 rev:3 rq:789692 version:1.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-calmjs.parse/python-calmjs.parse.changes  
2020-01-20 22:54:30.203321788 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-calmjs.parse.new.3160/python-calmjs.parse.changes
        2020-03-30 23:04:24.444210834 +0200
@@ -1,0 +2,11 @@
+Mon Mar 30 09:24:12 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to 1.2.4
+  * Correct usage of ``__doc__`` to support level 2 optimized mode.
+  * Corrected some minor string definition syntax, where raw string prefix
+    should be used but was not previously.
+  * Correctly include LICENSE file in sdist.
+  * Include the correct test data general form for some previously added
+    test cases to better accommodate already planned future features.
+
+-------------------------------------------------------------------

Old:
----
  1.2.1.tar.gz

New:
----
  1.2.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-calmjs.parse.spec ++++++
--- /var/tmp/diff_new_pack.cwLRuh/_old  2020-03-30 23:04:25.560211470 +0200
+++ /var/tmp/diff_new_pack.cwLRuh/_new  2020-03-30 23:04:25.564211472 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-calmjs.parse
-Version:        1.2.1
+Version:        1.2.4
 Release:        0
 Summary:        Various parsers for ECMA standards
 License:        MIT

++++++ 1.2.1.tar.gz -> 1.2.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/.flake8 
new/calmjs.parse-1.2.4/.flake8
--- old/calmjs.parse-1.2.1/.flake8      2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/.flake8      2020-03-17 11:01:47.000000000 +0100
@@ -1,21 +1,7 @@
 [flake8]
-ignore =
-    # W503: default ignore for some reason not applied;
-    W503,
-
-    # E221 multiple spaces before operator
-    # - src/calmjs/parse/lexer.py,
-    E221,
-
-    # E501 line too long
-    # - src/calmjs/parse/tests/test_es5_lexer.py
-    E501,
-
-    # various files/rules, was not a problem flake in 3.5.0
-    W504,
-    # not even sure what is this one is about, because it's pointing to
-    # locations that made no sense.
-    W605,
+per-file-ignores =
+    src/calmjs/parse/tests/lexer.py:E501
+    src/calmjs/parse/lexers/es5.py:E221
 
 include =
     src/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/.travis.yml 
new/calmjs.parse-1.2.4/.travis.yml
--- old/calmjs.parse-1.2.1/.travis.yml  2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/.travis.yml  2020-03-17 11:01:47.000000000 +0100
@@ -87,6 +87,7 @@
   - python setup.py develop
 script:
   - flake8
+  - python -OO -m unittest calmjs.parse.tests.make_suite
   - coverage run --include=src/* -m unittest calmjs.parse.tests.make_suite
   - coverage report -m
 after_success:
@@ -102,5 +103,5 @@
     - 1.0.x
     - 1.1.x
     - 1.2.x
-    - 1.2.1
+    - 1.2.4
     - 2.0.x
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/CHANGES.rst 
new/calmjs.parse-1.2.4/CHANGES.rst
--- old/calmjs.parse-1.2.1/CHANGES.rst  2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/CHANGES.rst  2020-03-17 11:01:47.000000000 +0100
@@ -1,6 +1,26 @@
 Changelog
 =========
 
+1.2.4 - 2020-03-17
+------------------
+
+- Correct usage of ``__doc__`` to support level 2 optimized mode.  [
+  `#29 <https://github.com/calmjs/calmjs.parse/issues/29>`_
+  `#30 <https://github.com/calmjs/calmjs.parse/issues/30>`_
+  ]
+- Corrected some minor string definition syntax, where raw string prefix
+  should be used but was not previously.
+
+1.2.2 - 2020-01-18
+------------------
+
+- Correctly include LICENSE file in sdist.  [
+  `#27 <https://github.com/calmjs/calmjs.parse/issues/27>`_
+  `#28 <https://github.com/calmjs/calmjs.parse/issues/28>`_
+  ]
+- Include the correct test data general form for some previously added
+  test cases to better accommodate already planned future features.
+
 1.2.1 - 2019-11-21
 ------------------
 
@@ -28,8 +48,8 @@
   ]
 
   - Enabled by passing ``with_comments=True`` to the parser..
-  - The limitation lines in the fact that if a node maps to multiple
-    tokens (e.g. ``if...else``), the comments that lie immediate before
+  - The limitation lies in the fact that if a node has multiple token
+    slots (e.g. ``if...else``), the comments that lie immediate before
     the first will be captured, while the comments that lie immediate to
     the subsequent ones will be omitted.  The fix would involve
     providing a full syntax tree node types, and that the parser rules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/MANIFEST.in 
new/calmjs.parse-1.2.4/MANIFEST.in
--- old/calmjs.parse-1.2.1/MANIFEST.in  2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/MANIFEST.in  2020-03-17 11:01:47.000000000 +0100
@@ -3,5 +3,6 @@
 recursive-include docs *.rst
 include *.txt
 include *.rst
+include LICENSE
 recursive-exclude src *.pyc
 recursive-exclude src *.pyo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/README.rst 
new/calmjs.parse-1.2.4/README.rst
--- old/calmjs.parse-1.2.1/README.rst   2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/README.rst   2020-03-17 11:01:47.000000000 +0100
@@ -5,12 +5,12 @@
 ECMAScript; a near feature complete fork of |slimit|_.  A CLI front-end
 for this package is shipped separately as |crimp|_.
 
-.. image:: https://travis-ci.org/calmjs/calmjs.parse.svg?branch=1.2.1
+.. image:: https://travis-ci.org/calmjs/calmjs.parse.svg?branch=1.2.4
     :target: https://travis-ci.org/calmjs/calmjs.parse
-.. image:: 
https://ci.appveyor.com/api/projects/status/5dj8dnu9gmj02msu/branch/1.2.1?svg=true
-    :target: 
https://ci.appveyor.com/project/metatoaster/calmjs-parse/branch/1.2.1
-.. image:: 
https://coveralls.io/repos/github/calmjs/calmjs.parse/badge.svg?branch=1.2.1
-    :target: https://coveralls.io/github/calmjs/calmjs.parse?branch=1.2.1
+.. image:: 
https://ci.appveyor.com/api/projects/status/5dj8dnu9gmj02msu/branch/1.2.4?svg=true
+    :target: 
https://ci.appveyor.com/project/metatoaster/calmjs-parse/branch/1.2.4
+.. image:: 
https://coveralls.io/repos/github/calmjs/calmjs.parse/badge.svg?branch=1.2.4
+    :target: https://coveralls.io/github/calmjs/calmjs.parse?branch=1.2.4
 
 .. |calmjs.parse| replace:: ``calmjs.parse``
 .. |crimp| replace:: ``crimp``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/setup.py 
new/calmjs.parse-1.2.4/setup.py
--- old/calmjs.parse-1.2.1/setup.py     2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/setup.py     2020-03-17 11:01:47.000000000 +0100
@@ -13,7 +13,7 @@
             call, [sys.executable, '-m', 'calmjs.parse.parsers.optimize'])
 
 
-version = '1.2.1'
+version = '1.2.4'
 
 classifiers = """
 Development Status :: 5 - Production/Stable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/src/calmjs/parse/factory.py 
new/calmjs.parse-1.2.4/src/calmjs/parse/factory.py
--- old/calmjs.parse-1.2.1/src/calmjs/parse/factory.py  2019-11-21 
03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/src/calmjs/parse/factory.py  2020-03-17 
11:01:47.000000000 +0100
@@ -67,10 +67,11 @@
             )
             return f(node, *a, **kw)
         # a dumb and lazy docstring replacement
-        unparse.__doc__ = f.__doc__.replace(
-            'ast\n        The AST ',
-            'source\n        The source ',
-        )
+        if f.__doc__:
+            unparse.__doc__ = f.__doc__.replace(
+                'ast\n        The AST ',
+                'source\n        The source ',
+            )
         return unparse
 
     def build_parse(f):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/src/calmjs/parse/tests/lexer.py 
new/calmjs.parse-1.2.4/src/calmjs/parse/tests/lexer.py
--- old/calmjs.parse-1.2.1/src/calmjs/parse/tests/lexer.py      2019-11-21 
03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/src/calmjs/parse/tests/lexer.py      2020-03-17 
11:01:47.000000000 +0100
@@ -210,7 +210,7 @@
         (r"""/\[[^\]]+\]/gi""", [r"""REGEX /\[[^\]]+\]/gi"""]),
     ), (
         'regex_stress_test_8',
-        ("""
+        (r"""
          rexl.re = {
          NAME: /^(?!\d)(?:\w)+|^"(?:[^"]|"")+"/,
          UNQUOTED_LITERAL: /^@(?:(?!\d)(?:\w|\:)+|^"(?:[^"]|"")+")\[[^\]]+\]/,
@@ -233,7 +233,7 @@
          "RBRACE }", "SEMI ;"]),
     ), (
         'regex_stress_test_9',
-        ("""
+        (r"""
          rexl.re = {
          NAME: /^(?!\d)(?:\w)+|^"(?:[^"]|"")+"/,
          UNQUOTED_LITERAL: /^@(?:(?!\d)(?:\w|\:)+|^"(?:[^"]|"")+")\[[^\]]+\]/,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/calmjs.parse-1.2.1/src/calmjs/parse/tests/parser.py 
new/calmjs.parse-1.2.4/src/calmjs/parse/tests/parser.py
--- old/calmjs.parse-1.2.1/src/calmjs/parse/tests/parser.py     2019-11-21 
03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/src/calmjs/parse/tests/parser.py     2020-03-17 
11:01:47.000000000 +0100
@@ -1664,7 +1664,7 @@
         """,
     ), (
         'regex_test',
-        'return (/h\d/i).test(elem.nodeName);',
+        r'return (/h\d/i).test(elem.nodeName);',
         r"""
         <Program @1:1 ?children=[<Return @1:1 expr=<FunctionCall @1:8 args=<
           Arguments @1:21 items=[
@@ -1682,7 +1682,7 @@
         'slash_as_regex_after_block',
         '{}/a/g',
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <Block @1:1 >,
           <ExprStatement @1:3 expr=<Regex @1:3 value='/a/g'>>
         ]>
@@ -1692,7 +1692,7 @@
         'slash_as_div_after_plus_brace',
         '+{}/a/g',
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <ExprStatement @1:1 expr=<BinOp @1:6 left=<BinOp @1:4 left=<
                 UnaryExpr @1:1 op='+', value=<Object @1:2 properties=[]>>,
               op='/',
@@ -1705,7 +1705,7 @@
         'slash_as_regex_after_plus_plus_as_unary',
         '++/a/.b',
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <ExprStatement @1:1 expr=<UnaryExpr @1:1 op='++',
             value=<DotAccessor @1:6 identifier=<PropIdentifier @1:7 value='b'>,
               node=<Regex @1:3 value='/a/'>>>>
@@ -1715,7 +1715,7 @@
         'slash_as_div_after_plus_plus_as_postfix_expr',
         'i++/a/b',
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <ExprStatement @1:1 expr=<BinOp @1:6 left=<BinOp @1:4 left=<
                 PostfixExpr @1:2 op='++', value=<Identifier @1:1 value='i'>>,
               op='/', right=<Identifier @1:5 value='a'>>,
@@ -1726,7 +1726,7 @@
         'slash_as_regex_after_minus_minus_as_unary',
         '--/a/.b',
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <ExprStatement @1:1 expr=<UnaryExpr @1:1 op='--',
             value=<DotAccessor @1:6 identifier=<PropIdentifier @1:7 value='b'>,
               node=<Regex @1:3 value='/a/'>>>>
@@ -1736,7 +1736,7 @@
         'slash_as_div_after_minus_minus_as_postfix_expr',
         'i--/a/b',
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <ExprStatement @1:1 expr=<BinOp @1:6 left=<BinOp @1:4 left=<
                 PostfixExpr @1:2 op='--', value=<Identifier @1:1 value='i'>>,
               op='/', right=<Identifier @1:5 value='a'>>,
@@ -1751,7 +1751,7 @@
         /foo/g
         """,
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <If @1:1 alternative=None, consequent=<Block @1:8 >,
             predicate=<Number @1:5 value='0'>>,
           <ExprStatement @3:1 expr=<Regex @3:1 value='/foo/g'>>
@@ -1765,7 +1765,7 @@
         var v = f(5) / f(5);
         """,
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <ExprStatement @1:1 expr=<FunctionCall @1:1 args=<
              Arguments @1:16 items=[]>,
             identifier=<GroupingOp @1:1 expr=<FuncExpr @1:2 elements=[],
@@ -2803,7 +2803,7 @@
     ), (
         'unmatched_backslash',
         r'var x = /\/;',
-        "Error parsing regular expression '/\/;' at 1:9",
+        r"Error parsing regular expression '/\/;' at 1:9",
     )]), ECMARegexSyntaxError)
 
 
@@ -2918,7 +2918,7 @@
         if (0){}/*asdf*//a/
         """,
         r"""
-        <ES5Program @1:1 ?children=[
+        <Program @1:1 ?children=[
           <If @1:1 alternative=None, consequent=<Block @1:7 >,
             predicate=<Number @1:5 value='0'>>,
           <ExprStatement @1:17 expr=<Regex @1:17 value='/a/'>>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/calmjs.parse-1.2.1/src/calmjs/parse/tests/test_es5_unparser.py 
new/calmjs.parse-1.2.4/src/calmjs/parse/tests/test_es5_unparser.py
--- old/calmjs.parse-1.2.1/src/calmjs/parse/tests/test_es5_unparser.py  
2019-11-21 03:32:10.000000000 +0100
+++ new/calmjs.parse-1.2.4/src/calmjs/parse/tests/test_es5_unparser.py  
2020-03-17 11:01:47.000000000 +0100
@@ -1455,7 +1455,7 @@
 
     ), (
         'function_definition',
-        """
+        r"""
         String.prototype.foo = function(data) {
           var tmpl = this.toString();
           return tmpl.replace(/{{\s*(.*?)\s*}}/g, function(a, b) {
@@ -1501,7 +1501,7 @@
 
     ), (
         'regex_test',
-        """
+        r"""
         return (/h\d/i).test(elem.nodeName);
         """,
 


Reply via email to