forked from TobikoData/sqlmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
168 lines (165 loc) · 4.74 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
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
161
162
163
164
165
166
167
168
import os
from os.path import exists
from setuptools import find_packages, setup
description = open("README.md").read() if exists("README.md") else ""
setup(
name="sqlmesh",
description="",
long_description=description,
long_description_content_type="text/markdown",
url="https://github.com/TobikoData/sqlmesh",
author="TobikoData Inc.",
author_email="[email protected]",
license="Apache License 2.0",
packages=find_packages(include=["sqlmesh", "sqlmesh.*", "web*"]),
package_data={"web": ["client/dist/**"], "": ["py.typed"]},
entry_points={
"console_scripts": [
"sqlmesh = sqlmesh.cli.main:cli",
"sqlmesh_cicd = sqlmesh.cicd.bot:bot",
],
"airflow.plugins": [
"sqlmesh_airflow = sqlmesh.schedulers.airflow.plugin:SqlmeshAirflowPlugin",
],
},
use_scm_version={
"write_to": "sqlmesh/_version.py",
"fallback_version": "0.0.0",
"local_scheme": "no-local-version",
},
setup_requires=["setuptools_scm"],
install_requires=[
"astor",
"click",
"croniter",
"duckdb!=0.10.3",
"dateparser",
"freezegun",
"hyperscript>=0.1.0",
"importlib-metadata; python_version<'3.12'",
"ipywidgets",
"jinja2",
"pandas",
"pydantic",
"requests",
"rich[jupyter]",
"ruamel.yaml",
"sqlglot[rs]~=25.27.0",
"tenacity",
],
extras_require={
"athena": ["PyAthena[Pandas]"],
"bigquery": [
"google-cloud-bigquery[pandas]",
"google-cloud-bigquery-storage",
],
"clickhouse": ["clickhouse-connect"],
"databricks": ["databricks-sql-connector"],
"dev": [
f"apache-airflow=={os.environ.get('AIRFLOW_VERSION', '2.9.1')}",
"agate==1.7.1",
"beautifulsoup4",
"ruff~=0.4.0",
"cryptography~=42.0.4",
"dbt-core",
"dbt-duckdb>=1.7.1",
"dbt-snowflake",
"dbt-bigquery",
"Faker",
"google-auth",
"google-cloud-bigquery",
"google-cloud-bigquery-storage",
"mypy~=1.10.0",
"pre-commit",
"pandas-stubs",
"psycopg2-binary",
"pydantic<2.6.0",
"PyGithub",
"pytest",
"pytest-asyncio<0.23.0",
"pytest-mock",
"pytest-xdist",
"pytest-retry; python_version>='3.9'",
"pyspark~=3.5.0",
"pytz",
"snowflake-connector-python[pandas,secure-local-storage]>=3.0.2",
"sqlalchemy-stubs",
"types-croniter",
"types-dateparser",
"types-python-dateutil",
"types-pytz",
"types-requests==2.28.8",
"typing-extensions",
"custom-materializations",
],
"cicdtest": [
"dbt-databricks",
"dbt-redshift",
"dbt-sqlserver>=1.7.0",
"dbt-trino",
"dbt-athena-community",
],
"dbt": [
"dbt-core<2",
],
"dlt": [
"dlt",
],
"gcppostgres": [
"cloud-sql-python-connector[pg8000]",
],
"github": [
"PyGithub",
],
"llm": [
"langchain",
"openai",
],
"mssql": [
"pymssql",
],
"mysql": [
"mysql-connector-python",
],
"mwaa": [
"boto3",
],
"postgres": [
"psycopg2",
],
"redshift": [
"redshift_connector",
],
"slack": [
"slack_sdk",
],
"snowflake": [
# https://github.com/dbt-labs/dbt-snowflake/blob/main/dev-requirements.txt#L12
"cryptography~=42.0.4",
"snowflake-connector-python[pandas,secure-local-storage]",
# as at 2024-08-05, snowflake-snowpark-python is only available up to Python 3.11
"snowflake-snowpark-python; python_version<'3.12'",
],
"trino": [
"trino",
],
"web": [
"fastapi==0.110.2",
"watchfiles>=0.19.0",
"uvicorn[standard]==0.22.0",
"sse-starlette>=0.2.2",
"pyarrow",
],
"risingwave": [
"psycopg2",
],
},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: SQL",
"Programming Language :: Python :: 3 :: Only",
],
)