From df2902a97309433a16032b49470aaff2a39a53ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 Jul 2018 17:04:01 +0200 Subject: [PATCH] debian: build a python3 package (#25504) --- debian/compat | 2 +- debian/control | 17 ++++++++++++++--- debian/python-eopayment.docs | 1 + debian/python-eopayment.install | 1 + debian/python3-eopayment.docs | 1 + debian/python3-eopayment.install | 1 + debian/rules | 7 +------ setup.py | 5 +++-- 8 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 debian/python-eopayment.docs create mode 100644 debian/python-eopayment.install create mode 100644 debian/python3-eopayment.docs create mode 100644 debian/python3-eopayment.install 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 a61eb04..23efe43 100644 --- a/debian/control +++ b/debian/control @@ -2,16 +2,27 @@ Source: eopayment Section: python Priority: optional Maintainer: Frederic Peters -Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6), debhelper (>= 7.4.3) +Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6), python3-setuptools, python3-all, debhelper (>= 9) Standards-Version: 3.9.1 -X-Python-Version: >= 2.6 +X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.4 Homepage: http://dev.entrouvert.org/projects/eopayment/ Package: python-eopayment Architecture: all Depends: ${python:Depends} -XB-Python-Version: ${python:Versions} Description: common API to access online payment services eopayment is a Python module to interface with French's bank credit card online payment services. Supported services are ATOS/SIP, SystemPay, and SPPLUS. + + +Package: python3-eopayment +Architecture: all +Depends: ${python3:Depends} +Description: common API to access online payment services (Python 3) + eopayment is a Python module to interface with French's bank credit + card online payment services. Supported services are ATOS/SIP, SystemPay, + and SPPLUS. + . + This is the Python 3 version of the package. diff --git a/debian/python-eopayment.docs b/debian/python-eopayment.docs new file mode 100644 index 0000000..71dfd5b --- /dev/null +++ b/debian/python-eopayment.docs @@ -0,0 +1 @@ +README.txt diff --git a/debian/python-eopayment.install b/debian/python-eopayment.install new file mode 100644 index 0000000..29e575d --- /dev/null +++ b/debian/python-eopayment.install @@ -0,0 +1 @@ +/usr/lib/python2.* diff --git a/debian/python3-eopayment.docs b/debian/python3-eopayment.docs new file mode 100644 index 0000000..71dfd5b --- /dev/null +++ b/debian/python3-eopayment.docs @@ -0,0 +1 @@ +README.txt diff --git a/debian/python3-eopayment.install b/debian/python3-eopayment.install new file mode 100644 index 0000000..046eb9f --- /dev/null +++ b/debian/python3-eopayment.install @@ -0,0 +1 @@ +/usr/lib/python3.* diff --git a/debian/rules b/debian/rules index 447dee0..04fac7a 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,4 @@ #!/usr/bin/make -f -# This file was automatically generated by stdeb 0.6.0+git at -# Fri, 14 Jun 2013 17:33:52 +0200 - %: - dh $@ --with python2 --buildsystem=python_distutils - - + dh $@ --with python2,python3 --buildsystem=pybuild diff --git a/setup.py b/setup.py index 5bcca4c..a556426 100755 --- a/setup.py +++ b/setup.py @@ -4,6 +4,7 @@ Setup script for eopayment ''' +import io import subprocess import distutils import distutils.core @@ -83,10 +84,10 @@ setuptools.setup( license='GPLv3 or later', description='Common API to use all French online payment credit card ' 'processing services', - long_description=open( + long_description=io.open( os.path.join( os.path.dirname(__file__), - 'README.txt')).read(), + 'README.txt'), encoding='utf-8').read(), url='http://dev.entrouvert.org/projects/eopayment/', author="Entr'ouvert", author_email="info@entrouvert.com", -- 2.18.0