-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (43 loc) · 1.42 KB
/
Copy pathsetup.py
File metadata and controls
48 lines (43 loc) · 1.42 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
"""
Setup file for textql-mcp-server.
"""
from setuptools import setup, find_packages
# Read requirements from requirements.txt
with open("requirements.txt") as f:
requirements = [line for line in f.read().splitlines() if not line.startswith("#")]
# Read Spanner-specific requirements
try:
with open("requirements-spanner.txt") as f:
spanner_requirements = [
line for line in f.read().splitlines() if not line.startswith("#")
]
except FileNotFoundError:
spanner_requirements = [
"google-auth",
"google-cloud-spanner",
]
# Read long description from README.md
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="textql-mcp",
version="0.1.0",
author="Sasha Alyushin",
author_email="sasha@micra.io",
description="An MCP server for translating natural language to `*` Query Language (`*`QL)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/alexandme/textql-mcp",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache 2.0 License",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
install_requires=requirements,
extras_require={
"spanner": spanner_requirements,
},
)