import platform
from distutils.version import StrictVersion
from pathlib import Path

from setuptools import find_packages, setup

if StrictVersion(platform.python_version()) < StrictVersion('3.0.0'):
    raise Exception("`swagger-ui-py` support python version >= 3.0.0 only.")

setup(
    name='swagger-ui-py',
    version='22.07.13',
    description=(
        'Swagger UI for Python web framework, '
        'such as Tornado, Flask, Quart, Sanic and Falcon.'
    ),
    long_description=Path(__file__).parent.joinpath('README.md').read_text(),
    long_description_content_type='text/markdown',
    license='Apache License 2.0',
    packages=find_packages(),
    package_data={
        'swagger_ui': ['static/*', 'templates/*'],
    },
    install_requires=[
        "jinja2>=2.0",
        "PyYaml>=5.0",
    ],
    url='https://github.com/PWZER/swagger-ui-py',
    author='PWZER',
    author_email='pwzergo@gmail.com',
)
