from setuptools import setup, find_packages
import os

# Ensure runtime.c is accessible after install
package_dir = os.path.dirname(os.path.abspath(__file__))

# Read README.md for PyPI description
with open(os.path.join(package_dir, "README.md"), "r", encoding="utf-8") as f:
    long_description = f.read()

setup(
    name="centella-lang",
    version="1.0.4",
    description="The official Centella programming language compiler.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    packages=find_packages(),
    # Include non-python files (runtime.c)
    package_data={
        'centella_pkg': ['*.c', '*.h'],
    },
    include_package_data=True,
    # This creates the 'centella' command in your terminal
    entry_points={
        'console_scripts': [
            'centella=centella_pkg.compiler:main',
        ],
    },
    author="Centella Team",
    python_requires='>=3.8',
)
