-
Notifications
You must be signed in to change notification settings - Fork 199
/
Copy pathpyproject.toml
207 lines (195 loc) · 5 KB
/
pyproject.toml
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[project]
name = "sqlmesh"
dynamic = ["version"]
description = "Next-generation data transformation framework"
readme = "README.md"
authors = [{ name = "TobikoData Inc.", email = "[email protected]" }]
license = { file = "LICENSE" }
requires-python = ">= 3.9"
dependencies = [
"astor",
"click",
"croniter",
"duckdb!=0.10.3",
"dateparser",
"hyperscript>=0.1.0",
"importlib-metadata; python_version<'3.12'",
"ipywidgets",
"jinja2",
"pandas",
"pydantic>=2.0.0",
"requests",
"rich[jupyter]",
"ruamel.yaml",
"sqlglot[rs]~=26.11.1",
"tenacity",
"time-machine",
]
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",
]
[project.optional-dependencies]
athena = ["PyAthena[Pandas]"]
azuresql = ["pymssql"]
bigquery = [
"google-cloud-bigquery[pandas]",
"google-cloud-bigquery-storage"
]
bigframes = ["bigframes>=1.32.0"]
clickhouse = ["clickhouse-connect"]
databricks = ["databricks-sql-connector"]
dev = [
"agate==1.7.1",
"apache-airflow==2.9.1",
"opentelemetry-proto==1.27.0", # pip was having trouble resolving this transitive dependency of airflow
"beautifulsoup4",
"clickhouse-connect",
"cryptography",
"databricks-sql-connector",
"dbt-bigquery",
"dbt-core",
"dbt-duckdb>=1.7.1",
"dbt-snowflake",
"dbt-athena-community",
"dbt-clickhouse",
"dbt-databricks",
"dbt-redshift",
"dbt-sqlserver>=1.7.0",
"dbt-trino",
"Faker",
"google-auth",
"google-cloud-bigquery",
"google-cloud-bigquery-storage",
"mypy~=1.13.0",
"pandas-stubs",
"pre-commit",
"psycopg2-binary",
"pydantic",
"PyAthena[Pandas]",
"PyGithub~=2.5.0",
"pyspark~=3.5.0",
"pytest",
"pytest-asyncio",
"pytest-mock",
"pytest-retry",
"pytest-xdist",
"pytz",
"redshift_connector",
"ruff~=0.7.0",
"snowflake-connector-python[pandas,secure-local-storage]>=3.0.2",
"sqlalchemy-stubs",
"trino",
"types-croniter",
"types-dateparser",
"types-PyMySQL",
"types-python-dateutil",
"types-pytz",
"types-requests==2.28.8",
"typing-extensions",
]
dbt = ["dbt-core<2"]
dlt = ["dlt"]
gcppostgres = ["cloud-sql-python-connector[pg8000]>=1.8.0"]
github = ["PyGithub~=2.5.0"]
llm = ["langchain", "openai"]
mssql = ["pymssql"]
mysql = ["pymysql"]
mwaa = ["boto3"]
postgres = ["psycopg2"]
redshift = ["redshift_connector"]
slack = ["slack_sdk"]
snowflake = [
"cryptography",
"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.115.5",
"watchfiles>=0.19.0",
"uvicorn[standard]==0.22.0",
"sse-starlette>=0.2.2",
"pyarrow",
]
risingwave = ["psycopg2"]
[project.scripts]
sqlmesh = "sqlmesh.cli.main:cli"
sqlmesh_cicd = "sqlmesh.cicd.bot:bot"
[project.entry-points."airflow.plugins"]
sqlmesh_airflow = "sqlmesh.schedulers.airflow.plugin:SqlmeshAirflowPlugin"
[project.urls]
Homepage = "https://sqlmesh.com/"
Documentation = "https://sqlmesh.readthedocs.io/en/stable/"
Repository = "https://github.com/TobikoData/sqlmesh"
Issues = "https://github.com/TobikoData/sqlmesh/issues"
[build-system]
requires = ["setuptools >= 61.0", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = false
[tool.setuptools_scm]
version_file = "sqlmesh/_version.py"
fallback_version = "0.0.0"
local_scheme = "no-local-version"
[tool.setuptools.packages.find]
include = ["sqlmesh", "sqlmesh.*", "web*"]
[tool.setuptools.package-data]
web = ["client/dist/**"]
"*" = ["py.typed"]
# MyPy Rules
[tool.mypy]
plugins = "pydantic.mypy"
no_implicit_optional = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"examples.*.macros.*",
"tests.*",
"sqlmesh.migrations.*"
]
disallow_untyped_defs = false
# Sometimes it's helpful to use types within an "untyped" function because it allows IDE assistance
# Unfortunately this causes MyPy to print an annoying 'By default the bodies of untyped functions are not checked'
# warning so we disable that warning here
disable_error_code = "annotation-unchecked"
[[tool.mypy.overrides]]
module = [
"api.*",
"airflow.*",
"astor.*",
"IPython.*",
"hyperscript.*",
"py.*",
"ruamel.*",
"setuptools.*",
"graphviz.*",
"ipywidgets.*",
"google.*",
"snowflake.*",
"redshift_connector",
"databricks.*",
"faker.*",
"agate.*",
"databricks_cli.*",
"mysql.*",
"pymssql.*",
"psycopg2.*",
"langchain.*",
"pytest_lazyfixture.*",
"dbt.adapters.*",
"slack_sdk.*",
"py4j.*",
"boto3.*",
"trino.*",
"bs4.*",
"pydantic_core.*",
"dlt.*",
"bigframes.*",
]
ignore_missing_imports = true