from setuptools import setup, find_packages
import os

try:
    with open("README.md", "r", encoding="utf-8") as f:
        long_description = f.read()
except FileNotFoundError:
    long_description = "SecGuard - Security Automation Suite"

setup(
    name="secguard",
    version="1.0.1",
    author="Your Name",
    author_email="your.email@example.com",
    description="Security Automation Suite for threat detection and response",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/yourusername/secguard",
    packages=find_packages(where="src"),  
    package_dir={"": "src"},              
    include_package_data=True,
    python_requires=">=3.7",
    install_requires=[
        "click>=8.0.0",
        "rich>=10.0.0",
        "pyyaml>=6.0",
        "requests>=2.25.0",
    ],
    entry_points={
        "console_scripts": [
            "secguard=interface.terminal_ui:main",
            # "secguard-scan=scripts.run_analysis:main",
            # "secguard-monitor=scripts.run_monitor:main",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Information Technology",
        "Topic :: Security",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
    ],
    keywords="security automation threat detection log analysis",
)