summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-26 07:30:50 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-25 08:13:27 (GMT)
commit2ee8b2e5fd1a7751aba120ef7994c30e143667dd (patch)
treedaacfe538d8938cf0044657b4c401055524665a4
parentc2f059e7aad4ac22dcd4481877728542bf4d7999 (diff)
downloadeopayment-2ee8b2e5fd1a7751aba120ef7994c30e143667dd.zip
eopayment-2ee8b2e5fd1a7751aba120ef7994c30e143667dd.tar.gz
eopayment-2ee8b2e5fd1a7751aba120ef7994c30e143667dd.tar.bz2
adapt setup.py for python3 compatibility
-rwxr-xr-xsetup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 2e28605..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(),