# setup.py
from setuptools import setup, find_packages
import os

if os.path.exists("README.md"):
       try:
           with open("README.md", "r", encoding="utf-8-sig") as fh:
               long_description = fh.read()
       except UnicodeDecodeError:
           with open("README.md", "r", encoding="latin1") as fh:
               long_description = fh.read()
else:
       long_description = "Scientific Knowledge Graph Construction Toolkit"


setup(
    name="scimkg",
    version="0.1.0",
    author="Your Name",
    author_email="your.email@example.com",
    description="Scientific Knowledge Graph Construction Toolkit",
    long_description=long_description,
    long_description_content_type="text/markdown",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
    ],
    python_requires=">=3.8",
    install_requires=[
        "Flask>=3.0.0",
        "flask-cors>=4.0.0",
        "opencv-python>=4.8.1.78",
        "moviepy>=1.0.3",
        "PyMuPDF>=1.23.8",
        "Pillow>=10.1.0",
        "pydub>=0.25.1",
        "numpy>=1.24.3",
        "werkzeug>=3.0.1",
        "python-docx>=1.1.0",
        "requests>=2.31.0",
        "openai>=1.0.0",
        "rdflib>=6.0.0"
    ],
)
