"""
BearKing — Code First, AI Second 的项目代码分析工具套件。

安装（开发模式）：
    pip install -e .

安装（发布）：
    pip install bearking
"""

from setuptools import setup, find_packages

# 从 fileatlas 的 __init__.py 里保持版本号单一来源
# 所有子包当前版本一致，取 fileatlas 作为代表


VERSION =  "0.1.1"

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

setup(
    name="bearking",
    version=VERSION,
    author="bearking",
    author_email="",
    description=(
        "A Lightweight Code Repository Structure Analysis Toolkit"
    ),
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/bearking-home/bearking",
    license="MIT",
    packages=find_packages(exclude=["tests", "tests.*", "__pycache__"]),
    python_requires=">=3.9",
    install_requires=[
        "pathspec>=0.12.1",
        "tqdm>=4.66.0",
    ],
    entry_points={
        "console_scripts": [
            "fileatlas=fileatlas.__main__:main",
            "moduleatlas=moduleatlas.__main__:main",
            "locateagent=locateagent.__main__:main",
            "spineagent=spineagent.__main__:main",
            "backboneagent=backboneagent.__main__:main",
        ],
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Quality Assurance",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Programming Language :: Python :: 3.13",
        "Operating System :: OS Independent",
    ],
    keywords="code-analysis ast project-map architecture agent llm",
    project_urls={
        "Bug Tracker": "https://github.com/bearking-home/bearking/issues",
        "Source": "https://github.com/bearking-home/bearking",
    },
)
