-
Notifications
You must be signed in to change notification settings - Fork 90
/
pyproject.toml
143 lines (121 loc) · 3.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
[project]
name = "datacontract-cli"
version = "0.10.14"
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."
readme = "README.md"
authors = [
{ name = "Jochen Christ", email = "[email protected]" },
{ name = "Stefan Negele", email = "[email protected]" },
{ name = "Simon Harrer", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"typer>=0.12,<0.13",
"pydantic>=2.8.2,<2.10.0",
"pyyaml~=6.0.1",
"requests>=2.31,<2.33",
"fastapi==0.115.2", # move to extra?
"uvicorn==0.32.0", # move to extra?
"fastjsonschema>=2.19.1,<2.21.0",
"fastparquet==2024.5.0",
"python-multipart==0.0.12",
"rich>=13.7,<13.10",
"simple-ddl-parser==1.7.1",
"duckdb==1.1.2",
"soda-core-duckdb>=3.3.1,<3.5.0",
# remove setuptools when https://github.com/sodadata/soda-core/issues/2091 is resolved
"setuptools>=60",
"python-dotenv~=1.0.0",
"rdflib==7.0.0", # move to extra?
"opentelemetry-exporter-otlp-proto-grpc~=1.16", # move to extra?
"opentelemetry-exporter-otlp-proto-http~=1.16", # move to extra?
"boto3>=1.34.41,<1.35.45",
# "botocore>=1.34.41,<1.34.137",
"jinja_partials >= 0.2.1",
]
[project.optional-dependencies]
avro = [
"avro==1.12.0"
]
bigquery = [
"soda-core-bigquery>=3.3.1,<3.4.0"
]
databricks = [
"soda-core-spark-df>=3.3.1,<3.5.0",
"databricks-sql-connector>=3.1.2,<3.6.0",
"databricks-sdk>=0.32.0,<0.37.0",
"soda-core-spark[databricks]>=3.3.1,<3.5.0"
]
iceberg = [
"pyiceberg==0.7.1"
]
kafka = [
"datacontract-cli[avro]",
"soda-core-spark-df>=3.3.1,<3.5.0"
]
postgres = [
"soda-core-postgres>=3.3.1,<3.5.0"
]
s3 = [
"s3fs==2024.9.0"
]
snowflake = [
"snowflake-connector-python[pandas]>=3.6,<3.13",
"soda-core-snowflake>=3.3.1,<3.5.0"
]
sqlserver = [
"soda-core-sqlserver>=3.3.1,<3.5.0"
]
trino = [
"soda-core-trino>=3.3.1,<3.5.0"
]
dbt = [
"dbt-core>=1.8.0"
]
dbml = [
"pydbml>=1.1.1"
]
parquet = [
"pyarrow>=12.0.0"
]
all = [
"datacontract-cli[kafka,bigquery,snowflake,postgres,databricks,sqlserver,s3,trino,dbt,dbml,iceberg,parquet]"
]
dev = [
"datacontract-cli[all]",
"httpx==0.27.2",
"kafka-python",
"moto==5.0.18",
"pandas>=2.1.0",
"pre-commit>=3.7.1,<4.1.0",
"pytest",
"pytest-xdist",
"pymssql==2.3.1",
"ruff",
"testcontainers[minio,postgres,kafka,mssql]==4.8.2",
"trino==0.330.0",
]
[project.urls]
Homepage = "https://cli.datacontract.com"
Issues = "https://github.com/datacontract/datacontract-cli/issues"
[project.scripts]
datacontract = "datacontract.cli:app"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
#addopts = "-n 8" # run tests in parallel, you can disable parallel test execution with "pytest -n0" command
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
]