-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathpyproject.toml
More file actions
197 lines (163 loc) · 4.55 KB
/
pyproject.toml
File metadata and controls
197 lines (163 loc) · 4.55 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
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
[project]
name = "datacontract-cli"
version = "0.12.1"
description = "The datacontract CLI is an open source command-line tool for working with Data Contracts. It uses data contract YAML files to lint the data contract, connect to data sources and execute schema and quality tests, detect breaking changes, and export to different formats. The tool is written in Python. It can be used as a standalone CLI tool, in a CI/CD pipeline, or directly as a Python library."
license = "MIT"
readme = "README.md"
authors = [
{ name = "Jochen Christ", email = "jochen.christ@innoq.com" },
{ name = "Stefan Negele", email = "stefan.negele@innoq.com" },
{ name = "Simon Harrer", email = "simon.harrer@innoq.com" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
requires-python = ">=3.10,<3.13"
dependencies = [
"typer>=0.18.0,<0.26",
"pydantic>=2.8.2,<2.14.0",
"pyyaml~=6.0.1",
"requests>=2.31,<2.34",
"fastjsonschema>=2.19.1,<2.22.0",
"jsonschema>=4.23.0,<5.0.0",
"pytz>=2024.1",
"python-multipart>=0.0.20,<1.0.0",
"rich>=13.7,<16.0",
"sqlglot>=26.6.0,<31.0.0",
# remove setuptools when https://github.com/sodadata/soda-core/issues/2091 is resolved
"setuptools>=60",
"python-dotenv>=1.0.0,<2.0.0",
"boto3>=1.34.41,<2.0.0",
"Jinja2>=3.1.5,<4.0.0",
"jinja_partials>=0.2.1,<1.0.0",
"datacontract-specification>=1.2.3,<2.0.0",
"open-data-contract-standard>=3.1.2,<4.0.0",
"deepdiff>=6.0.0,<10.0.0",
]
[project.optional-dependencies]
avro = [
"avro==1.12.1"
]
bigquery = [
"soda-core-bigquery>=3.3.20,<3.6.0",
]
csv = [
"pandas >= 2.0.0",
]
excel = [
"openpyxl>=3.1.5,<4.0.0",
]
databricks = [
"soda-core-spark-df>=3.3.20,<3.6.0",
"soda-core-spark[databricks]>=3.3.20,<3.6.0",
"databricks-sql-connector>=3.7.0,<4.3.0",
"databricks-sdk<0.106.0",
"pyspark>=3.5.0,<5.0.0",
]
iceberg = [
"pyiceberg==0.11.1"
]
kafka = [
"datacontract-cli[avro]",
"soda-core-spark-df>=3.3.20,<3.6.0",
"pyspark>=3.5.0,<5.0.0",
]
mysql = [
"soda-core-mysql>=3.3.20,<3.6.0",
"mysql-connector-python>=8.0.30,<9.7.0",
]
postgres = [
"soda-core-postgres>=3.3.20,<3.6.0"
]
s3 = [
"s3fs>=2025.2.0,<2027.0.0",
"aiobotocore>=2.17.0,<3.6.0",
]
snowflake = [
"snowflake-connector-python[pandas]>=3.6,<4.5",
"soda-core-snowflake>=3.3.20,<3.6.0"
]
sqlserver = [
"soda-core-sqlserver>=3.3.20,<3.6.0"
]
oracle = [
"soda-core-oracle>=3.3.20,<3.6.0"
]
athena = [
"soda-core-athena>=3.3.20,<3.6.0"
]
trino = [
"soda-core-trino>=3.3.20,<3.6.0"
]
dbt = [
"dbt-core>=1.8.0"
]
dbml = [
"pydbml>=1.1.1"
]
duckdb = [
"duckdb>=1.0.0,<1.6.0",
"soda-core-duckdb>=3.3.20,<3.6.0",
]
parquet = [
"pyarrow>=18.1.0"
]
rdf = [
"rdflib==7.6.0",
]
api = [
"fastapi==0.136.0",
"uvicorn==0.44.0",
]
protobuf = [
"grpcio-tools>=1.53",
]
all = [
"datacontract-cli[kafka,bigquery,csv,excel,snowflake,postgres,mysql,databricks,sqlserver,s3,athena,trino,dbt,dbml,duckdb,iceberg,parquet,rdf,api,protobuf,oracle]"
]
# for development, we pin all libraries to an exact version
dev = [
"datacontract-cli[all]",
"httpx==0.28.1",
"kafka-python",
"minio==7.2.20", # Pin to 7.2.17 - 7.2.18+ has keyword-only params incompatible with testcontainers
"moto==5.1.22",
"pandas>=2.1.0",
"pre-commit>=3.7.1,<4.6.0",
"pytest",
"pytest-xdist",
"pymssql==2.3.13",
"ruff==0.15.12",
"testcontainers[minio,postgres,kafka,mssql,mysql]==4.14.2",
"trino==0.337.0",
]
[project.urls]
Homepage = "https://cli.datacontract.com"
Issues = "https://github.com/datacontract/datacontract-cli/issues"
[project.scripts]
datacontract = "datacontract.cli:main"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.uv]
# soda-core-mysql pins mysql-connector-python==8.0.30 (from 2022) which requires
# protobuf<=3.20.1, conflicting with dbt-core. Newer mysql-connector-python (9.x)
# works fine with soda and resolves the conflict. See: https://github.com/sodadata/soda-core/issues/2515
override-dependencies = [
"mysql-connector-python>=8.0.30,<9.7.0",
]
[tool.pytest.ini_options]
#addopts = "-n 8" # run tests in parallel, you can disable parallel test execution with "pytest -n0" command
testpaths = ["tests"]
log_level = "INFO"
#log_cli = "true" # activate live logging, do not use with -n 8 xdist option for parallel test execution: https://github.com/pytest-dev/pytest-xdist/issues/402
log_cli_level = "INFO"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = [
"I", # re-order imports in alphabetic order
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]