From 359219d8cf254e9d5019a65349808f9e69e85c4e Mon Sep 17 00:00:00 2001 From: "Jeremy T. Bouse" Date: Sat, 25 May 2013 00:53:46 -0400 Subject: debian/*: clean up build files for new version Prepare package to be able to have both Py2 and Py3 packages when upstream finishes up the worked needed to support both from a single code base. --- debian/control | 9 ++++++--- debian/doc-base | 9 --------- debian/docs | 2 -- debian/python-paramiko.doc-base | 9 +++++++++ debian/python-paramiko.docs | 2 ++ debian/python-paramiko.install | 1 + debian/rules | 26 ++++++++++++++++++++++++-- 7 files changed, 42 insertions(+), 16 deletions(-) delete mode 100644 debian/doc-base delete mode 100644 debian/docs create mode 100644 debian/python-paramiko.doc-base create mode 100644 debian/python-paramiko.docs create mode 100644 debian/python-paramiko.install (limited to 'debian') diff --git a/debian/control b/debian/control index 99a55e6..6e25a38 100644 --- a/debian/control +++ b/debian/control @@ -5,8 +5,9 @@ Maintainer: Jeremy T. Bouse Uploaders: Guido Guenther Build-Depends: debhelper (>> 8), python-all (>= 2.6.6-3~), - python-crypto (>= 2.1.0-2) -Standards-Version: 3.9.3 + python-crypto (>= 2.1.0-2), + python-setuptools +Standards-Version: 3.9.4 Homepage: https://github.com/paramiko/paramiko/ Vcs-Git: git://git.debian.org/collab-maint/paramiko.git Vcs-Browser: http://git.debian.org/?p=collab-maint/paramiko.git @@ -17,8 +18,10 @@ Depends: ${misc:Depends}, ${python:Depends}, python-crypto (>= 2.1.0-2) Provides: ${python:Provides} -Description: Make ssh v2 connections with Python +Description: Make ssh v2 connections with Python (Python 2) This is a library for making SSH2 connections (client or server). Emphasis is on using SSH2 as an alternative to SSL for making secure connections between Python scripts. All major ciphers and hash methods are supported. SFTP client and server mode are both supported too. + . + This is the Python 2 version of the package. diff --git a/debian/doc-base b/debian/doc-base deleted file mode 100644 index e604928..0000000 --- a/debian/doc-base +++ /dev/null @@ -1,9 +0,0 @@ -Document: python-paramiko -Title: Paramiko -Author: Robey Pointer -Abstract: A Python interface to the paramiko SSH2 protocol library -Section: Programming/Python - -Format: html -Index: /usr/share/doc/python-paramiko/docs/index.html -Files: /usr/share/doc/python-paramiko/docs/*.html diff --git a/debian/docs b/debian/docs deleted file mode 100644 index d60fe81..0000000 --- a/debian/docs +++ /dev/null @@ -1,2 +0,0 @@ -README -docs diff --git a/debian/python-paramiko.doc-base b/debian/python-paramiko.doc-base new file mode 100644 index 0000000..e604928 --- /dev/null +++ b/debian/python-paramiko.doc-base @@ -0,0 +1,9 @@ +Document: python-paramiko +Title: Paramiko +Author: Robey Pointer +Abstract: A Python interface to the paramiko SSH2 protocol library +Section: Programming/Python + +Format: html +Index: /usr/share/doc/python-paramiko/docs/index.html +Files: /usr/share/doc/python-paramiko/docs/*.html diff --git a/debian/python-paramiko.docs b/debian/python-paramiko.docs new file mode 100644 index 0000000..d60fe81 --- /dev/null +++ b/debian/python-paramiko.docs @@ -0,0 +1,2 @@ +README +docs diff --git a/debian/python-paramiko.install b/debian/python-paramiko.install new file mode 100644 index 0000000..b2cc136 --- /dev/null +++ b/debian/python-paramiko.install @@ -0,0 +1 @@ +usr/lib/python2* diff --git a/debian/rules b/debian/rules index 00d62e3..4703c01 100755 --- a/debian/rules +++ b/debian/rules @@ -1,10 +1,32 @@ #!/usr/bin/make -f +PYTHON2=$(shell pyversions -vr) + %: dh $@ --with python2 -override_dh_auto_test: - ./test.py +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) +test-python%: + python$* setup.py test -vv + +override_dh_auto_test: $(PYTHON2:%=test-python%) +endif + +build-python%: + python$* setup.py build + +override_dh_auto_build: $(PYTHON2:%=build-python%) + dh_auto_build + +install-python%: + python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb + +override_dh_auto_install: $(PYTHON2:%=install-python%) + dh_auto_install + +override_dh_installdocs: + epydoc --no-private -o docs/ paramiko + dh_installdocs # Commands not to run override_dh_installcatalogs override_dh_installcron: -- cgit v1.2.3