debian/0000755000000000000000000000000012256510745007175 5ustar debian/python-jsonpatch.docs0000644000000000000000000000001212256510734013346 0ustar README.md debian/patches/0000755000000000000000000000000012256510734010622 5ustar debian/patches/python3-open-utf8.patch0000644000000000000000000000160312256510734015072 0ustar Description: Fix open file using utf-8 for python3 Use io.open() to open jsonpatch.py with utf-8 encoding in setup.py so it works in both Python 2 and 3. Bug-Ubuntu: https://bugs.launchpad.net/bug/1185739 Author: Michael Bienia Forwarded: no Date: Mon, 03 Jun 2013 12:32:23 +0100 Index: python-json-patch-1.0/setup.py =================================================================== --- python-json-patch-1.0.orig/setup.py 2013-04-03 15:54:04.000000000 +0200 +++ python-json-patch-1.0/setup.py 2013-05-30 10:36:31.000000000 +0200 @@ -9,8 +9,9 @@ except ImportError: from distutils.core import setup has_setuptools = False +import io -src = open('jsonpatch.py').read() +src = io.open('jsonpatch.py', encoding='utf-8').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", src)) docstrings = re.findall('"""([^"]*)"""', src, re.MULTILINE | re.DOTALL) debian/patches/series0000644000000000000000000000003012256510734012030 0ustar python3-open-utf8.patch debian/python3-jsonpatch.docs0000644000000000000000000000001212256510734013431 0ustar README.md debian/python-jsonpatch.prerm0000644000000000000000000000031512256510734013551 0ustar #!/bin/sh set -e if [ "$1" = "remove" ] ; then update-alternatives --remove jsondiff /usr/bin/python2-jsondiff update-alternatives --remove jsonpatch /usr/bin/python2-jsonpatch fi #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000012256510734010473 5ustar debian/source/format0000644000000000000000000000001412256510734011701 0ustar 3.0 (quilt) debian/python-jsonpatch.preinst0000644000000000000000000000041112256510734014105 0ustar #!/bin/sh set -e if [ "${1}" = "upgrade" ] ; then if [ ! -h /usr/bin/jsondiff ] && [ -e /usr/bin/jsondiff ] ; then rm /usr/bin/jsondiff fi if [ ! -h /usr/bin/jsonpatch ] && [ -e /usr/bin/jsonpatch ] ; then rm /usr/bin/jsonpatch fi fi #DEBHELPER# exit 0 debian/python3-jsonpatch.postrm0000644000000000000000000000034612256510734014037 0ustar #!/bin/sh set -e if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then update-alternatives --remove jsondiff /usr/bin/python3-jsondiff update-alternatives --remove jsonpatch /usr/bin/python3-jsonpatch fi #DEBHELPER# exit 0 debian/python3-jsonpatch.postinst0000644000000000000000000000037712256510734014402 0ustar #!/bin/sh set -e if [ "$1" = "configure" ] ; then update-alternatives --install /usr/bin/jsondiff jsondiff /usr/bin/python3-jsondiff 200 update-alternatives --install /usr/bin/jsonpatch jsonpatch /usr/bin/python3-jsonpatch 200 fi #DEBHELPER# exit 0 debian/gbp.conf0000644000000000000000000000024012256510734010606 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = v%(version)s compression = xz [git-buildpackage] export-dir = ../build-area/ debian/copyright0000644000000000000000000000327012256510734011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-json-patch Source: git://github.com/stefankoegl/python-json-patch.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/rules0000755000000000000000000000237512256510734010262 0ustar #!/usr/bin/make -f PYTHONS:=$(shell pyversions -vr) PYTHON3S:=$(shell py3versions -vr) UPSTREAM_GIT = git://github.com/stefankoegl/python-json-patch.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 \ PYTHONPATH=$(CURDIR) 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-jsonpatch; \ done set -e && for pyvers in $(PYTHON3S); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python3-jsonpatch; \ done mv $(CURDIR)/debian/python-jsonpatch/usr/bin/jsondiff $(CURDIR)/debian/python-jsonpatch/usr/bin/python2-jsondiff mv $(CURDIR)/debian/python-jsonpatch/usr/bin/jsonpatch $(CURDIR)/debian/python-jsonpatch/usr/bin/python2-jsonpatch mv $(CURDIR)/debian/python3-jsonpatch/usr/bin/jsondiff $(CURDIR)/debian/python3-jsonpatch/usr/bin/python3-jsondiff mv $(CURDIR)/debian/python3-jsonpatch/usr/bin/jsonpatch $(CURDIR)/debian/python3-jsonpatch/usr/bin/python3-jsonpatch override_dh_auto_clean: dh_auto_clean rm -rf build rm -rf *.egg-info debian/changelog0000644000000000000000000000434212256510734011050 0ustar python-json-patch (1.3-4) unstable; urgency=medium * Fixes Breaks / Replaces so that it works with backports too. (Closes: #732365). * Sets Section: oldlibs & Priority: extra for the transition package. -- Thomas Goirand Mon, 09 Dec 2013 23:38:04 +0800 python-json-patch (1.3-3) unstable; urgency=low * Renames binary packages as python-jsonpatch and python3-jsonpatch, to match the PKG-INFO / egg-info and comply to the Python policy. (Closes: #717916). * VCS URLs back to the one of Alioth. -- Thomas Goirand Thu, 05 Dec 2013 22:25:33 +0800 python-json-patch (1.3-2) unstable; urgency=low * Updated VCS field to git.gplhost.com. * Renames jsondiff and jsonpatch as python{2,3}-json{diff,patch} and use update-alternatives to avoid clashes, also removes json{diff,patch} from /usr/bin if it's not a symlink to allow upgrades from previous version 1.3-1 (Closes: #729025). -- Thomas Goirand Wed, 20 Nov 2013 20:19:37 +0800 python-json-patch (1.3-1) unstable; urgency=low * New upstream release. -- Thomas Goirand Thu, 07 Nov 2013 16:21:21 +0800 python-json-patch (1.1-1) unstable; urgency=low * New upstream release. * Removes python3 unit test patch applied upstream. -- Thomas Goirand Wed, 11 Sep 2013 12:04:57 +0800 python-json-patch (1.0-2) unstable; urgency=low * Ran wrap-and-sort. * Adds python3 support. * Adds patch to fix unit tests for python3. * Adds README.md in docs. * Cleans correctly (can build twice the package). * Standards-Version: 3.9.4 -- Thomas Goirand Wed, 24 Jul 2013 11:25:29 +0800 python-json-patch (1.0-1) unstable; urgency=low * Uploading to unstable. * New upstream release. -- Thomas Goirand Sat, 11 May 2013 07:06:15 +0000 python-json-patch (0.12-2) experimental; urgency=low * Now running the unit tests, thanks to Michael Terry for the patch (Closes: #702443). -- Thomas Goirand Sat, 09 Mar 2013 00:03:11 +0800 python-json-patch (0.12-1) experimental; urgency=low * Initial release (Closes: #699508). -- Thomas Goirand Tue, 09 Oct 2012 11:55:15 +0000 debian/python-jsonpatch.postrm0000644000000000000000000000034612256510734013754 0ustar #!/bin/sh set -e if [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then update-alternatives --remove jsondiff /usr/bin/python2-jsondiff update-alternatives --remove jsonpatch /usr/bin/python2-jsonpatch fi #DEBHELPER# exit 0 debian/control0000644000000000000000000001156612256510734010607 0ustar Source: python-json-patch Section: python Priority: optional Maintainer: PKG OpenStack Uploaders: Julien Danjou , Thomas Goirand , Mehdi Abaakouk Build-Depends: debhelper (>= 9), openstack-pkg-tools, python-all (>= 2.6.6-3~), python-json-pointer, python-setuptools, python3-all (>= 3.1.2-7~), python3-json-pointer, python3-setuptools Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-json-patch.git Vcs-Git: git://anonscm.debian.org/openstack/python-json-patch.git Homepage: https://github.com/stefankoegl/python-json-patch Package: python-jsonpatch Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Breaks: python-json-patch (<< 1.3-3~) Replaces: python-json-patch (<< 1.3-3~) Depends: python-json-pointer, ${misc:Depends}, ${python:Depends} Description: library to apply JSON patches - python 2.x Python-json-patch is a Python module (a library) to apply JSON Patches according to the IETF draft specification. . From the IETF site: . JavaScript Object Notation (JSON) [RFC4627] is a common format for the exchange and storage of structured data. HTTP PATCH [RFC5789] extends the Hypertext Transfer Protocol (HTTP) [RFC2616] with a method to perform partial modifications to resources. . JSON Patch is a format (identified by the media type "application/ json-patch") for expressing a sequence of operations to apply to a target JSON document, suitable for use with the HTTP PATCH method. . This format is also potentially useful in other cases when it's necessary to make partial updates to a JSON document. . This package provides the Python 2.x module. Package: python3-jsonpatch Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Breaks: python3-json-patch (<< 1.3-3~) Replaces: python3-json-patch (<< 1.3-3~) Depends: python3-json-pointer, ${misc:Depends}, ${python3:Depends} Recommends: ${python3:Recommends} Description: library to apply JSON patches - python 3.x Python-json-patch is a Python module (a library) to apply JSON Patches according to the IETF draft specification. . From the IETF site: . JavaScript Object Notation (JSON) [RFC4627] is a common format for the exchange and storage of structured data. HTTP PATCH [RFC5789] extends the Hypertext Transfer Protocol (HTTP) [RFC2616] with a method to perform partial modifications to resources. . JSON Patch is a format (identified by the media type "application/ json-patch") for expressing a sequence of operations to apply to a target JSON document, suitable for use with the HTTP PATCH method. . This format is also potentially useful in other cases when it's necessary to make partial updates to a JSON document. . This package provides the Python 3.x module. Package: python-json-patch Section: oldlibs Priority: extra Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: python-jsonpatch, ${misc:Depends} Description: library to apply JSON patches - python 2.x transitional package Python-json-patch is a Python module (a library) to apply JSON Patches according to the IETF draft specification. . From the IETF site: . JavaScript Object Notation (JSON) [RFC4627] is a common format for the exchange and storage of structured data. HTTP PATCH [RFC5789] extends the Hypertext Transfer Protocol (HTTP) [RFC2616] with a method to perform partial modifications to resources. . JSON Patch is a format (identified by the media type "application/ json-patch") for expressing a sequence of operations to apply to a target JSON document, suitable for use with the HTTP PATCH method. . This format is also potentially useful in other cases when it's necessary to make partial updates to a JSON document. . This package is a transitional package to python-jsonpatch. Package: python3-json-patch Section: oldlibs Priority: extra Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: python3-jsonpatch, ${misc:Depends} Description: library to apply JSON patches - python 3.x transitional package Python-json-patch is a Python module (a library) to apply JSON Patches according to the IETF draft specification. . From the IETF site: . JavaScript Object Notation (JSON) [RFC4627] is a common format for the exchange and storage of structured data. HTTP PATCH [RFC5789] extends the Hypertext Transfer Protocol (HTTP) [RFC2616] with a method to perform partial modifications to resources. . JSON Patch is a format (identified by the media type "application/ json-patch") for expressing a sequence of operations to apply to a target JSON document, suitable for use with the HTTP PATCH method. . This format is also potentially useful in other cases when it's necessary to make partial updates to a JSON document. . This package is a transitional package to python3-jsonpatch. debian/python-jsonpatch.postinst0000644000000000000000000000037712256510734014317 0ustar #!/bin/sh set -e if [ "$1" = "configure" ] ; then update-alternatives --install /usr/bin/jsondiff jsondiff /usr/bin/python2-jsondiff 300 update-alternatives --install /usr/bin/jsonpatch jsonpatch /usr/bin/python2-jsonpatch 300 fi #DEBHELPER# exit 0 debian/compat0000644000000000000000000000000212256510734010371 0ustar 9 debian/python3-jsonpatch.prerm0000644000000000000000000000031512256510734013634 0ustar #!/bin/sh set -e if [ "$1" = "remove" ] ; then update-alternatives --remove jsondiff /usr/bin/python3-jsondiff update-alternatives --remove jsonpatch /usr/bin/python3-jsonpatch fi #DEBHELPER# exit 0 debian/python3-jsonpatch.preinst0000644000000000000000000000041112256510734014170 0ustar #!/bin/sh set -e if [ "${1}" = "upgrade" ] ; then if [ ! -h /usr/bin/jsondiff ] && [ -e /usr/bin/jsondiff ] ; then rm /usr/bin/jsondiff fi if [ ! -h /usr/bin/jsonpatch ] && [ -e /usr/bin/jsonpatch ] ; then rm /usr/bin/jsonpatch fi fi #DEBHELPER# exit 0 debian/docs0000644000000000000000000000001212256510734010037 0ustar README.md debian/watch0000644000000000000000000000013112256510734010217 0ustar version=3 https://github.com/stefankoegl/python-json-patch/tags .*/v(\d[\d\.]+)\.tar\.gz