Commits

Dennis Kaarsemaker  committed cd449e9

Add Debian packaging

  • Participants
  • Parent commits 5df53bf
  • Branches debian

Comments (0)

Files changed (8)

File debian/changelog

+uritemplate.py (0.2.0-1) quantal; urgency=low
+
+  * Initial release
+
+ -- Dennis Kaarsemaker <dennis@kaarsemaker.net>  Fri, 11 Oct 2013 16:05:50 +0200

File debian/compat

+7

File debian/control

+Source: uritemplate.py
+Maintainer: Dennis Kaarsemaker <dennis@kaarsemaker.net>
+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.

File debian/copyright

+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: uritemplate
+Upstream-Contact: Ian Cordasco <graffatcolmingov@gmail.com>
+Source: http://pypi.python.org/pypi/uritemplate.py
+
+Files: debian/*
+Copyright: 2013, Dennis Kaarsemaker <dennis@kaarsemaker.net>
+License: BSD
+
+Files: *
+Copyright: 2013, Ian Cordasco <graffatcolmingov@gmail.com>
+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.

File debian/gbp.conf

+[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

File debian/rules

+#!/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

File debian/source/format

+3.0 (quilt)

File debian/watch

+version=3
+http://pypi.python.org/packages/source/g/uritemplate.py/uritemplate.py-(.*)\.tar\.gz