-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
53 lines (47 loc) · 1.52 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
47
48
49
50
51
52
53
import os
from setuptools import find_packages, setup
extras = {
"postgres": ["psycopg2-binary"],
"mysql": ["mysql-connector-python"],
"snowflake": ["snowflake-connector-python"],
"bigquery": ["google-cloud-bigquery"],
"redshift": ["psycopg2-binary"],
"databricks": ["databricks-sql-connector"],
"sqlserver": ["pyodbc"],
}
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("defog/static")
setup(
name="defog",
packages=find_packages(),
package_data={"defog": ["gcp/*", "aws/*"] + next_static_files},
version="0.65.23",
description="Defog is a Python library that helps you generate data queries from natural language questions.",
author="Full Stack Data Pte. Ltd.",
license="MIT",
install_requires=[
"requests>=2.28.2",
"psycopg2-binary>=2.9.5",
"prompt-toolkit>=3.0.38",
"fastapi",
"uvicorn",
"tqdm",
"pwinput",
"aiohttp",
],
entry_points={
"console_scripts": [
"defog=defog.cli:main",
],
},
author_email="[email protected]",
url="https://github.com/defog-ai/defog-python",
long_description="Defog is a Python library that helps you generate data queries from natural language questions.",
long_description_content_type="text/markdown",
extras_require=extras,
)