Skip to content

Commit

Permalink
python2.7 check
Browse files Browse the repository at this point in the history
  • Loading branch information
sdp5 committed Jan 19, 2016
1 parent 68a9879 commit 0b1cb83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Build script for zanata-python-client
"""
from setuptools import setup, find_packages
import sys
import os
import subprocess

Expand Down Expand Up @@ -40,6 +41,9 @@ def get_client_version():

return number

assert sys.version_info >= (2, 7), (
"Only Python 2.7 and later is supported by zanata-python-client.")

setup(
name="zanata-python-client",
version=get_client_version(),
Expand Down Expand Up @@ -77,5 +81,6 @@ def get_client_version():
'License :: OSI Approved :: GNU Lesser General Public License (LGPL)',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
)

0 comments on commit 0b1cb83

Please sign in to comment.