# -*- coding: utf-8 -*-
# Copyright (c) 2022 RaptorML authors.
#
# Licensed 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.

import os

import setuptools

with open('./README.md', 'r') as fh:
    long_description = fh.read()

version = '0.3.2'
if os.environ.get('BUILD_VERSION') is not None:
    version = os.environ.get('BUILD_VERSION')

setuptools.setup(
    name='raptor-labsdk',
    version=version,
    author='Almog Baku',
    author_email='almog@raptor.ml',
    description='',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://raptor.ml',
    project_urls={
        'Documentation': 'https://raptor.ml/',
        'Source': 'https://github.com/raptor-ml/raptor',
        'Tracker': 'https://github.com/raptor-ml/raptor/issues',
    },
    packages=setuptools.find_packages(exclude='_test'),
    classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
    ],
    include_package_data=True,
    install_requires=[
        'pandas',
        'redbaron>=0.9.2',
        'typing-extensions',
        'PyYAML>=5.0',
        'pydantic',
        'BentoML==1.0.22',
        'attrs>=21.1.0',
        'Jinja2>=3.1.0'
    ],
    py_modules=['raptor'],
    zip_safe=False,

    python_requires='>=3.7, <4'
)
