Hello community,

here is the log from the commit of package python-jsonpath-rw-ext for 
openSUSE:Factory checked in at 2019-07-24 20:36:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpath-rw-ext (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsonpath-rw-ext.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsonpath-rw-ext"

Wed Jul 24 20:36:14 2019 rev:5 rq:718130 version:1.2.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jsonpath-rw-ext/python-jsonpath-rw-ext.changes
    2019-04-02 09:21:53.352688188 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsonpath-rw-ext.new.4126/python-jsonpath-rw-ext.changes
  2019-07-24 20:36:15.638569311 +0200
@@ -1,0 +2,6 @@
+Wed Jul 24 08:34:21 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.2.2:
+  * Fix problem with None value of element
+
+-------------------------------------------------------------------

Old:
----
  jsonpath-rw-ext-1.2.0.tar.gz

New:
----
  jsonpath-rw-ext-1.2.2.tar.gz

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

Other differences:
------------------
++++++ python-jsonpath-rw-ext.spec ++++++
--- /var/tmp/diff_new_pack.31uloW/_old  2019-07-24 20:36:16.214569247 +0200
+++ /var/tmp/diff_new_pack.31uloW/_new  2019-07-24 20:36:16.218569247 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jsonpath-rw-ext
-Version:        1.2.0
+Version:        1.2.2
 Release:        0
 Summary:        Extensions for JSONPath RW
 License:        Apache-2.0

++++++ jsonpath-rw-ext-1.2.0.tar.gz -> jsonpath-rw-ext-1.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/.coveragerc 
new/jsonpath-rw-ext-1.2.2/.coveragerc
--- old/jsonpath-rw-ext-1.2.0/.coveragerc       2018-09-28 11:20:09.000000000 
+0200
+++ new/jsonpath-rw-ext-1.2.2/.coveragerc       2019-07-12 11:38:29.000000000 
+0200
@@ -1,7 +1,6 @@
 [run]
 branch = True
 source = jsonpath_rw_ext
-omit = jsonpath_rw_ext/openstack/*
 
 [report]
 ignore-errors = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/.mailmap 
new/jsonpath-rw-ext-1.2.2/.mailmap
--- old/jsonpath-rw-ext-1.2.0/.mailmap  2018-09-28 11:20:09.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/.mailmap  1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-# Format is:
-# <preferred e-mail> <other e-mail 1>
-# <preferred e-mail> <other e-mail 2>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/.travis.yml 
new/jsonpath-rw-ext-1.2.2/.travis.yml
--- old/jsonpath-rw-ext-1.2.0/.travis.yml       2018-09-28 11:20:09.000000000 
+0200
+++ new/jsonpath-rw-ext-1.2.2/.travis.yml       2019-07-12 11:42:33.000000000 
+0200
@@ -6,8 +6,8 @@
       env: TOXENV=py27
     - python: 3.5
       env: TOXENV=py35
-    - python: 3.6
-      env: TOXENV=py36
+    - python: 3.7
+      env: TOXENV=py37
     - python: 2.7
       env: TOXENV=docs
     - python: 2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/AUTHORS 
new/jsonpath-rw-ext-1.2.2/AUTHORS
--- old/jsonpath-rw-ext-1.2.0/AUTHORS   2018-09-28 11:23:15.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/AUTHORS   2019-07-12 11:51:44.000000000 +0200
@@ -7,3 +7,4 @@
 Mehdi Abaakouk <sil...@sileht.net>
 Tony Breeds <t...@bakeyournoodle.com>
 Tony Moulton <t...@chaoslabs.org>
+dgusakov <40051639+dgusa...@users.noreply.github.com>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/ChangeLog 
new/jsonpath-rw-ext-1.2.2/ChangeLog
--- old/jsonpath-rw-ext-1.2.0/ChangeLog 2018-09-28 11:23:15.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/ChangeLog 2019-07-12 11:51:44.000000000 +0200
@@ -1,6 +1,21 @@
 CHANGES
 =======
 
+1.2.2
+-----
+
+* Fix README.rst formatting
+
+1.2.1
+-----
+
+* Use py37 at some place
+* Use py37 at some place
+* Add test for None value case
+* Fix problem with None value of element
+* Remove old OpenStack stuff
+* Fix filter examples syntax
+
 1.2.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/HACKING.rst 
new/jsonpath-rw-ext-1.2.2/HACKING.rst
--- old/jsonpath-rw-ext-1.2.0/HACKING.rst       2018-09-28 11:20:09.000000000 
+0200
+++ new/jsonpath-rw-ext-1.2.2/HACKING.rst       1970-01-01 01:00:00.000000000 
+0100
@@ -1,4 +0,0 @@
-jsonpath-rw-ext Style Commandments
-===============================================
-
-Read the OpenStack Style Commandments 
http://docs.openstack.org/developer/hacking/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/PKG-INFO 
new/jsonpath-rw-ext-1.2.2/PKG-INFO
--- old/jsonpath-rw-ext-1.2.0/PKG-INFO  2018-09-28 11:23:16.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/PKG-INFO  2019-07-12 11:51:45.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: jsonpath-rw-ext
-Version: 1.2.0
+Version: 1.2.2
 Summary: Extensions for JSONPath RW
 Home-page: https://github.com/sileht/python-jsonpath-rw-ext
 Author: Mehdi Abaakouk
@@ -91,9 +91,9 @@
         |              | - $.objects[\\some_field,/other_field]       |
         +--------------+----------------------------------------------+
         | filter       | - $.objects[?(@some_field > 5)]              |
-        |              | - $.objects[?some_field = "foobar")]         |
-        |              | - $.objects[?some_field ~ "regexp")]         |
-        |              | - $.objects[?some_field > 5 & other < 2)]    |
+        |              | - $.objects[?(some_field = "foobar")]        |
+        |              | - $.objects[?(some_field ~ "regexp")]        |
+        |              | - $.objects[?(some_field > 5 & other < 2)]   |
         +--------------+----------------------------------------------+
         | arithmetic   | - $.foo + "_" + $.bar                        |
         | (-+*/)       | - $.foo * 12                                 |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/README.rst 
new/jsonpath-rw-ext-1.2.2/README.rst
--- old/jsonpath-rw-ext-1.2.0/README.rst        2018-09-28 11:20:09.000000000 
+0200
+++ new/jsonpath-rw-ext-1.2.2/README.rst        2019-07-12 11:51:15.000000000 
+0200
@@ -83,9 +83,9 @@
 |              | - $.objects[\\some_field,/other_field]       |
 +--------------+----------------------------------------------+
 | filter       | - $.objects[?(@some_field > 5)]              |
-|              | - $.objects[?some_field = "foobar")]         |
-|              | - $.objects[?some_field ~ "regexp")]         |
-|              | - $.objects[?some_field > 5 & other < 2)]    |
+|              | - $.objects[?(some_field = "foobar")]        |
+|              | - $.objects[?(some_field ~ "regexp")]        |
+|              | - $.objects[?(some_field > 5 & other < 2)]   |
 +--------------+----------------------------------------------+
 | arithmetic   | - $.foo + "_" + $.bar                        |
 | (-+*/)       | - $.foo * 12                                 |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/babel.cfg 
new/jsonpath-rw-ext-1.2.2/babel.cfg
--- old/jsonpath-rw-ext-1.2.0/babel.cfg 2018-09-28 11:20:09.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/babel.cfg 1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-[python: **.py]
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/_filter.py 
new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext/_filter.py
--- old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/_filter.py        2018-09-28 
11:20:09.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext/_filter.py        2019-07-12 
11:38:29.000000000 +0200
@@ -77,19 +77,20 @@
         found = []
         for data in datum:
             value = data.value
-            if isinstance(self.value, int):
-                try:
-                    value = int(value)
-                except ValueError:
-                    continue
-            elif isinstance(self.value, bool):
-                try:
-                    value = bool(value)
-                except ValueError:
-                    continue
+            if value is not None:
+                if isinstance(self.value, int):
+                    try:
+                        value = int(value)
+                    except ValueError:
+                        continue
+                elif isinstance(self.value, bool):
+                    try:
+                        value = bool(value)
+                    except ValueError:
+                        continue
 
-            if OPERATOR_MAP[self.op](value, self.value):
-                found.append(data)
+                if OPERATOR_MAP[self.op](value, self.value):
+                    found.append(data)
 
         return found
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py 
new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py
--- old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py     
2018-09-28 11:20:09.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py     
2019-07-12 11:38:29.000000000 +0200
@@ -88,6 +88,11 @@
                                               {'cow': 'neigh'},
                                               {'cat': 'neigh'}]},
                             target=[{'cow': 'moo'}])),
+        ('filter_eq4', dict(string='objects[?id==154]',
+                            data={'objects': [{'id': 154},
+                                              {'id': 155},
+                                              {'id': None}]},
+                            target=[{'id': 154}])),
         ('filter_gt', dict(string='objects[?cow>5]',
                            data={'objects': [{'cow': 8},
                                              {'cow': 7},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/PKG-INFO 
new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/PKG-INFO
--- old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/PKG-INFO 2018-09-28 
11:23:15.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/PKG-INFO 2019-07-12 
11:51:44.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: jsonpath-rw-ext
-Version: 1.2.0
+Version: 1.2.2
 Summary: Extensions for JSONPath RW
 Home-page: https://github.com/sileht/python-jsonpath-rw-ext
 Author: Mehdi Abaakouk
@@ -91,9 +91,9 @@
         |              | - $.objects[\\some_field,/other_field]       |
         +--------------+----------------------------------------------+
         | filter       | - $.objects[?(@some_field > 5)]              |
-        |              | - $.objects[?some_field = "foobar")]         |
-        |              | - $.objects[?some_field ~ "regexp")]         |
-        |              | - $.objects[?some_field > 5 & other < 2)]    |
+        |              | - $.objects[?(some_field = "foobar")]        |
+        |              | - $.objects[?(some_field ~ "regexp")]        |
+        |              | - $.objects[?(some_field > 5 & other < 2)]   |
         +--------------+----------------------------------------------+
         | arithmetic   | - $.foo + "_" + $.bar                        |
         | (-+*/)       | - $.foo * 12                                 |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/SOURCES.txt 
new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/SOURCES.txt
--- old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/SOURCES.txt      
2018-09-28 11:23:16.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/SOURCES.txt      
2019-07-12 11:51:45.000000000 +0200
@@ -1,16 +1,12 @@
 .coveragerc
-.mailmap
 .testr.conf
 .travis.yml
 AUTHORS
 CONTRIBUTING.rst
 ChangeLog
-HACKING.rst
 LICENSE
 MANIFEST.in
 README.rst
-babel.cfg
-openstack-common.conf
 release.sh
 requirements.txt
 setup.cfg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/pbr.json 
new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/pbr.json
--- old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/pbr.json 2018-09-28 
11:23:15.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/pbr.json 2019-07-12 
11:51:44.000000000 +0200
@@ -1 +1 @@
-{"git_version": "75beb8a", "is_release": true}
\ No newline at end of file
+{"git_version": "aa6e822", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/requires.txt 
new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/requires.txt
--- old/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/requires.txt     
2018-09-28 11:23:15.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/jsonpath_rw_ext.egg-info/requires.txt     
2019-07-12 11:51:44.000000000 +0200
@@ -1,2 +1,2 @@
-pbr>=1.8
 jsonpath-rw>=1.2.0
+pbr>=1.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/openstack-common.conf 
new/jsonpath-rw-ext-1.2.2/openstack-common.conf
--- old/jsonpath-rw-ext-1.2.0/openstack-common.conf     2018-09-28 
11:20:09.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/openstack-common.conf     1970-01-01 
01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-[DEFAULT]
-
-# The list of modules to copy from oslo-incubator.git
-
-# The base module to hold the copy of openstack.common
-base=jsonpath_rw_ext
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/release.sh 
new/jsonpath-rw-ext-1.2.2/release.sh
--- old/jsonpath-rw-ext-1.2.0/release.sh        2018-09-28 11:20:09.000000000 
+0200
+++ new/jsonpath-rw-ext-1.2.2/release.sh        2019-07-12 11:38:50.000000000 
+0200
@@ -9,7 +9,7 @@
 status=$(git status -sz)
 [ -z "$status" ] || false
 git checkout master
-[ "$SKIP_TESTS" ] || tox -epy35,py27,pep8,docs
+[ "$SKIP_TESTS" ] || tox -epy37,py27,pep8,docs
 git push
 git tag -s $version -m "Release version ${version}"
 git checkout $version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpath-rw-ext-1.2.0/tox.ini 
new/jsonpath-rw-ext-1.2.2/tox.ini
--- old/jsonpath-rw-ext-1.2.0/tox.ini   2018-09-28 11:20:09.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.2/tox.ini   2019-07-12 11:42:33.000000000 +0200
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = py33,py34,py27,pypy,pep8
+envlist = py37,py27,pypy,pep8
 skipsdist = True
 
 [testenv]
@@ -33,4 +33,4 @@
 show-source = True
 ignore = E123,E125,H405
 builtins = _
-exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
+exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build


Reply via email to