summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-26 07:56:16 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-26 14:25:28 (GMT)
commit887832bc5fb442ef887e8690c5353bf833854c32 (patch)
tree96cb8ad46db0321712792d78fbfb17b5f8296716 /setup.py
parent31b85ae9fdece1c2c5fd7a862bae0e037e85eb87 (diff)
downloadeopayment-887832bc5fb442ef887e8690c5353bf833854c32.zip
eopayment-887832bc5fb442ef887e8690c5353bf833854c32.tar.gz
eopayment-887832bc5fb442ef887e8690c5353bf833854c32.tar.bz2
add python3 compatibility (#23720)
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index dd9543c..5bcca4c 100755
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ class TestCommand(distutils.core.Command):
class eo_sdist(sdist):
def run(self):
- print "creating VERSION file"
+ print("creating VERSION file")
if os.path.exists('VERSION'):
os.remove('VERSION')
version = get_version()
@@ -54,7 +54,7 @@ class eo_sdist(sdist):
version_file.write(version)
version_file.close()
sdist.run(self)
- print "removing VERSION file"
+ print("removing VERSION file")
if os.path.exists('VERSION'):
os.remove('VERSION')
@@ -72,7 +72,7 @@ def get_version():
stderr=subprocess.PIPE)
result = p.communicate()[0]
if p.returncode == 0:
- version = result.split()[0][1:]
+ version = str(result.split()[0][1:])
version = version.replace('-', '.')
return version
return '0.0.0'
@@ -83,7 +83,7 @@ setuptools.setup(
license='GPLv3 or later',
description='Common API to use all French online payment credit card '
'processing services',
- long_description=file(
+ long_description=open(
os.path.join(
os.path.dirname(__file__),
'README.txt')).read(),
@@ -96,6 +96,7 @@ setuptools.setup(
install_requires=[
'pycrypto >= 2.5',
'requests',
+ 'six',
],
cmdclass={
'sdist': eo_sdist,