-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
160 lines (137 loc) · 4.25 KB
/
Copy pathsetup.py
File metadata and controls
160 lines (137 loc) · 4.25 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!/usr/bin/env python3
"""
Quarkdown MCP Server Setup Configuration
This setup.py file enables installation of the Quarkdown MCP server
with optional development dependencies.
Installation:
# Core installation
pip install -e .
# Development installation with all dev tools
pip install -e ".[dev]"
# Testing only
pip install -e ".[test]"
# Documentation only
pip install -e ".[docs]"
"""
from setuptools import setup, find_packages
import os
# Read the contents of README file
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Read requirements from requirements.txt
def read_requirements(filename):
"""Read requirements from a file, filtering out comments and empty lines."""
requirements = []
try:
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
line = line.strip()
# Skip comments and empty lines
if line and not line.startswith('#'):
requirements.append(line)
except FileNotFoundError:
pass
return requirements
# Core requirements
install_requires = read_requirements('requirements.txt')
# Development requirements
dev_requires = read_requirements('requirements-dev.txt')
# Test-only requirements
test_requires = [
'pytest>=7.0.0',
'pytest-asyncio>=0.21.0',
'pytest-cov>=4.0.0',
'pytest-mock>=3.10.0',
'pytest-xdist>=3.2.0',
]
# Documentation requirements
docs_requires = [
'sphinx>=6.0.0',
'sphinx-rtd-theme>=1.2.0',
'sphinx-autodoc-typehints>=1.22.0',
]
# Linting and formatting requirements
lint_requires = [
'black>=23.0.0',
'isort>=5.12.0',
'flake8>=6.0.0',
'mypy>=1.0.0',
'pre-commit>=3.0.0',
'autoflake>=2.0.0',
]
setup(
name="quarkdown-mcp",
version="1.0.0",
description="A Model Context Protocol (MCP) server for Quarkdown document processing",
long_description=long_description,
long_description_content_type="text/markdown",
author="Quarkdown MCP Team",
author_email="contact@quarkdown-mcp.dev",
url="https://github.com/your-org/quarkdown-mcp",
license="MIT",
# Package discovery
packages=find_packages(where="src"),
package_dir={"": "src"},
# Include non-Python files
include_package_data=True,
package_data={
"quarkdown_mcp": [
"*.json",
"*.yaml",
"*.yml",
"templates/*",
"config/*",
],
},
# Python version requirement
python_requires=">=3.8",
# Core dependencies
install_requires=install_requires,
# Optional dependencies
extras_require={
"dev": dev_requires,
"test": test_requires,
"docs": docs_requires,
"lint": lint_requires,
"all": dev_requires + test_requires + docs_requires + lint_requires,
},
# Entry points for command-line scripts
entry_points={
"console_scripts": [
"quarkdown-mcp=quarkdown_mcp.server:main",
],
},
# Classifiers for PyPI
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",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
"Topic :: Documentation",
],
# Keywords for PyPI search
keywords=[
"mcp",
"model-context-protocol",
"quarkdown",
"markdown",
"document-processing",
"ai-tools",
"llm-tools",
],
# Project URLs
project_urls={
"Bug Reports": "https://github.com/your-org/quarkdown-mcp/issues",
"Source": "https://github.com/your-org/quarkdown-mcp",
"Documentation": "https://quarkdown-mcp.readthedocs.io/",
},
)