"""
ScarScan - Universal Code Security Scanner
Developed by Scarfaze Company
Author: Zawiyar Awan <zawiyarofficial@gmail.com>

Setup script for installing ScarScan.
"""

from setuptools import setup, find_packages
from pathlib import Path

# Read README for long description
readme_path = Path(__file__).parent / "README.md"
long_description = ""
if readme_path.exists():
    with open(readme_path, 'r', encoding='utf-8') as f:
        long_description = f.read()

setup(
    name="scarscan",
    version="1.0.0",
    author="Zawiyar Awan",
    author_email="zawiyarofficial@gmail.com",
    description="Universal Code Security Scanner - Detect malware in 30+ programming languages",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/scarfaze/scarscan",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Topic :: Security",
        "Topic :: Software Development :: Quality Assurance",
        "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",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.7",
    install_requires=[
        "click>=8.1.7",
        "colorama>=0.4.6",
        "chardet>=5.2.0",
        "tabulate>=0.9.0",
        "rich>=13.7.0",
    ],
    extras_require={
        "dev": [
            "pytest>=7.4.3",
            "pytest-cov>=4.1.0",
            "black>=23.11.0",
            "flake8>=6.1.0",
        ],
        "ast": [
            "tree-sitter>=0.21.3",
            "tree-sitter-python>=0.20.4",
            "tree-sitter-javascript>=0.20.4",
            "tree-sitter-java>=0.20.2",
        ],
    },
    entry_points={
        "console_scripts": [
            "scarscan=scarscan.cli:main",
        ],
    },
    include_package_data=True,
    package_data={
        "scarscan": ["*.ini"],
    },
    keywords=[
        "security", "scanner", "malware", "code-analysis", 
        "static-analysis", "cybersecurity", "vulnerability-detection",
        "scarfaze", "scarscan"
    ],
    project_urls={
        "Documentation": "https://github.com/scarfaze/scarscan/wiki",
        "Bug Reports": "https://github.com/scarfaze/scarscan/issues",
        "Source": "https://github.com/scarfaze/scarscan",
        "Company": "https://scarfaze.com",
    },
)
