"""
Setup script for bisindo-trans package.
For development installation: pip install -e .
For production installation: pip install .
"""

from setuptools import setup, find_packages
import os

# Read README safely
long_description = ""
readme_path = os.path.join(os.path.dirname(__file__), "README.md")
if os.path.exists(readme_path):
    try:
        with open(readme_path, "r", encoding="utf-8") as f:
            long_description = f.read()
    except Exception:
        long_description = "BISINDO Trans - Penerjemah Bahasa Isyarat Indonesia"

setup(
    name="bisindo-trans",
    version="1.1.1",
    packages=find_packages(),
    python_requires=">=3.9",
    install_requires=[
        "pandas>=1.5.0",
        "nltk>=3.8.0",
        "openpyxl>=3.0.0",
    ],
    extras_require={
        "neural": [
            "torch>=2.0.0",
            "transformers>=4.30.0",
        ],
        "dev": [
            "pytest>=7.0.0",
        ],
    },
    author="Muhammad Aldi Alfatih",
    author_email="aldialfatih016@gmail.com",
    description="Penerjemah Bahasa Isyarat Indonesia (BISINDO) ke Bahasa Indonesia",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/aldialdifatih/bisindo-trans",
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
)
