From 795635bb51693ed3550a80ece455c30be92caeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 29 Jan 2020 12:18:24 +0100 Subject: [PATCH] debian: build a python3 module --- debian/control | 10 ++++++++-- debian/rules | 11 ++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index e44606f..7b0429a 100644 --- a/debian/control +++ b/debian/control @@ -2,9 +2,8 @@ Source: python-authentic2-gnm Maintainer: Frédéric Péters Section: python Priority: optional -Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.7), debhelper (>= 7.4.3) +Build-Depends: python-setuptools, python3-setuptools, python-all, python3-all, debhelper (>= 9), dh-python Standards-Version: 3.9.1 -X-Python-Version: >= 2.7 Package: python-authentic2-gnm Architecture: all @@ -12,3 +11,10 @@ Depends: ${misc:Depends}, python-authentic2 Description: GNM plugin for Authentic Extension module for authentic with various developments that are at the moment at least specific to the GNM project. + +Package: python3-authentic2-gnm +Architecture: all +Depends: ${misc:Depends}, python3-authentic2 +Description: GNM plugin for Authentic (Python 3) + Extension module for authentic with various developments that are + at the moment at least specific to the GNM project. diff --git a/debian/rules b/debian/rules index 8e4f4eb..dadf3e7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,13 @@ #!/usr/bin/make -f +export PYBUILD_NAME=authentic2-gnm + %: - dh $@ --with python2 --buildsystem=python_distutils + dh $@ --with python2,python3 --buildsystem=pybuild + +override_dh_auto_test: + +override_dh_install: + dh_install + -mkdir -p $(CURDIR)/debian/python3-authentic2-gnm/etc/authentic2-multitenant/settings.d/ + cp $(CURDIR)/debian/50gnm.py $(CURDIR)/debian/python3-authentic2-gnm/etc/authentic2-multitenant/settings.d/50gnm_3.py