# SPDX-License-Identifier: MIT
# pyright: reportUndefinedVariable=false
# (__version__/__description__ come from exec(__about__.py))

from setuptools import setup, find_packages
from pathlib import Path


exec(Path('__about__.py').read_text())


def readme():
    return Path("README.md").read_text()


def requirements():
    return Path("requirements.txt").read_text().splitlines()

def requirements_extra():
    return Path("requirements-extra.txt").read_text().splitlines()


setup(
        name="vdsql",
        version=__version__,  # noqa: F821
        description=__description__,  # noqa: F821
        long_description=readme(),
        long_description_content_type="text/markdown",
        classifiers=[
            "Development Status :: 4 - Beta",
            "Programming Language :: Python :: 3",
        ],
        keywords="visidata sql rdbms ibis substrait",
        author="Saul Pwanson",
        url="https://github.com/visidata/vdsql",
        python_requires=">=3.9",
        packages=find_packages(exclude=["tests"]),
        entry_points={'visidata.plugins': 'vdsql=visidata.apps.vdsql'},
        scripts=['vdsql'],
        install_requires=requirements(),
        extra_requires=requirements_extra(),
)
