#!/usr/bin/env python3
"""
ESPal - ESP32 Development Collaboration Tool

Setup script for installation
"""

from setuptools import setup, find_packages
import os

# Read the package version from __init__.py
with open(os.path.join('esppal', '__init__.py'), 'r') as f:
    for line in f:
        if line.startswith('__version__'):
            version = line.split('=')[1].strip().strip("'\"")
            break

# Read the long description from README.md
with open('README.md', 'r') as f:
    long_description = f.read()

setup(
    name='esppal',
    version=version,
    description='ESP32 Development Collaboration Tool',
    long_description=long_description,
    long_description_content_type='text/markdown',
    author='ESPal Developers',
    author_email='your-email@example.com',
    url='https://github.com/yourusername/esppal',
    packages=find_packages(),
    install_requires=[
        'pyserial>=3.5',
        'pyyaml>=5.1',
    ],
    entry_points={
        'console_scripts': [
            'esppal=esppal.esppal:main',
        ],
    },
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Topic :: Software Development :: Embedded Systems',
    ],
    python_requires='>=3.6',
)
