from setuptools import setup, find_packages

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

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

setup(
    name="gplay-scraper",
    version="1.0.6",
    description="🚀 Advanced Google Play Store Scraper - Extract 65+ app fields, reviews, ratings, ASO data, developer info, top charts, search results with 7 HTTP clients & unlimited pagination support",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Mohammed Cha",
    author_email="contact@mohammedcha.com",
    maintainer="Mohammed Cha",
    maintainer_email="contact@mohammedcha.com",
    url="https://github.com/mohammedcha/gplay-scraper",
    download_url="https://github.com/mohammedcha/gplay-scraper/archive/v1.0.6.tar.gz",
    project_urls={
        "Homepage": "https://github.com/mohammedcha/gplay-scraper",
        "Documentation": "https://mohammedcha.github.io/gplay-scraper/",
        "Source Code": "https://github.com/mohammedcha/gplay-scraper",
        "Bug Reports": "https://github.com/mohammedcha/gplay-scraper/issues",
        "Feature Requests": "https://github.com/mohammedcha/gplay-scraper/issues",
        "Changelog": "https://github.com/mohammedcha/gplay-scraper/blob/main/CHANGELOG.md",
        "Examples": "https://github.com/mohammedcha/gplay-scraper/tree/main/examples",
        "PyPI": "https://pypi.org/project/gplay-scraper/",
    },
    packages=find_packages(exclude=["tests*", "docs*", "examples*"]),
    install_requires=requirements,
    extras_require={
        "dev": ["pytest>=7.0.0", "pytest-cov>=4.0.0", "black>=22.0.0", "flake8>=5.0.0"],
        "http-clients": [
            "curl-cffi>=0.5.0",
            "tls-client>=0.2.0", 
            "httpx>=0.24.0",
            "urllib3>=1.26.0",
            "cloudscraper>=1.2.0",
            "aiohttp>=3.8.0",
        ],
        "all": [
            "pytest>=7.0.0", "pytest-cov>=4.0.0", "black>=22.0.0", "flake8>=5.0.0",
            "curl-cffi>=0.5.0", "tls-client>=0.2.0", "httpx>=0.24.0", 
            "urllib3>=1.26.0", "cloudscraper>=1.2.0", "aiohttp>=3.8.0",
        ],
    },
    python_requires=">=3.8",
    keywords="google-play-scraper, playstore-scraper, android-scraper, gplay-scraper, google-play-store, play-store-api, app-data-extraction, app-analytics, mobile-analytics, aso-tools, app-store-optimization, mobile-seo, app-marketing, keyword-research, competitor-analysis, market-research, app-reviews, user-reviews, review-scraper, rating-analysis, sentiment-analysis, developer-tools, api-scraping, web-scraping, data-mining, python-scraper, automation-tools, business-intelligence, market-intelligence, competitive-intelligence, app-monitoring, trend-analysis, performance-tracking, install-tracking, revenue-analysis",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "Intended Audience :: Science/Research",
        "Intended Audience :: Financial and Insurance Industry",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX :: Linux",
        "Operating System :: MacOS",
        "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",
        "Programming Language :: Python :: 3 :: Only",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Libraries :: Application Frameworks",
        "Topic :: Utilities",
        "Topic :: Scientific/Engineering :: Information Analysis",
        "Topic :: Office/Business :: Financial :: Investment",
        "Topic :: Internet :: WWW/HTTP :: Browsers",
        "Topic :: Text Processing :: Markup :: HTML",
        "Topic :: Database",
        "Natural Language :: English",
        "Environment :: Console",
        "Environment :: Web Environment",
        "Framework :: AsyncIO",
        "Typing :: Typed",
    ],
    platforms=["any"],
    include_package_data=True,
    zip_safe=False,
)