1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- """
- AI Architecture 安装脚本
- """
- from setuptools import setup, find_packages
- from pathlib import Path
- # 读取 README 文件
- readme_path = Path(__file__).parent / "README.md"
- long_description = readme_path.read_text(encoding="utf-8") if readme_path.exists() else ""
- # 读取 requirements.txt
- requirements_path = Path(__file__).parent / "requirements.txt"
- requirements = []
- if requirements_path.exists():
- requirements = requirements_path.read_text().splitlines()
- setup(
- name="ai-architecture",
- version="1.0.0",
- author="AI Architecture Team",
- author_email="team@ai-architecture.com",
- description="基于LangChain的AI通用服务框架",
- long_description=long_description,
- long_description_content_type="text/markdown",
- url="https://github.com/your-username/ai-architecture",
- packages=find_packages(),
- classifiers=[
- "Development Status :: 4 - Beta",
- "Intended Audience :: Developers",
- "License :: OSI Approved :: MIT License",
- "Operating System :: OS Independent",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
- "Programming Language :: Python :: 3.10",
- "Programming Language :: Python :: 3.11",
- "Topic :: Scientific/Engineering :: Artificial Intelligence",
- "Topic :: Software Development :: Libraries :: Python Modules",
- ],
- python_requires=">=3.8",
- install_requires=requirements,
- extras_require={
- "dev": [
- "pytest>=7.4.0",
- "pytest-asyncio>=0.21.0",
- "black>=23.0.0",
- "isort>=5.12.0",
- "flake8>=6.0.0",
- ],
- "docs": [
- "sphinx>=4.0.0",
- "sphinx-rtd-theme>=1.0.0",
- ],
- },
- entry_points={
- "console_scripts": [
- "ai-arch=run_examples:main",
- ],
- },
- include_package_data=True,
- package_data={
- "": ["*.md", "*.txt", "*.yml", "*.yaml"],
- },
- keywords="ai langchain llm vector-database document-processing chat qa",
- project_urls={
- "Bug Reports": "https://github.com/your-username/ai-architecture/issues",
- "Source": "https://github.com/your-username/ai-architecture",
- "Documentation": "https://ai-architecture.readthedocs.io/",
- },
- )
|