Hello community,
here is the log from the commit of package python-jsonpath-rw-ext for
openSUSE:Factory checked in at 2019-04-02 09:21:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpath-rw-ext (Old)
and /work/SRC/openSUSE:Factory/.python-jsonpath-rw-ext.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonpath-rw-ext"
Tue Apr 2 09:21:47 2019 rev:4 rq:689385 version:1.2.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jsonpath-rw-ext/python-jsonpath-rw-ext.changes
2018-12-24 11:38:49.541588743 +0100
+++
/work/SRC/openSUSE:Factory/.python-jsonpath-rw-ext.new.25356/python-jsonpath-rw-ext.changes
2019-04-02 09:21:53.352688188 +0200
@@ -1,0 +2,8 @@
+Thu Mar 28 14:33:26 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.2.0:
+ * Remove old OpenStack stuff
+ * Fix filter examples syntax
+- Execute tests
+
+-------------------------------------------------------------------
Old:
----
jsonpath-rw-ext-1.1.3.tar.gz
New:
----
jsonpath-rw-ext-1.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jsonpath-rw-ext.spec ++++++
--- /var/tmp/diff_new_pack.Q2nuS0/_old 2019-04-02 09:21:54.932689668 +0200
+++ /var/tmp/diff_new_pack.Q2nuS0/_new 2019-04-02 09:21:54.936689672 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jsonpath-rw-ext
#
-# 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,15 +18,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jsonpath-rw-ext
-Version: 1.1.3
+Version: 1.2.0
Release: 0
Summary: Extensions for JSONPath RW
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/sileht/python-jsonpath-rw-ext
Source:
https://files.pythonhosted.org/packages/source/j/jsonpath-rw-ext/jsonpath-rw-ext-%{version}.tar.gz
+BuildRequires: %{python_module jsonpath-rw >= 1.2.0}
+BuildRequires: %{python_module oslotest >= 1.10.0}
BuildRequires: %{python_module pbr}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module testscenarios >= 0.4}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jsonpath-rw >= 1.2.0
Requires: python-pbr >= 1.4
@@ -47,6 +52,10 @@
%install
%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%check
+%pytest
%files %{python_files}
%license LICENSE
++++++ jsonpath-rw-ext-1.1.3.tar.gz -> jsonpath-rw-ext-1.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonpath-rw-ext-1.1.3/.travis.yml
new/jsonpath-rw-ext-1.2.0/.travis.yml
--- old/jsonpath-rw-ext-1.1.3/.travis.yml 2017-10-19 16:07:58.000000000
+0200
+++ new/jsonpath-rw-ext-1.2.0/.travis.yml 2018-09-28 11:20:09.000000000
+0200
@@ -1,12 +1,18 @@
sudo: false
language: python
+matrix:
+ include:
+ - python: 2.7
+ env: TOXENV=py27
+ - python: 3.5
+ env: TOXENV=py35
+ - python: 3.6
+ env: TOXENV=py36
+ - python: 2.7
+ env: TOXENV=docs
+ - python: 2.7
+ env: TOXENV=pep8
install:
- pip install tox
script:
- tox
-env:
- - TOXENV=py27
- - TOXENV=py35
- - TOXENV=py36
- - TOXENV=pep8
- - TOXENV=docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonpath-rw-ext-1.1.3/ChangeLog
new/jsonpath-rw-ext-1.2.0/ChangeLog
--- old/jsonpath-rw-ext-1.1.3/ChangeLog 2017-10-19 16:12:27.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.0/ChangeLog 2018-09-28 11:23:15.000000000 +0200
@@ -1,6 +1,12 @@
CHANGES
=======
+1.2.0
+-----
+
+* feature: adding regex match filter (#17)
+* travis: list python version to install
+
1.1.3
-----
@@ -51,7 +57,7 @@
0.1.8
-----
-* Add sub and split named_operator
+* Add sub and split named\_operator
* doc: Fix typo
* Add a long description to README
* Add more tests
@@ -68,7 +74,7 @@
0.1.6
-----
-* Implements simple operator + - * /
+* Implements simple operator + - \* /
* Returns all datum if no filter are set
0.1.5
@@ -80,7 +86,7 @@
-----
* Fixes py3 tests
-* Remove useless FILTER_VALUE type
+* Remove useless FILTER\_VALUE type
* Remove useless code
* Fix examples
* Fixes a tests, add examples
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonpath-rw-ext-1.1.3/PKG-INFO
new/jsonpath-rw-ext-1.2.0/PKG-INFO
--- old/jsonpath-rw-ext-1.1.3/PKG-INFO 2017-10-19 16:12:28.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.0/PKG-INFO 2018-09-28 11:23:16.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: jsonpath-rw-ext
-Version: 1.1.3
+Version: 1.2.0
Summary: Extensions for JSONPath RW
Home-page: https://github.com/sileht/python-jsonpath-rw-ext
Author: Mehdi Abaakouk
@@ -25,7 +25,7 @@
jsonpath-rw-ext extends json-path-rw capabilities by adding multiple
extensions.
'len' that allows one to get the length of a list. 'sorted' that
returns a sorted version
- of a list, 'arithmetic' that permits one to make math operation
between elements and
+ of a list, 'arithmetic' that permits one to make math operation
between elements and
'filter' to select only certain elements of a list.
Each extensions will be proposed `upstream
<https://github.com/kennknowles/python-jsonpath-rw>`__
@@ -70,7 +70,7 @@
# prints 'foo'
The jsonpath classes are not part of the public API, because the
name/structure
- can change when they will be implemented upstream. Only the syntax
*shouldn't*
+ can change when they will be implemented upstream. Only the syntax
*shouldn't*
change.
Extensions
@@ -92,6 +92,7 @@
+--------------+----------------------------------------------+
| filter | - $.objects[?(@some_field > 5)] |
| | - $.objects[?some_field = "foobar")] |
+ | | - $.objects[?some_field ~ "regexp")] |
| | - $.objects[?some_field > 5 & other < 2)] |
+--------------+----------------------------------------------+
| arithmetic | - $.foo + "_" + $.bar |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonpath-rw-ext-1.1.3/README.rst
new/jsonpath-rw-ext-1.2.0/README.rst
--- old/jsonpath-rw-ext-1.1.3/README.rst 2017-10-19 16:10:30.000000000
+0200
+++ new/jsonpath-rw-ext-1.2.0/README.rst 2018-09-28 11:20:09.000000000
+0200
@@ -17,7 +17,7 @@
jsonpath-rw-ext extends json-path-rw capabilities by adding multiple
extensions.
'len' that allows one to get the length of a list. 'sorted' that returns a
sorted version
-of a list, 'arithmetic' that permits one to make math operation between
elements and
+of a list, 'arithmetic' that permits one to make math operation between
elements and
'filter' to select only certain elements of a list.
Each extensions will be proposed `upstream
<https://github.com/kennknowles/python-jsonpath-rw>`__
@@ -62,7 +62,7 @@
# prints 'foo'
The jsonpath classes are not part of the public API, because the name/structure
-can change when they will be implemented upstream. Only the syntax *shouldn't*
+can change when they will be implemented upstream. Only the syntax *shouldn't*
change.
Extensions
@@ -84,6 +84,7 @@
+--------------+----------------------------------------------+
| filter | - $.objects[?(@some_field > 5)] |
| | - $.objects[?some_field = "foobar")] |
+| | - $.objects[?some_field ~ "regexp")] |
| | - $.objects[?some_field > 5 & other < 2)] |
+--------------+----------------------------------------------+
| arithmetic | - $.foo + "_" + $.bar |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext/_filter.py
new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/_filter.py
--- old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext/_filter.py 2017-02-25
20:53:32.000000000 +0100
+++ new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/_filter.py 2018-09-28
11:20:09.000000000 +0200
@@ -13,6 +13,7 @@
import jsonpath_rw
import operator
+import re
from six import moves
@@ -24,6 +25,7 @@
'<': operator.lt,
'>=': operator.ge,
'>': operator.gt,
+ '~': lambda s, pat: re.match(pat, s)
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext/parser.py
new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/parser.py
--- old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext/parser.py 2017-10-19
16:10:30.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/parser.py 2018-09-28
11:20:09.000000000 +0200
@@ -36,7 +36,7 @@
parser.JsonPathLexer.tokens +
['FILTER_OP', 'SORT_DIRECTION', 'FLOAT'])
- t_FILTER_OP = r'==?|<=|>=|!=|<|>'
+ t_FILTER_OP = r'==?|<=|>=|!=|<|>|~'
def t_BOOL(self, t):
r'true|false'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py
new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py
--- old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py
2017-10-19 16:10:30.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext/tests/test_jsonpath_rw_ext.py
2018-09-28 11:20:09.000000000 +0200
@@ -114,6 +114,20 @@
},
target=['Bad']
)),
+ ('filter_regex', dict(
+ string='objects[?prediction ~ ".*d$"].confidence',
+ data={
+ 'objects': [
+ {'confidence': 0.42,
+ 'prediction': 'Good'},
+ {'confidence': 0.48,
+ 'prediction': 'Average'},
+ {'confidence': 0.58,
+ 'prediction': 'Bad'},
+ ]
+ },
+ target=[0.42, 0.58]
+ )),
('sort1', dict(string='objects[/cow]',
data={'objects': [{'cat': 1, 'cow': 2},
{'cat': 2, 'cow': 1},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext.egg-info/PKG-INFO
new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/PKG-INFO
--- old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext.egg-info/PKG-INFO 2017-10-19
16:12:27.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/PKG-INFO 2018-09-28
11:23:15.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: jsonpath-rw-ext
-Version: 1.1.3
+Version: 1.2.0
Summary: Extensions for JSONPath RW
Home-page: https://github.com/sileht/python-jsonpath-rw-ext
Author: Mehdi Abaakouk
@@ -25,7 +25,7 @@
jsonpath-rw-ext extends json-path-rw capabilities by adding multiple
extensions.
'len' that allows one to get the length of a list. 'sorted' that
returns a sorted version
- of a list, 'arithmetic' that permits one to make math operation
between elements and
+ of a list, 'arithmetic' that permits one to make math operation
between elements and
'filter' to select only certain elements of a list.
Each extensions will be proposed `upstream
<https://github.com/kennknowles/python-jsonpath-rw>`__
@@ -70,7 +70,7 @@
# prints 'foo'
The jsonpath classes are not part of the public API, because the
name/structure
- can change when they will be implemented upstream. Only the syntax
*shouldn't*
+ can change when they will be implemented upstream. Only the syntax
*shouldn't*
change.
Extensions
@@ -92,6 +92,7 @@
+--------------+----------------------------------------------+
| filter | - $.objects[?(@some_field > 5)] |
| | - $.objects[?some_field = "foobar")] |
+ | | - $.objects[?some_field ~ "regexp")] |
| | - $.objects[?some_field > 5 & other < 2)] |
+--------------+----------------------------------------------+
| arithmetic | - $.foo + "_" + $.bar |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext.egg-info/pbr.json
new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/pbr.json
--- old/jsonpath-rw-ext-1.1.3/jsonpath_rw_ext.egg-info/pbr.json 2017-10-19
16:12:27.000000000 +0200
+++ new/jsonpath-rw-ext-1.2.0/jsonpath_rw_ext.egg-info/pbr.json 2018-09-28
11:23:15.000000000 +0200
@@ -1 +1 @@
-{"is_release": true, "git_version": "7f4d5f9"}
\ No newline at end of file
+{"git_version": "75beb8a", "is_release": true}
\ No newline at end of file