from distutils.util import convert_path
import setuptools

main_ns = {}
ver_path = convert_path('jupyter_d1/version.py')
with open(ver_path) as ver_file:
    exec(ver_file.read(), main_ns)

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

setuptools.setup(
    name="callisto-jupyter-d1",
    version=main_ns.get('version', '0.0.1'),
    author="Oak City Labs",
    author_email="team@oakcity.io",
    description="Jupyter D1 Server for Callisto",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://callistoapp.com",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.6",
    install_requires=[
        "wsgidav>=4.0.1,<5",
        "fastapi>=0.52.0,<1",
        "asyncblink>=0.3.2,<1",
        "uvicorn>=0.11.3,<1",
        "websockets>=10.0",
        "httptools>=0.4.0",
        "python-dotenv>=0.13.0,<1",
        "nbformat>=5.0.4,<6",
        "python-jose>=3.1.0,<4",
        "jupyter>=1.0.0,<2",
        "jupyter_client>=7,<8",
        "jupyter_console>=6.1.0,<7",
        "jupyter_core>=4.6.3,<5",
        "jupyter_kernel_gateway>=2.4.0,<3",
        "zsh-jupyter-kernel>=3.2",
        "bash_kernel>=0.7.2",
        "pynvml>=8.0.4,<9",
        "callisto-python>=0.0.4,<1",
        "jupytext>=1.13.8,<2",
        "python-multipart>=0.0.5,<1",
    ],
    extras_require={
        "full": ["psutil>=5.7.2,<6"],
        "watchdog": ["callisto-watchdog>=0.0.1,<1"],
    },
    scripts=["start_jupyter_d1", "jupyter_d1_test", "jupyter_d1_install_kernels"],
)
