setup.py•1.98 kB
#!/usr/bin/env python3
"""
MCP Reminder 安装脚本
支持传统的 pip install 安装方式
"""
from setuptools import setup, find_packages
# 读取 README 文件
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# 读取依赖文件
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
setup(
name="mcp-reminder",
version="3.0.0",
author="MCP Reminder Service",
author_email="mcp-reminder@example.com",
description="基于 Model Context Protocol 的消息发送和定时提醒服务",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/example/mcp-reminder",
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
],
python_requires=">=3.11",
install_requires=requirements,
extras_require={
"dev": [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"isort>=5.12.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
],
"test": [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
],
},
entry_points={
"console_scripts": [
"mcp-reminder=mcp_reminder.main:main",
],
},
include_package_data=True,
zip_safe=False,
)