add debian packaging
authorBruno Clermont <bruno.clermont@gmail.com>
Thu, 26 May 2011 19:37:31 +0000 (15:37 -0400)
committerBruno Clermont <bruno.clermont@gmail.com>
Thu, 26 May 2011 19:37:31 +0000 (15:37 -0400)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/pyversions [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..519752c
--- /dev/null
@@ -0,0 +1,5 @@
+python-requests (0.4.1-0) testing; urgency=low
+
+  * Initial Debian package
+
+ -- Bruno Clermont <bruno.clermont@gmail.com>  Thu, 26 May 2011 16:25:00 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..5c6ce49
--- /dev/null
@@ -0,0 +1,13 @@
+Source: python-requests
+Section: python
+Priority: optional
+Maintainer: Bruno Clermont <bruno.clermont@gmail.com>
+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 (file)
index 0000000..9bb74d2
--- /dev/null
@@ -0,0 +1 @@
+docs/user/*.rst
\ No newline at end of file
diff --git a/debian/pyversions b/debian/pyversions
new file mode 100644 (file)
index 0000000..8b253bc
--- /dev/null
@@ -0,0 +1 @@
+2.4-
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..28e92ec
--- /dev/null
@@ -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
+