#!/usr/bin/env python3
"""
Setup para BambuLuc v1.2.0 - Impresión Automática
=================================================
"""

from setuptools import setup, find_packages

# Leer README
try:
    with open("README.md", "r", encoding="utf-8") as fh:
        long_description = fh.read()
except FileNotFoundError:
    long_description = """
🎉 BambuLuc v1.2.0 - BREAKTHROUGH EN IMPRESIÓN AUTOMÁTICA
========================================================

Librería comercial avanzada para control de impresoras Bambu Lab con la
funcionalidad EXCLUSIVA de impresión automática sin intervención manual.

🆕 NUEVAS FUNCIONALIDADES v1.2.0:
- ✅ Impresión automática (BREAKTHROUGH!)
- ✅ Configuración AMS inteligente
- ✅ Análisis 3MF completo
- ✅ Subida de archivos grandes optimizada
- ✅ Anti-SD configuration mejorada

🚀 EJEMPLO DE USO:
```python
from bambuluc import BambuLuc, quick_print

# Impresión automática en una línea
await quick_print("192.168.1.100", "12345678", "01S00A4B2400033", "archivo.3mf")

# Control avanzado
bambu = BambuLuc("192.168.1.100", "12345678", "01S00A4B2400033")
await bambu.upload_and_print_auto("archivo.3mf")  # ¡Imprime automáticamente!
```

Copyright (c) 2025 Angel Luis Barbero Guerras
"""

setup(
    name="bambuluc",
    version="1.2.0",  # 🎉 Nueva versión con impresión automática
    author="Angel Luis Barbero Guerras",
    author_email="",  # Sin email público
    description="🚀 Librería comercial para impresoras Bambu Lab con IMPRESIÓN AUTOMÁTICA",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/AngelBarbero/bambuluc",
    packages=find_packages(),
    include_package_data=True,
    package_data={
        'bambuluc': ['*.py'],
    },
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Manufacturing",
        "License :: Free for non-commercial use",
        "Operating System :: OS Independent",
        "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",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: System :: Hardware",
        "Topic :: Scientific/Engineering",
        "Topic :: System :: Hardware :: Hardware Drivers",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
    ],
    keywords="bambu lab, 3d printing, automation, manufacturing, iot, printer control",
    python_requires=">=3.7",
    install_requires=[
        "paho-mqtt>=1.6.0",
        "requests>=2.25.0",
        "asyncio-mqtt>=0.11.0",
        "Pillow>=8.0.0",
    ],
    extras_require={
        "dev": [
            "pytest>=6.0",
            "pytest-cov",
            "pytest-asyncio",
            "black",
            "flake8",
            "mypy",
        ],
        "full": [
            "matplotlib>=3.3.0",
            "numpy>=1.20.0",
        ],
    },
    entry_points={
        "console_scripts": [
            "bambuluc-demo=bambuluc.demo:main",
        ],
    },
    project_urls={
        "Bug Reports": "https://github.com/AngelBarbero/bambuluc/issues",
        "Source": "https://github.com/AngelBarbero/bambuluc",
        "Documentation": "https://github.com/AngelBarbero/bambuluc/wiki",
    },
    zip_safe=False,
    platforms=["any"],
)
