import os
from setuptools import setup, find_packages

# Read the version from the package __init__.py file
version = {}
with open(os.path.join("dicompare", "__init__.py")) as f:
    for line in f:
        if line.startswith("__version__"):
            exec(line, version)
            break

setup(
    name="dicompare",
    version=version["__version__"],
    description="A tool for checking DICOM compliance against a template",
    author="Ashley Stewart",
    url="https://github.com/astewartau/dicompare",
    packages=find_packages(),
    py_modules=["dicompare"],
    entry_points={
        "console_scripts": [
            "dicompare=dicompare.cli.main:main",
        ]
    },
    install_requires=[
        "pydicom==2.4.4",
        "pandas",
        "tabulate",
        "scipy",
        "tqdm",
        "nibabel",
        "twixtools"
    ],
    extras_require={
        "interactive": ["curses"],
        "test": ["pytest-asyncio"]
    },
    python_requires=">=3.8",
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    keywords="DICOM compliance validation medical imaging",
    include_package_data=True,
    long_description=open("README.md").read(),
    long_description_content_type="text/markdown",
)

