Hello community,
here is the log from the commit of package python-jmespath for openSUSE:Factory
checked in at 2019-03-26 22:33:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jmespath (Old)
and /work/SRC/openSUSE:Factory/.python-jmespath.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jmespath"
Tue Mar 26 22:33:56 2019 rev:14 rq:688762 version:0.9.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jmespath/python-jmespath.changes
2018-12-24 11:38:38.085598911 +0100
+++
/work/SRC/openSUSE:Factory/.python-jmespath.new.25356/python-jmespath.changes
2019-03-26 22:34:41.633672893 +0100
@@ -1,0 +2,7 @@
+Tue Mar 26 14:43:27 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.9.4:
+ * Fix min_by/max_by with empty lists (`issue 151)
+ * Fix reverse type for null type (issue 145)
+
+-------------------------------------------------------------------
Old:
----
jmespath-0.9.3.tar.gz
New:
----
jmespath-0.9.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jmespath.spec ++++++
--- /var/tmp/diff_new_pack.Bi9EqL/_old 2019-03-26 22:34:42.033672797 +0100
+++ /var/tmp/diff_new_pack.Bi9EqL/_new 2019-03-26 22:34:42.033672797 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-jmespath
#
-# 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
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jmespath
-Version: 0.9.3
+Version: 0.9.4
Release: 0
Summary: Python module for declarative JSON document element extraction
License: MIT
@@ -37,9 +37,7 @@
Requires: python-simplejson
Requires(post): update-alternatives
Requires(postun): update-alternatives
-%if 0%{?suse_version} > 1110
BuildArch: noarch
-%endif
%python_subpackages
%description
++++++ jmespath-0.9.3.tar.gz -> jmespath-0.9.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jmespath-0.9.3/PKG-INFO new/jmespath-0.9.4/PKG-INFO
--- old/jmespath-0.9.3/PKG-INFO 2017-05-26 15:45:16.000000000 +0200
+++ new/jmespath-0.9.4/PKG-INFO 2019-02-25 00:10:48.000000000 +0100
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: jmespath
-Version: 0.9.3
+Version: 0.9.4
Summary: JSON Matching Expressions
Home-page: https://github.com/jmespath/jmespath.py
Author: James Saryerwinnie
Author-email: [email protected]
License: MIT
+Description-Content-Type: UNKNOWN
Description: JMESPath
========
@@ -14,8 +15,8 @@
:target: https://gitter.im/jmespath/chat
- .. image::
https://secure.travis-ci.org/jmespath/jmespath.py.png?branch=develop
- :target: http://travis-ci.org/jmespath/jmespath.py
+ .. image::
https://travis-ci.org/jmespath/jmespath.py.svg?branch=develop
+ :target: https://travis-ci.org/jmespath/jmespath.py
.. image::
https://codecov.io/github/jmespath/jmespath.py/coverage.svg?branch=develop
@@ -96,15 +97,14 @@
.. code:: python
>>> import jmespath
- >>> jmespath.search('{a: a, b: b},
+ >>> jmespath.search('{a: a, b: b}',
... mydata,
...
jmespath.Options(dict_cls=collections.OrderedDict))
>>> import jmespath
>>> parsed = jmespath.compile('{a: a, b: b}')
- >>> parsed.search('{a: a, b: b},
- ... mydata,
+ >>> parsed.search(mydata,
...
jmespath.Options(dict_cls=collections.OrderedDict))
@@ -226,6 +226,7 @@
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
@@ -233,5 +234,6 @@
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
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.3/README.rst
new/jmespath-0.9.4/README.rst
--- old/jmespath-0.9.3/README.rst 2017-01-26 19:02:23.000000000 +0100
+++ new/jmespath-0.9.4/README.rst 2019-02-25 00:08:17.000000000 +0100
@@ -6,8 +6,8 @@
:target: https://gitter.im/jmespath/chat
-.. image:: https://secure.travis-ci.org/jmespath/jmespath.py.png?branch=develop
- :target: http://travis-ci.org/jmespath/jmespath.py
+.. image:: https://travis-ci.org/jmespath/jmespath.py.svg?branch=develop
+ :target: https://travis-ci.org/jmespath/jmespath.py
.. image::
https://codecov.io/github/jmespath/jmespath.py/coverage.svg?branch=develop
@@ -88,15 +88,14 @@
.. code:: python
>>> import jmespath
- >>> jmespath.search('{a: a, b: b},
+ >>> jmespath.search('{a: a, b: b}',
... mydata,
... jmespath.Options(dict_cls=collections.OrderedDict))
>>> import jmespath
>>> parsed = jmespath.compile('{a: a, b: b}')
- >>> parsed.search('{a: a, b: b},
- ... mydata,
+ >>> parsed.search(mydata,
... jmespath.Options(dict_cls=collections.OrderedDict))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jmespath-0.9.3/jmespath/__init__.py
new/jmespath-0.9.4/jmespath/__init__.py
--- old/jmespath-0.9.3/jmespath/__init__.py 2017-05-26 15:44:09.000000000
+0200
+++ new/jmespath-0.9.4/jmespath/__init__.py 2019-02-25 00:08:19.000000000
+0100
@@ -1,7 +1,7 @@
from jmespath import parser
from jmespath.visitor import Options
-__version__ = '0.9.3'
+__version__ = '0.9.4'
def compile(expression):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jmespath-0.9.3/jmespath/functions.py
new/jmespath-0.9.4/jmespath/functions.py
--- old/jmespath-0.9.3/jmespath/functions.py 2017-05-26 15:42:45.000000000
+0200
+++ new/jmespath-0.9.4/jmespath/functions.py 2019-02-25 00:08:17.000000000
+0100
@@ -28,7 +28,7 @@
'boolean': ('bool',),
'array': ('list', '_Projection'),
'object': ('dict', 'OrderedDict',),
- 'null': ('None',),
+ 'null': ('NoneType',),
'string': ('unicode', 'str'),
'number': ('float', 'int', 'long'),
'expref': ('_Expression',),
@@ -331,14 +331,20 @@
keyfunc = self._create_key_func(expref,
['number', 'string'],
'min_by')
- return min(array, key=keyfunc)
+ if array:
+ return min(array, key=keyfunc)
+ else:
+ return None
@signature({'types': ['array']}, {'types': ['expref']})
def _func_max_by(self, array, expref):
keyfunc = self._create_key_func(expref,
['number', 'string'],
- 'min_by')
- return max(array, key=keyfunc)
+ 'max_by')
+ if array:
+ return max(array, key=keyfunc)
+ else:
+ return None
def _create_key_func(self, expref, allowed_types, function_name):
def keyfunc(x):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jmespath-0.9.3/jmespath/visitor.py
new/jmespath-0.9.4/jmespath/visitor.py
--- old/jmespath-0.9.3/jmespath/visitor.py 2017-05-26 15:42:45.000000000
+0200
+++ new/jmespath-0.9.4/jmespath/visitor.py 2019-02-25 00:08:17.000000000
+0100
@@ -60,13 +60,13 @@
"""Options to control how a JMESPath function is evaluated."""
def __init__(self, dict_cls=None, custom_functions=None):
#: The class to use when creating a dict. The interpreter
- # may create dictionaries during the evalution of a JMESPath
+ # may create dictionaries during the evaluation of a JMESPath
# expression. For example, a multi-select hash will
# create a dictionary. By default we use a dict() type.
# You can set this value to change what dict type is used.
# The most common reason you would change this is if you
# want to set a collections.OrderedDict so that you can
- # have predictible key ordering.
+ # have predictable key ordering.
self.dict_cls = dict_cls
self.custom_functions = custom_functions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jmespath-0.9.3/jmespath.egg-info/PKG-INFO
new/jmespath-0.9.4/jmespath.egg-info/PKG-INFO
--- old/jmespath-0.9.3/jmespath.egg-info/PKG-INFO 2017-05-26
15:45:16.000000000 +0200
+++ new/jmespath-0.9.4/jmespath.egg-info/PKG-INFO 2019-02-25
00:10:48.000000000 +0100
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: jmespath
-Version: 0.9.3
+Version: 0.9.4
Summary: JSON Matching Expressions
Home-page: https://github.com/jmespath/jmespath.py
Author: James Saryerwinnie
Author-email: [email protected]
License: MIT
+Description-Content-Type: UNKNOWN
Description: JMESPath
========
@@ -14,8 +15,8 @@
:target: https://gitter.im/jmespath/chat
- .. image::
https://secure.travis-ci.org/jmespath/jmespath.py.png?branch=develop
- :target: http://travis-ci.org/jmespath/jmespath.py
+ .. image::
https://travis-ci.org/jmespath/jmespath.py.svg?branch=develop
+ :target: https://travis-ci.org/jmespath/jmespath.py
.. image::
https://codecov.io/github/jmespath/jmespath.py/coverage.svg?branch=develop
@@ -96,15 +97,14 @@
.. code:: python
>>> import jmespath
- >>> jmespath.search('{a: a, b: b},
+ >>> jmespath.search('{a: a, b: b}',
... mydata,
...
jmespath.Options(dict_cls=collections.OrderedDict))
>>> import jmespath
>>> parsed = jmespath.compile('{a: a, b: b}')
- >>> parsed.search('{a: a, b: b},
- ... mydata,
+ >>> parsed.search(mydata,
...
jmespath.Options(dict_cls=collections.OrderedDict))
@@ -226,6 +226,7 @@
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
@@ -233,5 +234,6 @@
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
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.3/jmespath.egg-info/SOURCES.txt
new/jmespath-0.9.4/jmespath.egg-info/SOURCES.txt
--- old/jmespath-0.9.3/jmespath.egg-info/SOURCES.txt 2017-05-26
15:45:16.000000000 +0200
+++ new/jmespath-0.9.4/jmespath.egg-info/SOURCES.txt 2019-02-25
00:10:48.000000000 +0100
@@ -15,7 +15,6 @@
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.3/jmespath.egg-info/pbr.json
new/jmespath-0.9.4/jmespath.egg-info/pbr.json
--- old/jmespath-0.9.3/jmespath.egg-info/pbr.json 2015-04-21
08:34:36.000000000 +0200
+++ new/jmespath-0.9.4/jmespath.egg-info/pbr.json 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-{"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.3/setup.cfg new/jmespath-0.9.4/setup.cfg
--- old/jmespath-0.9.3/setup.cfg 2017-05-26 15:45:16.000000000 +0200
+++ new/jmespath-0.9.4/setup.cfg 2019-02-25 00:10:48.000000000 +0100
@@ -1,8 +1,10 @@
[bdist_wheel]
universal = 1
+[metadata]
+license_file = LICENSE.txt
+
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jmespath-0.9.3/setup.py new/jmespath-0.9.4/setup.py
--- old/jmespath-0.9.3/setup.py 2017-05-26 15:44:09.000000000 +0200
+++ new/jmespath-0.9.4/setup.py 2019-02-25 00:08:19.000000000 +0100
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-import os
-import sys
import io
from setuptools import setup, find_packages
@@ -9,7 +7,7 @@
setup(
name='jmespath',
- version='0.9.3',
+ version='0.9.4',
description='JSON Matching Expressions',
long_description=io.open('README.rst', encoding='utf-8').read(),
author='James Saryerwinnie',
@@ -18,12 +16,13 @@
scripts=['bin/jp.py'],
packages=find_packages(exclude=['tests']),
license='MIT',
- classifiers=(
+ classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
@@ -31,7 +30,8 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
- ),
+ ],
)