#!/usr/bin/env python3
"""
Setup script for CutySoup - High-performance HTML parsing library
Provides fallback setup.py for better pip compatibility
"""

from setuptools import setup, find_packages
import os

# Read the README file
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding='utf-8') as f:
    long_description = f.read()

# Read version from pyproject.toml or set default
version = "0.1.0"

setup(
    name="cutysoup",
    version=version,
    description="High-performance HTML parsing library with BeautifulSoup4-compatible API",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="CutySoup Team",
    url="https://github.com/cutysoup/cutysoup",
    packages=find_packages(),
    python_requires=">=3.7",
    install_requires=[
        "beautifulsoup4>=4.13.4",
        "chardet>=5.2.0",
    ],
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "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",
        "Programming Language :: Python :: 3.12",
        "Programming Language :: C++",
        "Topic :: Text Processing :: Markup :: HTML",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    license="MIT",
    # For C++ extension building, defer to pyproject.toml and scikit-build
    # This setup.py provides pip compatibility while pyproject.toml handles the build
)
