-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
102 lines (97 loc) · 3.15 KB
/
setup.py
File metadata and controls
102 lines (97 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python3
"""
Keynote-MCP Setup Script
"""
from setuptools import setup, find_packages
import os
# 读取 README.md 文件
def read_readme():
with open("README.md", "r", encoding="utf-8") as fh:
return fh.read()
# 读取 requirements.txt 文件
def read_requirements():
with open("requirements.txt", "r", encoding="utf-8") as fh:
return [line.strip() for line in fh if line.strip() and not line.startswith("#")]
# 读取版本号
def read_version():
version_file = os.path.join("src", "__init__.py")
if os.path.exists(version_file):
with open(version_file, "r", encoding="utf-8") as fh:
for line in fh:
if line.startswith("__version__"):
return line.split("=")[1].strip().strip('"').strip("'")
return "1.0.0"
setup(
name="keynote-mcp",
version=read_version(),
author="Keynote-MCP Team",
author_email="your-email@example.com",
description="一个专为大模型设计的 MCP 套件,通过 AppleScript 实现对 Keynote 的全面控制",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/easychen/keynote-mcp",
project_urls={
"Bug Reports": "https://github.com/easychen/keynote-mcp/issues",
"Source": "https://github.com/easychen/keynote-mcp",
"Documentation": "https://github.com/easychen/keynote-mcp/blob/main/docs/README.md",
},
packages=find_packages(where="src"),
package_dir={"": "src"},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"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 :: Multimedia :: Graphics :: Presentation",
"Topic :: Office/Business :: Office Suites",
],
python_requires=">=3.8",
install_requires=read_requirements(),
extras_require={
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.0.0",
"flake8>=5.0.0",
"mypy>=1.0.0",
"bandit>=1.7.0",
"safety>=2.0.0",
],
"docs": [
"sphinx>=5.0.0",
"sphinx-rtd-theme>=1.0.0",
"sphinx-autodoc-typehints>=1.19.0",
],
},
entry_points={
"console_scripts": [
"keynote-mcp=src.server:main",
],
},
include_package_data=True,
package_data={
"": ["*.scpt", "*.applescript", "*.md", "*.txt"],
"src.applescript": ["*.scpt"],
},
zip_safe=False,
keywords=[
"keynote",
"mcp",
"model-context-protocol",
"applescript",
"automation",
"presentation",
"macos",
"ai",
"llm",
],
platforms=["macOS"],
)