from setuptools import setup, find_packages
import os

# Read the contents of your README file
with open(os.path.join(os.path.dirname(__file__), "README.md"), "r", encoding="utf-8") as fh:
    long_description = fh.read()

setup(
    name="terminal-voice",  # Change this if the name is already taken on PyPI
    version="0.1.0",
    author="KBR",
    author_email="koppunoorreddy@gmail.com",
    description="A programmable terminal personality that speaks when you type wrong commands.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/yourusername/terminal-voice",
    packages=find_packages(),
    install_requires=[
        "TTS",
        "transformers<4.40.0",
        "torch<2.6.0",
        "torchaudio<2.6.0",
        "PyYAML",
        "playsound==1.2.2",
        "PyObjC; sys_platform == 'darwin'",  # Only install PyObjC on macOS
    ],
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.9, <3.12",  # Coqui TTS strictly requires < 3.12
    entry_points={
        "console_scripts": [
            "voice=terminal_voice.cli:main",
        ],
    },
)
