From cd449e93b35d8265187b7f4db324302c67bdca31 Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Fri, 11 Oct 2013 16:06:33 +0200 Subject: [PATCH 1/3] Add Debian packaging --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 23 +++++++++++++++++++++++ debian/copyright | 35 +++++++++++++++++++++++++++++++++++ debian/gbp.conf | 5 +++++ debian/rules | 34 ++++++++++++++++++++++++++++++++++ debian/source/format | 1 + debian/watch | 2 ++ 8 files changed, 106 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0af6c0d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +uritemplate.py (0.2.0-1) quantal; urgency=low + + * Initial release + + -- Dennis Kaarsemaker Fri, 11 Oct 2013 16:05:50 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..caae080 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: uritemplate.py +Maintainer: Dennis Kaarsemaker +Section: python +Priority: optional +Build-Depends: debhelper, python-all, python-setuptools, python3-all +Standards-Version: 3.9.3 +X-Python-Version: >= 2.6 +X-Python3-Version: >= 3.0 +Homepage: http://uritemplatepy.readthedocs.org/ + +Package: python-uritemplate.py +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Description: Simple python library to deal with URI Templates. + Simple python library to deal with URI Templates. + +Package: python3-uritemplate.py +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Simple python library to deal with URI Templates. + Simple python library to deal with URI Templates. + . + This package contains the Python 3 version of the library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..448e9e6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,35 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: uritemplate +Upstream-Contact: Ian Cordasco +Source: http://pypi.python.org/pypi/uritemplate.py + +Files: debian/* +Copyright: 2013, Dennis Kaarsemaker +License: BSD + +Files: * +Copyright: 2013, Ian Cordasco +License: BSD + 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. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..dd0c66a --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[git-buildpackage] +builder = debuild -S -sa -i'^(.git|tests|docs|Makefile|.travis|tox.ini|[^/]*(py|rst|txt)|MANIFEST.in|MANIFEST)' +no-create-orig = 1 +upstream-branch = master +debian-branch = debian diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f8a6b7b --- /dev/null +++ b/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +export PYTHONWARNINGS=d + +PYVERS := $(shell pyversions -r) +PY3VERS := $(shell py3versions -r) + +%: + dh $@ --with python2,python3 --buildsystem=python_distutils + +override_dh_auto_build: + set -ex; \ + for python in $(PYVERS) $(PY3VERS); do \ + $$python setup.py build; \ + done + +override_dh_auto_clean: + rm -rf build docs/_build + rm -f .coverage + rm -rf *.egg-info + dh_auto_clean + +override_dh_auto_install: + set -ex; \ + for python in $(PYVERS); do \ + $$python setup.py install --skip-build --root debian/python-uritemplate \ + --install-layout deb; \ + done + + set -ex; \ + for python in $(PY3VERS); do \ + $$python setup.py install --skip-build --root debian/python3-uritemplate \ + --install-layout deb; \ + done diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..e3d8c7c --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pypi.python.org/packages/source/g/uritemplate.py/uritemplate.py-(.*)\.tar\.gz From 55336af36337e0b1d0b6842d111f939e177b16ac Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Sun, 13 Oct 2013 22:08:23 +0200 Subject: [PATCH 2/3] Yeah, let's actually install in the correct place --- debian/changelog | 6 ++++++ debian/rules | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0af6c0d..db45f39 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +uritemplate.py (0.2.0-2) quantal; urgency=low + + * ctually working package this time + + -- Dennis Kaarsemaker Sun, 13 Oct 2013 22:10:10 +0200 + uritemplate.py (0.2.0-1) quantal; urgency=low * Initial release diff --git a/debian/rules b/debian/rules index f8a6b7b..4b07054 100755 --- a/debian/rules +++ b/debian/rules @@ -23,12 +23,12 @@ override_dh_auto_clean: override_dh_auto_install: set -ex; \ for python in $(PYVERS); do \ - $$python setup.py install --skip-build --root debian/python-uritemplate \ + $$python setup.py install --skip-build --root debian/python-uritemplate.py \ --install-layout deb; \ done set -ex; \ for python in $(PY3VERS); do \ - $$python setup.py install --skip-build --root debian/python3-uritemplate \ + $$python setup.py install --skip-build --root debian/python3-uritemplate.py \ --install-layout deb; \ done From 14a55c394f0eafcd70be4e5de591d182bda74bb4 Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Sun, 6 Apr 2014 14:34:27 +0200 Subject: [PATCH 3/3] Update Debian package --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index db45f39..6c33a36 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +uritemplate.py (0.3.0-1) Saucy; urgency=low + + * New upstream release + + -- Dennis Kaarsemaker Sun, 06 Apr 2014 14:34:16 +0200 + uritemplate.py (0.2.0-2) quantal; urgency=low * ctually working package this time