import sys

from distutils.core import setup
from rock import __version__ as version

long_description = """
This is a command line tool that simplifies building, testing, and running
applications on the Rock Platform.

See http://www.rockplatform.org for more information.
"""


install_requires = ['PyYAML']

if sys.version_info.major <= 2 and sys.version_info.minor < 7:
    install_requires += ['argparse', 'importlib']

setup(
    name='rock',
    version=version,
    description='Rock Platform tool',
    long_description=long_description.strip(),
    author='Silas Sewell',
    author_email='silas@sewell.org',
    license='MIT',
    url='https://github.com/rockplatform/rock',
    packages=['rock'],
    package_data={'rock': ['data/*/*']},
    scripts=['scripts/rock'],
    install_requires=install_requires,
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Operating System :: Unix',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
    ],
)

@@ -272,17 +272,16 @@
 n.%0A%22%22%22%0A%0A
-%0A
 install_
@@ -326,50 +326,17 @@
 info
-.major %3C= 2 and sys.version_info.minor %3C
+ %3C (2,
  7
+)
 :%0A  

Fix sys.version_info check in setup.py