#!/usr/bin/env python3
"""
NEXUS OSINT Tool Setup Script
"""

from setuptools import setup, find_packages
import os

# Read the README file
def read_readme():
    with open("README.md", "r", encoding="utf-8") as fh:
        return fh.read()

# Read requirements
def read_requirements():
    with open("requirements.txt", "r", encoding="utf-8") as fh:
        return [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="nexus-osint",
    version="2.0.0",
    author="NEXUS Team",
    author_email="team@nexus-osint.com",
    description="Comprehensive Open Source Intelligence Framework",
    long_description=read_readme(),
    long_description_content_type="text/markdown",
    url="https://github.com/nexus-osint/nexus",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Information Technology",
        "Topic :: Security",
        "Topic :: Internet",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.8",
    install_requires=read_requirements(),
    entry_points={
        "console_scripts": [
            "nexus=main:main",
        ],
    },
    py_modules=["main"],
    include_package_data=True,
    package_data={
        "": ["templates/*.html", "static/*", "config.json"],
    },
    zip_safe=False,
)
