"""
Setup script for BGX package.
"""

from setuptools import setup, find_packages

# Read the version from __init__.py
def get_version():
    with open('bgx/__init__.py', 'r') as f:
        for line in f:
            if line.startswith('__version__'):
                return line.split('=')[1].strip().strip('"')
    return "0.3.0"

setup(
    name="bgx",
    version=get_version(),
    description="Background Execution Engine - Production-grade task execution for Python",
    long_description=open('README.md', encoding='utf-8').read(),
    long_description_content_type="text/markdown",
    author="BRAHMAI / BRAHX LABS",
    author_email="contact@brahmai.ai",
    url="https://github.com/brahmai/bgx",
    packages=find_packages(),
    include_package_data=True,
    python_requires=">=3.8",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "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",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: System :: Distributed Computing",
    ],
    keywords="background tasks concurrency async parallel execution scheduler",
    project_urls={
        "Bug Reports": "https://github.com/brahmai/bgx/issues",
        "Source": "https://github.com/brahmai/bgx",
        "Documentation": "https://github.com/brahmai/bgx/blob/main/ENGINEERING.md",
    },
)
