from goatshell import __version__
from setuptools import setup, find_packages

import sys

version = sys.version_info
error_msg = "goat-shell needs Python>=2.7.10. Found %s" % sys.version

if version.major == 2:
    if version.minor < 7:
        sys.exit(error_msg)
    else:
        if version.micro < 10:
            sys.exit(error_msg)


requires = [
    'prompt-toolkit>=1.0.10,<1.1.0',
    'Pygments>=2.1.3,<3.0.0',
    'fuzzyfinder>=1.0.0',
    'click>=4.0,<7.0',
    'goattoolbox'
]

setup(
    name='goat-shell',
    version=__version__,
    description='goat shell: An integrated shell for working with the GOAT CLI',
    author='centerupt@gmail.com',
    url='https://github.com/stacksc/goat',
    packages=find_packages(),
    package_data={'goatshell': ['data/oci.json', 'data/aws.json', 'data/gcloud.json', 'data/az.json', 'data/goat.json', 'data/aliyun.json', 'data/ibmcloud.json']},
    zip_safe=False,
    install_requires=requires,
    entry_points={
        'console_scripts': [
            'goat-shell = goatshell.main:cli',
        ]
    },
    license="Apache License 2.0",
    keywords=('autocomplete', 'shell'),
    classifiers=(
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Natural Language :: English',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.11',
    ),
)
