#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from setuptools import setup

DESCRIPTION = "A simple Python API for Livy powered by requests"

CLASSIFIERS = [
    'Development Status :: 1 - Planning',
    'Intended Audience :: Developers',
    'Operating System :: OS Independent',
    'Programming Language :: Python :: 2.7',
    'Topic :: Software Development :: Libraries :: Python Modules',
]

requirements = [
    'cloudpickle>=0.2.1',
    'configparser>=3.5.0',
    'future>=0.15.2',
    'mock~=3.0.5',
    'requests>=2.10.0',
    'responses>=0.5.1',
    'requests-kerberos>=0.11.0',
]

setup(
    name='livy-python-api',
    version="0.9.0-incubating",
    packages=["livy", "livy-tests"],
    package_dir={
        "": "src/main/python",
        "livy-tests": "src/test/python/livy-tests",
    },
    url='https://github.com/apache/incubator-livy',
    author_email='user@livy.incubator.apache.org',
    license='Apache License, Version 2.0',
    description=DESCRIPTION,
    platforms=['any'],
    keywords='livy pyspark development',
    classifiers=CLASSIFIERS,
    install_requires=requirements,
    extras_require={
        ':python_version == "2.7"': ['futures']
    },
    setup_requires=['pytest-runner', 'flake8'],
    tests_require=['pytest']
)
