# coding: utf-8

import sys
from setuptools import setup, find_packages

NAME = "{{packageName}}"
VERSION = "{{packageVersion}}"
{{#apiInfo}}{{#apis}}{{#-last}}
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools

REQUIRES = [
    "connexion[swagger-ui]>=2.6.0,<3",
    "swagger-ui-bundle>=0.0.2",
    "python_dateutil>=2.6.0",
    "MarkupSafe<2.0.2",
    "Jinja2==2.11.2",
    "Flask>=1.1.2,<2",
    "pandas>=1.3.3",
    {{#featureCORS}}
    "flask-cors>=3.0.10",
    {{/featureCORS}}
    "gunicorn>=20.1.0",
    "Flask-Compress>=1.13",
    "requests>=2.28.1",
    "alpha-python",
    "{{servicePackage}}"
]

setup(
    name=NAME,
    version=VERSION,
    description="{{appName}}",
    author_email="{{infoEmail}}",
    url="{{packageUrl}}",
    keywords=["OpenAPI", "{{appName}}"],
    install_requires=REQUIRES,
    packages=find_packages({{#pythonSrcRoot}}"{{{.}}}"{{/pythonSrcRoot}}),{{#pythonSrcRoot}}
    package_dir={"": "{{{.}}}"},{{/pythonSrcRoot}}
    package_data={'': ['{{#pythonSrcRoot}}{{{.}}}/{{/pythonSrcRoot}}openapi/openapi.yaml']},
    include_package_data=True,
    entry_points={
        'console_scripts': ['{{packageName}}={{packageName}}.__main__:main']},
    long_description="""\
    {{appDescription}}
    """
)
{{/-last}}{{/apis}}{{/apiInfo}}
