From d91af4cadfa5fa299d4702a9eedbfc7f7f558b9d Mon Sep 17 00:00:00 2001 From: Bruno Clermont Date: Thu, 26 May 2011 15:37:31 -0400 Subject: [PATCH] add debian packaging --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 13 +++++++++++++ debian/docs | 1 + debian/pyversions | 1 + debian/rules | 42 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 63 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/docs create mode 100644 debian/pyversions create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..519752c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-requests (0.4.1-0) testing; urgency=low + + * Initial Debian package + + -- Bruno Clermont Thu, 26 May 2011 16:25:00 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5c6ce49 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: python-requests +Section: python +Priority: optional +Maintainer: Bruno Clermont +Homepage: https://github.com/bclermont/requests +Bugs: https://github.com/bclermont/requests/issues +Build-Depends: debhelper, python-support + +Package: python-requests +Architecture: all +Depends: ${python:Depends}, python-support +Provides: ${python:Provides} +Description: Python HTTP Requests for Humans. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..9bb74d2 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +docs/user/*.rst \ No newline at end of file diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000..8b253bc --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.4- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..28e92ec --- /dev/null +++ b/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f + +# Verbose mode +#export DH_VERBOSE=1 + +clean: + dh_testdir + dh_testroot + + rm -rf build requests.egg-info +# find django-sentry/ -name *.pyc | xargs rm -f + + dh_clean + +build: + dh_testdir + + python setup.py build + +install: + dh_testdir + dh_installdirs + + python setup.py install --root $(CURDIR)/debian/python-requests + +binary-indep: install + +binary-arch: install + dh_install + dh_installdocs +# dh_installchangelogs + dh_compress + dh_fixperms + dh_pysupport + dh_gencontrol + dh_installdeb + dh_md5sums + dh_builddeb -- -Z lzma -z9 + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary + -- 2.7.4