"""Phishing URL Detector — setup.py Installable package for the phishing detection pipeline. Supports: pip install -e . """ from setuptools import setup, find_packages from pathlib import Path # Read requirements requirements_path = Path(__file__).parent / "requirements.txt" requirements: list[str] = [] if requirements_path.exists(): requirements = [ line.strip() for line in requirements_path.read_text().splitlines() if line.strip() and not line.startswith("#") ] # Read README readme_path = Path(__file__).parent / "README.md" long_description = "" if readme_path.exists(): long_description = readme_path.read_text(encoding="utf-8") setup( name="phishing-detector", version="1.0.0", description="Production-ready phishing URL detector using PhiUSIIL dataset", long_description=long_description, long_description_content_type="text/markdown", author="LinkGuard Team", author_email="team@linkguard.dev", url="https://github.com/linkguard/phishing-detector", packages=find_packages(), install_requires=requirements, python_requires=">=3.9", entry_points={ "console_scripts": [ "phishing-train=models.train:main", "phishing-evaluate=models.evaluate:main", "phishing-predict=models.predict:main", "phishing-download=data.download_data:main", ], }, classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Topic :: Security", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], )