debian: add packaging for python 3 (#41222)

This commit is contained in:
Benjamin Dauvergne 2020-04-02 12:36:45 +02:00
parent 62cd8c8057
commit 248924132c
3 changed files with 13 additions and 7 deletions

2
debian/compat vendored
View File

@ -1 +1 @@
7
9

13
debian/control vendored
View File

@ -2,13 +2,16 @@ Source: python-ldaptools
Section: python
Priority: optional
Maintainer: Benjamin Dauvergne <bdauvergne@entrouvert.com>
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

5
debian/rules vendored
View File

@ -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