From 5cee27c77e0fa5f10741618eccd7cb975f253d03 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Thu, 14 May 2020 07:23:20 +0200 Subject: [PATCH] debian/rules: build for python2 --- debian/changelog | 1 + debian/control | 14 ++++++++++++++ debian/rules | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 365f92d..4cb6c92 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ python-jwcrypto (0.6.0-2.1) UNRELEASED; urgency=medium * keep .egg-info for authentic + * add target python2 -- Christophe Siraut Thu, 14 May 2020 07:16:48 +0200 diff --git a/debian/control b/debian/control index c7990de..5267724 100644 --- a/debian/control +++ b/debian/control @@ -6,15 +6,29 @@ Priority: optional Build-Depends: debhelper (>= 12), dh-python, + python-all, python3-all, + python-cryptography, python3-cryptography, + python-nose, python3-nose, + python-setuptools, python3-setuptools, Standards-Version: 4.4.0 Homepage: https://github.com/latchset/jwcrypto Vcs-Git: https://salsa.debian.org/freeipa-team/python-jwcrypto.git Vcs-Browser: https://salsa.debian.org/freeipa-team/python-jwcrypto +Package: python-jwcrypto +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends}, + python-cryptography, +Description: Python3 implementation of JOSE Web standards + This python module implements JWK,JWS,JWE specifications using + python-cryptography. + . + This package includes the python3 version. + Package: python3-jwcrypto Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, diff --git a/debian/rules b/debian/rules index ca4109d..e0895eb 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ # Fri, 02 Oct 2015 09:24:49 +0300 export PYBUILD_NAME=jwcrypto %: - dh $@ --with python3 --buildsystem=pybuild + dh $@ --with python2,python3 --buildsystem=pybuild override_dh_auto_install: dh_auto_install