-
Notifications
You must be signed in to change notification settings - Fork 213
/
setup.py
46 lines (42 loc) · 1.26 KB
/
setup.py
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
import os
from setuptools import find_packages, setup
extras = {
"llama-cpp": ["llama-cpp-python"],
"transformers": ["torch", "transformers"],
}
def package_files(directory):
paths = []
for path, directories, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
next_static_files = package_files("sqlcoder/static")
setup(
name="sqlcoder",
packages=find_packages(),
package_data={"sqlcoder": next_static_files},
version="0.2.5",
description="SQLCoder is a large language model for converting text questions in SQL queries.",
author="Defog, Inc",
license="Apache-2",
install_requires=[
"psycopg2-binary>=2.9.5",
"fastapi",
"uvicorn",
"defog",
"pandas",
"sqlparse",
"argparse",
"huggingface-hub",
],
entry_points={
"console_scripts": [
"sqlcoder=sqlcoder.cli:main",
],
},
author_email="[email protected]",
url="https://github.com/defog-ai/sqlcoder",
long_description="SQLCoder is a large language model for converting text questions in SQL queries.",
long_description_content_type="text/markdown",
extras_require=extras,
)