Hello community,

here is the log from the commit of package python-jsonpointer for 
openSUSE:Factory checked in at 2019-03-29 20:39:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpointer (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsonpointer.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsonpointer"

Fri Mar 29 20:39:21 2019 rev:14 rq:689758 version:2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonpointer/python-jsonpointer.changes    
2018-12-27 00:26:59.379780995 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jsonpointer.new.25356/python-jsonpointer.changes
 2019-03-29 20:39:23.642687281 +0100
@@ -1,0 +2,13 @@
+Thu Mar 28 21:17:46 UTC 2019 - Jan Engelhardt <jeng...@inai.de>
+
+- Use noun phrase in descriptions.
+
+-------------------------------------------------------------------
+Thu Mar 28 14:38:52 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 2.0:
+  * Fix typos in messages
+  * Accept pointer as argument in commandline utility
+- Run tests
+
+-------------------------------------------------------------------

Old:
----
  jsonpointer-1.14.tar.gz

New:
----
  jsonpointer-2.0.tar.gz

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

Other differences:
------------------
++++++ python-jsonpointer.spec ++++++
--- /var/tmp/diff_new_pack.NSYm3L/_old  2019-03-29 20:39:24.554687190 +0100
+++ /var/tmp/diff_new_pack.NSYm3L/_new  2019-03-29 20:39:24.558687190 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jsonpointer
 #
-# 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,24 +18,23 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jsonpointer
-Version:        1.14
+Version:        2.0
 Release:        0
-Summary:        Identify specific nodes in a JSON document
+Summary:        Module to identify specific nodes in a JSON document
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://github.com/stefankoegl/python-json-pointer
-Source:         
https://pypi.io/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
+URL:            https://github.com/stefankoegl/python-json-pointer
+Source:         
https://files.pythonhosted.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
-Identify specific nodes in a JSON document (according to draft 08)
+A module to identify specific nodes in a JSON document (according to draft 08).
 
 %prep
 %setup -q -n jsonpointer-%{version}
@@ -45,8 +44,12 @@
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 %python_clone -a %{buildroot}%{_bindir}/jsonpointer
 
+%check
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests.py
+
 %post
 %python_install_alternative jsonpointer
 
@@ -54,7 +57,8 @@
 %python_uninstall_alternative jsonpointer
 
 %files %{python_files}
-%defattr(-,root,root,-)
+%doc README.md
+%license LICENSE.txt
 %python_alternative %{_bindir}/jsonpointer
 %{python_sitelib}/*
 

++++++ jsonpointer-1.14.tar.gz -> jsonpointer-2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpointer-1.14/PKG-INFO 
new/jsonpointer-2.0/PKG-INFO
--- old/jsonpointer-1.14/PKG-INFO       2017-10-30 20:49:55.000000000 +0100
+++ new/jsonpointer-2.0/PKG-INFO        2018-01-16 16:23:40.000000000 +0100
@@ -1,13 +1,17 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
 Name: jsonpointer
-Version: 1.14
+Version: 2.0
 Summary:  Identify specific nodes in a JSON document (RFC 6901) 
 Home-page: https://github.com/stefankoegl/python-json-pointer
 Author: Stefan Kögl
 Author-email: ste...@skoegl.net
 License: Modified BSD License
-Description: python-json-pointer |Build Status| |Coverage Status| |Downloads| 
|Version|
-        
==========================================================================
+Description-Content-Type: UNKNOWN
+Description: python-json-pointer
+        ===================
+        
+        |PyPI version| |Supported Python versions| |Build Status| |Coverage
+        Status|
         
         Resolve JSON Pointers in Python
         -------------------------------
@@ -15,20 +19,22 @@
         Library to resolve JSON Pointers according to `RFC
         6901 <http://tools.ietf.org/html/rfc6901>`__
         
-        See Sourcecode for Examples \* Website:
+        See source code for examples \* Website:
         https://github.com/stefankoegl/python-json-pointer \* Repository:
         https://github.com/stefankoegl/python-json-pointer.git \* 
Documentation:
         https://python-json-pointer.readthedocs.org/ \* PyPI:
-        https://pypi.python.org/pypi/jsonpointer \* Travis-CI:
+        https://pypi.python.org/pypi/jsonpointer \* Travis CI:
         https://travis-ci.org/stefankoegl/python-json-pointer \* Coveralls:
         https://coveralls.io/r/stefankoegl/python-json-pointer
         
-        .. |Build Status| image:: 
https://secure.travis-ci.org/stefankoegl/python-json-pointer.png?branch=master
+        .. |PyPI version| image:: https://img.shields.io/pypi/v/jsonpointer.svg
+           :target: https://pypi.python.org/pypi/jsonpointer/
+        .. |Supported Python versions| image:: 
https://img.shields.io/pypi/pyversions/jsonpointer.svg
+           :target: https://pypi.python.org/pypi/jsonpointer/
+        .. |Build Status| image:: 
https://travis-ci.org/stefankoegl/python-json-pointer.png?branch=master
            :target: https://travis-ci.org/stefankoegl/python-json-pointer
         .. |Coverage Status| image:: 
https://coveralls.io/repos/stefankoegl/python-json-pointer/badge.png?branch=master
            :target: 
https://coveralls.io/r/stefankoegl/python-json-pointer?branch=master
-        .. |Downloads| image:: https://pypip.in/d/jsonpointer/badge.png
-        .. |Version| image:: https://pypip.in/v/jsonpointer/badge.png
         
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
@@ -38,10 +44,8 @@
 Classifier: Operating System :: OS Independent
 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
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
@@ -49,3 +53,4 @@
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Utilities
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpointer-1.14/README.md 
new/jsonpointer-2.0/README.md
--- old/jsonpointer-1.14/README.md      2017-10-30 20:49:19.000000000 +0100
+++ new/jsonpointer-2.0/README.md       2018-01-16 16:22:55.000000000 +0100
@@ -1,16 +1,22 @@
-python-json-pointer [![Build 
Status](https://secure.travis-ci.org/stefankoegl/python-json-pointer.png?branch=master)](https://travis-ci.org/stefankoegl/python-json-pointer)
 [![Coverage 
Status](https://coveralls.io/repos/stefankoegl/python-json-pointer/badge.png?branch=master)](https://coveralls.io/r/stefankoegl/python-json-pointer?branch=master)
 ![Downloads](https://pypip.in/d/jsonpointer/badge.png) 
![Version](https://pypip.in/v/jsonpointer/badge.png)
+python-json-pointer
 ===================
 
+[![PyPI 
version](https://img.shields.io/pypi/v/jsonpointer.svg)](https://pypi.python.org/pypi/jsonpointer/)
+[![Supported Python 
versions](https://img.shields.io/pypi/pyversions/jsonpointer.svg)](https://pypi.python.org/pypi/jsonpointer/)
+[![Build 
Status](https://travis-ci.org/stefankoegl/python-json-pointer.png?branch=master)](https://travis-ci.org/stefankoegl/python-json-pointer)
+[![Coverage 
Status](https://coveralls.io/repos/stefankoegl/python-json-pointer/badge.png?branch=master)](https://coveralls.io/r/stefankoegl/python-json-pointer?branch=master)
+
+
 Resolve JSON Pointers in Python
 -------------------------------
 
 Library to resolve JSON Pointers according to
 [RFC 6901](http://tools.ietf.org/html/rfc6901)
 
-See Sourcecode for Examples
+See source code for examples
 * Website: https://github.com/stefankoegl/python-json-pointer
 * Repository: https://github.com/stefankoegl/python-json-pointer.git
 * Documentation: https://python-json-pointer.readthedocs.org/
 * PyPI: https://pypi.python.org/pypi/jsonpointer
-* Travis-CI: https://travis-ci.org/stefankoegl/python-json-pointer
+* Travis CI: https://travis-ci.org/stefankoegl/python-json-pointer
 * Coveralls: https://coveralls.io/r/stefankoegl/python-json-pointer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpointer-1.14/bin/jsonpointer 
new/jsonpointer-2.0/bin/jsonpointer
--- old/jsonpointer-1.14/bin/jsonpointer        2017-10-30 20:49:19.000000000 
+0100
+++ new/jsonpointer-2.0/bin/jsonpointer 2018-01-16 16:22:55.000000000 +0100
@@ -12,8 +12,17 @@
 
 parser = argparse.ArgumentParser(
     description='Resolve a JSON pointer on JSON files')
-parser.add_argument('POINTER', type=argparse.FileType('r'),
-                    help='File containing a JSON pointer expression')
+
+# Accept pointer as argument or as file
+ptr_group = parser.add_mutually_exclusive_group(required=True)
+
+ptr_group.add_argument('-f', '--pointer-file', type=argparse.FileType('r'),
+                       nargs='?',
+                       help='File containing a JSON pointer expression')
+
+ptr_group.add_argument('POINTER',  type=str, nargs='?',
+                       help='A JSON pointer expression')
+
 parser.add_argument('FILE', type=argparse.FileType('r'), nargs='+',
                     help='Files for which the pointer should be resolved')
 parser.add_argument('--indent', type=int, default=None,
@@ -29,10 +38,24 @@
         sys.exit(1)
 
 
+def parse_pointer(args):
+    if args.POINTER:
+        ptr = args.POINTER
+    elif args.pointer_file:
+        ptr = args.pointer_file.read().strip()
+    else:
+        parser.print_usage()
+        sys.exit(1)
+
+    return ptr
+
+
 def resolve_files():
     """ Resolve a JSON pointer on JSON files """
     args = parser.parse_args()
-    ptr = json.load(args.POINTER)
+
+    ptr = parse_pointer(args)
+
     for f in args.FILE:
         doc = json.load(f)
         try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpointer-1.14/jsonpointer.egg-info/PKG-INFO 
new/jsonpointer-2.0/jsonpointer.egg-info/PKG-INFO
--- old/jsonpointer-1.14/jsonpointer.egg-info/PKG-INFO  2017-10-30 
20:49:55.000000000 +0100
+++ new/jsonpointer-2.0/jsonpointer.egg-info/PKG-INFO   2018-01-16 
16:23:40.000000000 +0100
@@ -1,13 +1,17 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
 Name: jsonpointer
-Version: 1.14
+Version: 2.0
 Summary:  Identify specific nodes in a JSON document (RFC 6901) 
 Home-page: https://github.com/stefankoegl/python-json-pointer
 Author: Stefan Kögl
 Author-email: ste...@skoegl.net
 License: Modified BSD License
-Description: python-json-pointer |Build Status| |Coverage Status| |Downloads| 
|Version|
-        
==========================================================================
+Description-Content-Type: UNKNOWN
+Description: python-json-pointer
+        ===================
+        
+        |PyPI version| |Supported Python versions| |Build Status| |Coverage
+        Status|
         
         Resolve JSON Pointers in Python
         -------------------------------
@@ -15,20 +19,22 @@
         Library to resolve JSON Pointers according to `RFC
         6901 <http://tools.ietf.org/html/rfc6901>`__
         
-        See Sourcecode for Examples \* Website:
+        See source code for examples \* Website:
         https://github.com/stefankoegl/python-json-pointer \* Repository:
         https://github.com/stefankoegl/python-json-pointer.git \* 
Documentation:
         https://python-json-pointer.readthedocs.org/ \* PyPI:
-        https://pypi.python.org/pypi/jsonpointer \* Travis-CI:
+        https://pypi.python.org/pypi/jsonpointer \* Travis CI:
         https://travis-ci.org/stefankoegl/python-json-pointer \* Coveralls:
         https://coveralls.io/r/stefankoegl/python-json-pointer
         
-        .. |Build Status| image:: 
https://secure.travis-ci.org/stefankoegl/python-json-pointer.png?branch=master
+        .. |PyPI version| image:: https://img.shields.io/pypi/v/jsonpointer.svg
+           :target: https://pypi.python.org/pypi/jsonpointer/
+        .. |Supported Python versions| image:: 
https://img.shields.io/pypi/pyversions/jsonpointer.svg
+           :target: https://pypi.python.org/pypi/jsonpointer/
+        .. |Build Status| image:: 
https://travis-ci.org/stefankoegl/python-json-pointer.png?branch=master
            :target: https://travis-ci.org/stefankoegl/python-json-pointer
         .. |Coverage Status| image:: 
https://coveralls.io/repos/stefankoegl/python-json-pointer/badge.png?branch=master
            :target: 
https://coveralls.io/r/stefankoegl/python-json-pointer?branch=master
-        .. |Downloads| image:: https://pypip.in/d/jsonpointer/badge.png
-        .. |Version| image:: https://pypip.in/v/jsonpointer/badge.png
         
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
@@ -38,10 +44,8 @@
 Classifier: Operating System :: OS Independent
 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
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
@@ -49,3 +53,4 @@
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Utilities
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpointer-1.14/jsonpointer.py 
new/jsonpointer-2.0/jsonpointer.py
--- old/jsonpointer-1.14/jsonpointer.py 2017-10-30 20:49:19.000000000 +0100
+++ new/jsonpointer-2.0/jsonpointer.py  2018-01-16 16:22:55.000000000 +0100
@@ -36,7 +36,7 @@
 
 # Will be parsed by setup.py to determine package metadata
 __author__ = 'Stefan Kögl <ste...@skoegl.net>'
-__version__ = '1.14'
+__version__ = '2.0'
 __website__ = 'https://github.com/stefankoegl/python-json-pointer'
 __license__ = 'Modified BSD License'
 
@@ -174,7 +174,7 @@
         # validate escapes
         invalid_escape = self._RE_INVALID_ESCAPE.search(pointer)
         if invalid_escape:
-            raise JsonPointerException('Found invalid escape {0}'.format(
+            raise JsonPointerException('Found invalid escape {}'.format(
                 invalid_escape.group()))
 
         parts = pointer.split('/')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpointer-1.14/setup.py 
new/jsonpointer-2.0/setup.py
--- old/jsonpointer-1.14/setup.py       2017-10-30 20:49:19.000000000 +0100
+++ new/jsonpointer-2.0/setup.py        2018-01-16 16:22:55.000000000 +0100
@@ -42,10 +42,8 @@
     'Operating System :: OS Independent',
     'Programming Language :: Python',
     'Programming Language :: Python :: 2',
-    'Programming Language :: Python :: 2.6',
     'Programming Language :: Python :: 2.7',
     'Programming Language :: Python :: 3',
-    'Programming Language :: Python :: 3.3',
     'Programming Language :: Python :: 3.4',
     'Programming Language :: Python :: 3.5',
     'Programming Language :: Python :: 3.6',
@@ -66,4 +64,5 @@
       py_modules=MODULES,
       scripts=['bin/jsonpointer'],
       classifiers=CLASSIFIERS,
+      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
 )


Reply via email to