From 248924132c51baec866b7e9ed05d8d132930f206 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 2 Apr 2020 12:36:45 +0200 Subject: [PATCH] debian: add packaging for python 3 (#41222) --- debian/compat | 2 +- debian/control | 13 ++++++++----- debian/rules | 5 ++++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/debian/compat b/debian/compat index 7f8f011..ec63514 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -7 +9 diff --git a/debian/control b/debian/control index e5b03b5..9010e4e 100644 --- a/debian/control +++ b/debian/control @@ -2,13 +2,16 @@ Source: python-ldaptools Section: python Priority: optional Maintainer: Benjamin Dauvergne -Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6), debhelper (>= 7.4.3) -Standards-Version: 3.9.1 -X-Python-Version: >= 2.7 +Build-Depends: python3-setuptools, python3-all, python-setuptools, python-all, debhelper (>= 9), dh-python +Standards-Version: 3.9.6 Homepage: http://dev.entrouvert.org/projects/ldaptools/ Package: python-ldaptools Architecture: all -Depends: ${python:Depends} -XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-ldap, python-six +Description: helper library for python-ldap and openldap + +Package: python3-ldaptools +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends}, python3-ldap, python-six Description: helper library for python-ldap and openldap diff --git a/debian/rules b/debian/rules index 46f5b5d..36e84cb 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,9 @@ #!/usr/bin/make -f +export PYBUILD_DISABLE=test +export PYBUILD_NAME=ldaptools + %: - dh $@ --with python2 + dh $@ --with python2,python3 --buildsystem=pybuild