Hello community,

here is the log from the commit of package python-jmespath for openSUSE:Factory 
checked in at 2017-11-10 14:58:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jmespath (Old)
 and      /work/SRC/openSUSE:Factory/.python-jmespath.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jmespath"

Fri Nov 10 14:58:37 2017 rev:11 rq:540359 version:0.9.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jmespath/python-jmespath.changes  
2017-04-20 20:49:27.780580041 +0200
+++ /work/SRC/openSUSE:Factory/.python-jmespath.new/python-jmespath.changes     
2017-11-10 14:58:59.644612939 +0100
@@ -1,0 +2,10 @@
+Thu Nov  9 23:08:53 UTC 2017 - [email protected]
+
+- Update to 0.9.3:
+  + Fix issue where long types in py2 and Decimal types were not
+    being evaluated as numbers (issue 125)
+  + Handle numbers in scientific notation in to_number() function (issue 120)
+  + Fix issue where custom functions would override the function
+    table of the builtin function class (issue 133)
+
+-------------------------------------------------------------------

Old:
----
  jmespath-0.9.2.tar.gz

New:
----
  jmespath-0.9.3.tar.gz

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

Other differences:
------------------
++++++ python-jmespath.spec ++++++
--- /var/tmp/diff_new_pack.VP0dGC/_old  2017-11-10 14:59:01.672539584 +0100
+++ /var/tmp/diff_new_pack.VP0dGC/_new  2017-11-10 14:59:01.676539439 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jmespath
-Version:        0.9.2
+Version:        0.9.3
 Release:        0
 Summary:        Extract elements from JSON document
 License:        MIT

++++++ jmespath-0.9.2.tar.gz -> jmespath-0.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/PKG-INFO new/jmespath-0.9.3/PKG-INFO
--- old/jmespath-0.9.2/PKG-INFO 2017-03-11 00:52:50.000000000 +0100
+++ new/jmespath-0.9.3/PKG-INFO 2017-05-26 15:45:16.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: jmespath
-Version: 0.9.2
+Version: 0.9.3
 Summary: JSON Matching Expressions
 Home-page: https://github.com/jmespath/jmespath.py
 Author: James Saryerwinnie
@@ -231,3 +231,7 @@
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath/__init__.py 
new/jmespath-0.9.3/jmespath/__init__.py
--- old/jmespath-0.9.2/jmespath/__init__.py     2017-03-11 00:45:48.000000000 
+0100
+++ new/jmespath-0.9.3/jmespath/__init__.py     2017-05-26 15:44:09.000000000 
+0200
@@ -1,7 +1,7 @@
 from jmespath import parser
 from jmespath.visitor import Options
 
-__version__ = '0.9.2'
+__version__ = '0.9.3'
 
 
 def compile(expression):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath/functions.py 
new/jmespath-0.9.3/jmespath/functions.py
--- old/jmespath-0.9.2/jmespath/functions.py    2017-03-10 01:49:47.000000000 
+0100
+++ new/jmespath-0.9.3/jmespath/functions.py    2017-05-26 15:42:45.000000000 
+0200
@@ -16,6 +16,7 @@
     'str': 'string',
     'float': 'number',
     'int': 'number',
+    'long': 'number',
     'OrderedDict': 'object',
     '_Projection': 'array',
     '_Expression': 'expref',
@@ -29,7 +30,7 @@
     'object': ('dict', 'OrderedDict',),
     'null': ('None',),
     'string': ('unicode', 'str'),
-    'number': ('float', 'int'),
+    'number': ('float', 'int', 'long'),
     'expref': ('_Expression',),
 }
 
@@ -47,7 +48,7 @@
         super(FunctionRegistry, cls).__init__(name, bases, attrs)
 
     def _populate_function_table(cls):
-        function_table = getattr(cls, 'FUNCTION_TABLE', {})
+        function_table = {}
         # Any method with a @signature decorator that also
         # starts with "_func_" is registered as a function.
         # _func_max_by -> max_by function.
@@ -202,12 +203,12 @@
             return arg
         else:
             try:
-                if '.' in arg:
-                    return float(arg)
-                else:
-                    return int(arg)
+                return int(arg)
             except ValueError:
-                return None
+                try:
+                    return float(arg)
+                except ValueError:
+                    return None
 
     @signature({'types': ['array', 'string']}, {'types': []})
     def _func_contains(self, subject, search):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath/lexer.py 
new/jmespath-0.9.3/jmespath/lexer.py
--- old/jmespath-0.9.2/jmespath/lexer.py        2017-03-10 01:49:47.000000000 
+0100
+++ new/jmespath-0.9.3/jmespath/lexer.py        2017-05-26 15:42:45.000000000 
+0200
@@ -92,10 +92,17 @@
                         'start': self._position - 1, 'end': self._position}
                     self._next()
                 else:
+                    if self._current is None:
+                        # If we're at the EOF, we never advanced
+                        # the position so we don't need to rewind
+                        # it back one location.
+                        position = self._position
+                    else:
+                        position = self._position - 1
                     raise LexerError(
-                        lexer_position=self._position - 1,
+                        lexer_position=position,
                         lexer_value='=',
-                        message="Unknown token =")
+                        message="Unknown token '='")
             else:
                 raise LexerError(lexer_position=self._position,
                                  lexer_value=self._current,
@@ -138,8 +145,9 @@
                 buff += '\\'
                 self._next()
             if self._current is None:
+                # We're at the EOF.
                 raise LexerError(lexer_position=start,
-                                 lexer_value=self._expression,
+                                 lexer_value=self._expression[start:],
                                  message="Unclosed %s delimiter" % delimiter)
             buff += self._current
             self._next()
@@ -162,7 +170,7 @@
                               PendingDeprecationWarning)
             except ValueError:
                 raise LexerError(lexer_position=start,
-                                 lexer_value=self._expression,
+                                 lexer_value=self._expression[start:],
                                  message="Bad token %s" % lexeme)
         token_len = self._position - start
         return {'type': 'literal', 'value': parsed_json,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath/visitor.py 
new/jmespath-0.9.3/jmespath/visitor.py
--- old/jmespath-0.9.2/jmespath/visitor.py      2017-03-11 00:45:41.000000000 
+0100
+++ new/jmespath-0.9.3/jmespath/visitor.py      2017-05-26 15:42:45.000000000 
+0200
@@ -2,6 +2,7 @@
 
 from jmespath import functions
 from jmespath.compat import string_type
+from numbers import Number
 
 
 def _equals(x, y):
@@ -52,7 +53,7 @@
     # True
     if x is True or x is False:
         return False
-    return isinstance(x, (float, int))
+    return isinstance(x, Number)
 
 
 class Options(object):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath.egg-info/PKG-INFO 
new/jmespath-0.9.3/jmespath.egg-info/PKG-INFO
--- old/jmespath-0.9.2/jmespath.egg-info/PKG-INFO       2017-03-11 
00:52:50.000000000 +0100
+++ new/jmespath-0.9.3/jmespath.egg-info/PKG-INFO       2017-05-26 
15:45:16.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: jmespath
-Version: 0.9.2
+Version: 0.9.3
 Summary: JSON Matching Expressions
 Home-page: https://github.com/jmespath/jmespath.py
 Author: James Saryerwinnie
@@ -231,3 +231,7 @@
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath.egg-info/SOURCES.txt 
new/jmespath-0.9.3/jmespath.egg-info/SOURCES.txt
--- old/jmespath-0.9.2/jmespath.egg-info/SOURCES.txt    2017-03-11 
00:52:50.000000000 +0100
+++ new/jmespath-0.9.3/jmespath.egg-info/SOURCES.txt    2017-05-26 
15:45:16.000000000 +0200
@@ -15,6 +15,7 @@
 jmespath.egg-info/PKG-INFO
 jmespath.egg-info/SOURCES.txt
 jmespath.egg-info/dependency_links.txt
+jmespath.egg-info/pbr.json
 jmespath.egg-info/top_level.txt
 tests/__init__.py
 tests/test_compliance.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/jmespath.egg-info/pbr.json 
new/jmespath-0.9.3/jmespath.egg-info/pbr.json
--- old/jmespath-0.9.2/jmespath.egg-info/pbr.json       1970-01-01 
01:00:00.000000000 +0100
+++ new/jmespath-0.9.3/jmespath.egg-info/pbr.json       2015-04-21 
08:34:36.000000000 +0200
@@ -0,0 +1 @@
+{"is_release": true, "git_version": "0466cc1"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jmespath-0.9.2/setup.py new/jmespath-0.9.3/setup.py
--- old/jmespath-0.9.2/setup.py 2017-03-11 00:45:48.000000000 +0100
+++ new/jmespath-0.9.3/setup.py 2017-05-26 15:44:09.000000000 +0200
@@ -9,7 +9,7 @@
 
 setup(
     name='jmespath',
-    version='0.9.2',
+    version='0.9.3',
     description='JSON Matching Expressions',
     long_description=io.open('README.rst', encoding='utf-8').read(),
     author='James Saryerwinnie',
@@ -29,5 +29,9 @@
         'Programming Language :: Python :: 3',
         'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: Implementation :: PyPy',
     ),
 )


Reply via email to