debian/0000755000000000000000000000000012302376374007175 5ustar debian/docs0000644000000000000000000000001212173652475010046 0ustar README.md debian/python3-json-pointer.docs0000644000000000000000000000001212173652475014076 0ustar README.md debian/copyright0000644000000000000000000000327412173652475011143 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-json-pointer Source: git://github.com/stefankoegl/python-json-pointer.git Files: debian/* Copyright: (c) 2012, Thomas Goirand License: BSD-3-clauses Files: * Copyright: 2012, Stefan Kögl License: BSD-3-clauses License: BSD-3-clauses Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/python-json-pointer.docs0000644000000000000000000000001212173652475014013 0ustar README.md debian/changelog0000644000000000000000000000207112302376374011047 0ustar python-json-pointer (1.0-2build1) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:51:56 +0000 python-json-pointer (1.0-2) unstable; urgency=low * Ran wrap-and-sort. * Adds support for python3. * Adds Ubuntu patch for utf-8 in setup.py fixing FTBFS. * Adds README.md in the doc folders. * Cleans correctly (allow to build twice). * Standards-Version: 3.9.4 -- Thomas Goirand Thu, 30 May 2013 14:02:39 +0800 python-json-pointer (1.0-1) unstable; urgency=low * Uploading to unstable. * New upstream release. -- Thomas Goirand Sat, 11 May 2013 06:56:05 +0000 python-json-pointer (0.6-2) experimental; urgency=low * Added patch from Ubuntu to run tests at build time (Closes: #702292). -- Thomas Goirand Tue, 05 Mar 2013 05:27:55 +0000 python-json-pointer (0.6-1) experimental; urgency=low * Initial release (Closes: #699507). -- Thomas Goirand Tue, 09 Oct 2012 11:55:15 +0000 debian/compat0000644000000000000000000000000212173652475010400 0ustar 9 debian/patches/0000755000000000000000000000000012173652475010631 5ustar debian/patches/python3-open-utf80000644000000000000000000000166312173652475014011 0ustar Description: Open files using UTF-8 When trying to install the module for use with Python 3 the setup.py stumbles upon an umlaut in jsonpointer.py which causes a FTBFS. Author: Michael Bienia Bug-Ubuntu: https://bugs.launchpad.net/bug/1185170 Forwarded: no Last-Update: 2013-05-28 Index: python-json-pointer-1.0/setup.py =================================================================== --- python-json-pointer-1.0.orig/setup.py 2013-04-03 15:42:02.000000000 +0200 +++ python-json-pointer-1.0/setup.py 2013-05-29 00:09:40.000000000 +0200 @@ -3,10 +3,11 @@ from distutils.core import setup import re import os.path +import io dirname = os.path.dirname(os.path.abspath(__file__)) filename = os.path.join(dirname, 'jsonpointer.py') -src = open(filename).read() +src = io.open(filename, encoding='utf-8').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", src)) docstrings = re.findall('"""(.*)"""', src) debian/patches/series0000644000000000000000000000002212173652475012040 0ustar python3-open-utf8 debian/control0000644000000000000000000000331412173652475010606 0ustar Source: python-json-pointer Section: python Priority: optional Maintainer: PKG OpenStack Uploaders: Loic Dachary (OuoU) , Julien Danjou , Thomas Goirand , Ghe Rivero , Mehdi Abaakouk Build-Depends: debhelper (>= 9), openstack-pkg-tools, python-all (>= 2.6.6-3~), python-setuptools, python3-all (>= 3.1.2-7~), python3-setuptools Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-json-pointer.git Vcs-Git: git://anonscm.debian.org/openstack/python-json-pointer.git Homepage: https://github.com/stefankoegl/python-json-pointer Package: python-json-pointer Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, ${python:Depends} Description: resolve JSON pointers - python 2.x Python-json-pointer is a small library to resolve JSON pointers according to the IETF draft specification. JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document. . This package provides the module for Python 2.x. Package: python3-json-pointer Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, ${python3:Depends} Description: resolve JSON pointers - python 3.x Python-json-pointer is a small library to resolve JSON pointers according to the IETF draft specification. JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document. . This package provides the module for Python 3.x. debian/CHANGELOG0000644000000000000000000001456112173652475010423 0ustar commit 4ca3cbad56923713da3f494a4c533534569ac61f Author: Stefan Kögl Date: Fri Dec 14 12:58:27 2012 +0100 bump version to 0.6 commit 0869f4efb2b5579583311d20835112a4d26d8d8a Author: Stefan Kögl Date: Fri Dec 14 12:35:14 2012 +0100 fix validation of array indices commit 76500aa810b5a96b27a313720b63e338ba568cc9 Author: Stefan Kögl Date: Fri Dec 14 12:34:46 2012 +0100 fix running tests during travis build commit b1d1665e21ed91a7357e8aa637863ddc3f47835c Author: Stefan Kögl Date: Mon Dec 10 15:21:01 2012 +0100 remove JsonPointer.set() to avoid duplicate code w/ python-json-patch json-patch (https://github.com/stefankoegl/python-json-patch/) should be used for modifying JSON documents commit a990cbab99e7a63820e2668990cb40507e0ae664 Author: Stefan Kögl Date: Mon Dec 10 15:16:47 2012 +0100 proper array index validation (dash, unsigned int) According to the spec http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-06 o If the currently referenced value is a JSON array, the reference token MUST contain either: * characters that represent an unsigned base-10 integer value (possibly with leading zeros), making the new referenced value the array element with the zero-based index identified by the token, or * exactly the single character "-", making the new referenced value the (non-existant) member after the last array element. commit de634ddedd1a39710abf39d99981b0adda95a5e3 Author: Stefan Kögl Date: Thu Nov 15 11:17:14 2012 +0100 bump version to 0.5 commit 4ca2dc4cd63647c222d927043e94b60a6d11b4dc Author: Stefan Kögl Date: Thu Nov 15 11:17:02 2012 +0100 add JsonPointer.contains() commit 1e818af78ec962d6b351f3de89d771dfa86a7368 Author: Stefan Kögl Date: Thu Nov 15 11:08:01 2012 +0100 add JsonPointer.to_last() for use in jsonpatch commit 164a9151480d5e84bd1146f723ab5b8c8b5063a3 Author: Stefan Kögl Date: Thu Nov 15 11:06:55 2012 +0100 reduce verbosity of test runs commit bf24fc8c47e9974975960f1c1638250d0211cf01 Author: Stefan Kögl Date: Sun Nov 11 10:56:29 2012 +0100 Update README.md commit 454b35cfd260db347465f9c55d3b1aa4b6eae8c7 Author: Stefan Kögl Date: Sun Nov 11 10:54:52 2012 +0100 rename README => README.md commit 157e2c49bf27a582c12433e96f5a3b51ddbd3104 Author: Stefan Kögl Date: Sun Nov 11 10:50:55 2012 +0100 Update README commit 831177a224c5223bb655e8d53a7b0b40f2dab723 Author: Stefan Kögl Date: Sun Nov 11 10:47:04 2012 +0100 remove currently unsupported Python 3.3 from .travis.yml commit fb73f44be369da41c66cf8c89999fcbd229d7c7e Author: Stefan Kögl Date: Sun Nov 11 10:44:32 2012 +0100 add .travis.yml commit 84f80db402dfb468fd8dd14119968567d46b130c Author: Stefan Kögl Date: Sun Nov 11 10:43:58 2012 +0100 make doctests compatible with Python 3.3 commit 0babb1456d9e6c9e9fb2e9e9129973ab1795b0e4 Author: Stefan Kögl Date: Thu Nov 8 15:56:20 2012 +0100 bump version to 0.4 commit 16d29f8fa10664a92f27b47d617260f0e5d13b9a Author: Stefan Kögl Date: Thu Nov 8 15:55:45 2012 +0100 update jsonpointer to current spec http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-05 commit 97a06ecb9dde82bd54dc269052841035ca2a1390 Merge: 3fadd63 e82fa8a Author: Stefan Kögl Date: Wed Sep 12 06:39:40 2012 -0700 Merge pull request #2 from kxepal/master Compatibility fixes commit e82fa8aa37b33a1daf477224a3b85e6fda68f2b6 Author: Alexander Shorin Date: Wed Sep 12 08:50:54 2012 +0400 Fix test for Jython2.5. It doesn't respect this key order while others do. commit 43234d598d1d72faf0bd266cf2422f0c948e6384 Author: Alexander Shorin Date: Wed Sep 12 08:41:10 2012 +0400 Fix compatibility with Python 3.x. commit aef6313b049b08f08dd48eb6173fcb1eb63f8bcf Author: Alexander Shorin Date: Wed Sep 12 08:34:45 2012 +0400 Fix compatibility with Python 2.5. Emulate next(b, None) through for loop with single round. There wasn't print_function, while it really doesn't needed. commit a2c3bc2de1a8f315f9b21e0846c17d92864c525c Author: Alexander Shorin Date: Wed Sep 12 08:16:54 2012 +0400 Stefan, would you mind if I fix your name?(: $ python3.2 jsonpointer.py File "jsonpointer.py", line 37 SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf6 in position 0: invalid start byte commit 3fadd63a77c7074fa7a4cd6bc04b0c34891a0d64 Author: Stefan Kögl Date: Fri Sep 7 11:25:32 2012 +0200 update jsonpointer to current spec http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-04 commit c446946cd179bc2bcfb79699e454519ade1d94c6 Author: Stefan Kögl Date: Tue Aug 23 17:37:16 2011 +0200 bump version to 0.2 commit 6532817abd4957ca24598e4905806517f7ec53ea Author: Stefan Kögl Date: Fri Aug 19 20:00:40 2011 +0200 add JsonPointer.set() method, fix #1 commit ce24eea47dd1952ccac1a66760aea2b937314787 Author: Stefan Kögl Date: Fri Aug 19 18:17:22 2011 +0200 JsonPointer.get alias for JsonPointer.resolve commit 8b58861ed5003306ea506ec837245d59e6b8fdc4 Author: Stefan Kögl Date: Tue Aug 2 07:38:04 2011 +0000 wrong module name in setup.py commit fb80392c799816a0b9114a0d4acd17df7e9f227d Author: Stefan Kögl Date: Tue Aug 2 07:36:24 2011 +0000 add default parameter to resolve_pointer() commit 759aa5ea0317711e5e944a0793f783f3cc293a6a Author: Stefan Kögl Date: Mon Aug 1 14:36:20 2011 +0000 refactor into JsonPointer class commit ee717c3fee8dd11e6659a969054de6eb43f8f576 Author: Stefan Kögl Date: Mon Aug 1 14:30:14 2011 +0000 make doctests less prone to errors by dict-ordering commit b243faeee8a8db1a6813765fe1113acecff0d472 Author: Stefan Kögl Date: Sun Jul 31 21:52:03 2011 +0200 initial commit debian/rules0000755000000000000000000000142712173652475010266 0ustar #!/usr/bin/make -f PYTHONS:=$(shell pyversions -vr) PYTHON3S:=$(shell py3versions -vr) UPSTREAM_GIT = git://github.com/stefankoegl/python-json-pointer.git include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --buildsystem=python_distutils --with python2,python3 override_dh_auto_test: set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \ python$$pyvers ./tests.py ; \ done override_dh_auto_install: set -e && for pyvers in $(PYTHONS); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-json-pointer; \ done set -e && for pyvers in $(PYTHON3S); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python3-json-pointer; \ done override_dh_auto_clean: dh_auto_clean rm -rf build .egg-info debian/source/0000755000000000000000000000000012173652475010502 5ustar debian/source/format0000644000000000000000000000001412173652475011710 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000024012173652475010615 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = v%(version)s compression = xz [git-buildpackage] export-dir = ../build-area/ debian/watch0000644000000000000000000000013312173652475010230 0ustar version=3 https://github.com/stefankoegl/python-json-pointer/tags .*/v(\d[\d\.]+)\.tar\.gz