summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-07-26 15:04:01 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-26 15:23:53 (GMT)
commitdf2902a97309433a16032b49470aaff2a39a53ca (patch)
treedb7de3c2dd5c9f86a773c6de4f6695fa4067c421
parent7b181305c6ec08e97b69c1e549e3e8545114548b (diff)
downloadeopayment-df2902a97309433a16032b49470aaff2a39a53ca.zip
eopayment-df2902a97309433a16032b49470aaff2a39a53ca.tar.gz
eopayment-df2902a97309433a16032b49470aaff2a39a53ca.tar.bz2
debian: build a python3 package (#25504)
-rw-r--r--debian/compat2
-rw-r--r--debian/control17
-rw-r--r--debian/python-eopayment.docs1
-rw-r--r--debian/python-eopayment.install1
-rw-r--r--debian/python3-eopayment.docs1
-rw-r--r--debian/python3-eopayment.install1
-rwxr-xr-xdebian/rules7
-rwxr-xr-xsetup.py5
8 files changed, 23 insertions, 12 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 a61eb04..23efe43 100644
--- a/debian/control
+++ b/debian/control
@@ -2,16 +2,27 @@ Source: eopayment
Section: python
Priority: optional
Maintainer: Frederic Peters <fpeters@debian.org>
-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",