Skip to content

Commit 0b1cb83

Browse files
committed
python2.7 check
1 parent 68a9879 commit 0b1cb83

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Build script for zanata-python-client
44
"""
55
from setuptools import setup, find_packages
6+
import sys
67
import os
78
import subprocess
89

@@ -40,6 +41,9 @@ def get_client_version():
4041

4142
return number
4243

44+
assert sys.version_info >= (2, 7), (
45+
"Only Python 2.7 and later is supported by zanata-python-client.")
46+
4347
setup(
4448
name="zanata-python-client",
4549
version=get_client_version(),
@@ -77,5 +81,6 @@ def get_client_version():
7781
'License :: OSI Approved :: GNU Lesser General Public License (LGPL)',
7882
'Operating System :: Unix',
7983
'Programming Language :: Python',
84+
'Programming Language :: Python :: 2.7',
8085
],
8186
)

0 commit comments

Comments
 (0)