forked from letsql/letsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
246 lines (221 loc) · 8.41 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
[build-system]
requires = ["maturin>=1.2,<2.0"]
build-backend = "maturin"
[project]
name = "letsql"
dynamic = ["version"]
dependencies = [
"ibis-framework==9.4.0; python_version >= '3.10' and python_version < '4.0'",
"dask==2024.8.0 ; python_version >= '3.10' and python_version < '4.0'",
"attrs>=24.0.0,<25; python_version >= '3.10' and python_version < '4.0'",
"connectorx>=0.3.2,<0.5.0; python_version >= '3.10' and python_version < '4.0'",
"psycopg2-binary>=2.9.9,<3 ; python_version >= '3.10' and python_version < '4.0'",
"sqlalchemy>=2.0.29,<3 ; python_version >= '3.10' and python_version < '4.0'",
"pyarrow>=13.0.0,<19; python_version >= '3.10' and python_version < '4.0'",
"structlog>=24.2.0,<25 ; python_version >= '3.10' and python_version < '4.0'",
"pytest-mock>=3.14.0,<4 ; python_version >= '3.10' and python_version < '4.0'",
"cityhash>=0.4.7,<1 ; python_version >= '3.10' and python_version < '4.0'",
"adbc-driver-postgresql>=1.2.0,<2 ; python_version >= '3.10' and python_version < '4.0'",
"pandas>=1.5.3,<3 ; python_version >= '3.10' and python_version < '4.0'",
"pyarrow-hotfix>=0.4,<1 ; python_version >= '3.10' and python_version < '4.0'",
"geoarrow-types>=0.2,<1 ; python_version >= '3.10' and python_version < '4.0'",
]
requires-python = ">=3.10"
authors = [
{ name = "Hussain Sultan", email = "[email protected]" },
]
maintainers = [
{ email = "Dan Lovell <[email protected]>" },
{ email = "Daniel Mesejo <[email protected]>" },
]
description = "Data processing library built on top of Ibis and DataFusion to write multi-engine data workflows."
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: User Interfaces",
"Topic :: Database :: Database Engines/Servers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython"
]
[project.urls]
Homepage = "https://www.letsql.com/"
Repository = "https://github.com/letsql/letsql.git"
Issues = "https://github.com/letsql/letsql/issues"
Changelog = "https://github.com/letsql/letsql/blob/main/CHANGELOG.md"
[project.optional-dependencies]
duckb = [
"duckdb>=0.10.3,<2 ; python_version >= '3.10' and python_version < '4.0'"
]
datafusion = [
"datafusion>=34.0.0,<41; python_version >= '3.10' and python_version < '4.0'"
]
snowflake = [
"snowflake-connector-python>=3.10.1,<4 ; python_version >= '3.10' and python_version < '4.0'"
]
examples = [
"fsspec>=2024.6.1,<2024.10.1; python_version >= '3.10' and python_version < '4.0'",
"pins[gcs]>=0.8.3,<1 ; python_version >= '3.10' and python_version < '4.0'",
"xgboost >=1.6.1 ; python_version >= '3.10' and python_version < '4.0'",
"duckdb >=0.10.3,<2 ; python_version >= '3.10' and python_version < '4.0'"
]
[project.entry-points."letsql.backends"]
let = "letsql.backends.let"
postgres = "letsql.backends.postgres"
snowflake = "letsql.backends.snowflake"
datafusion = "letsql.backends.datafusion"
duckdb = "letsql.backends.duckdb"
[tool.maturin]
module-name = "letsql._internal"
python-source = "python"
features = ["pyo3/extension-module"]
[tool.codespell]
skip = "*.lock,.direnv,.git,docs/_freeze/**/html.json"
ignore-regex = '\b(DOUB|i[if]f|I[IF]F|lamduh|AFE|crate|ba)\b'
builtin = "clear,rare,names"
[tool.poetry]
name = "letsql"
# this is just a placeholder https://github.com/tiangolo/poetry-version-plugin?tab=readme-ov-file#version-in-pyprojecttoml
version = "0"
description = ""
authors = ["Hussain Sultan <[email protected]>", "Dan Lovell <[email protected]>", "Daniel Mesejo <[email protected]>"]
packages = [
{ include = "letsql", from = "python" },
]
[tool.poetry.dependencies]
python = "^3.10"
maturin = "^1.4.0"
ibis-framework = "9.4.0"
dask = "2024.8.0"
attrs = "^24.0.0"
connectorx = "^0.3.2 || ^0.4.0"
psycopg2-binary = "^2.9.9"
sqlalchemy = "^2.0.29"
pyarrow = ">=13.0.0,<19"
pyarrow-hotfix = ">=0.4,<1"
geoarrow-types = ">=0.2,<1"
duckdb = {version = ">=0.10.3,<2", optional = true}
snowflake-connector-python = {version = ">=3.10.1,<4", optional = true}
datafusion = {version = ">=34.0.0,<41", optional = true}
structlog = "^24.2.0"
pytest-mock = "^3.14.0"
fsspec = { version = ">=2024.6.1,<2024.10.1", optional = true }
pins = { version = ">=0.8.3,<1", extras = ["gcs"], optional = true }
xgboost = { version = ">=1.6.1", optional = true}
cityhash = { version = ">=0.4.7,<1" }
adbc-driver-postgresql = "^1.2.0"
pandas = ">=1.5.3,<3"
[tool.poetry.group.dev.dependencies]
python = "^3.10"
black = "24.10.0"
blackdoc = "0.3.9"
codespell = {version = "2.3.0", extras = ["hard-encoding-detection", "toml"]}
coverage = {version = "7.6.5", extras = ["toml"]}
git-cliff = "^2.2.1"
ipython = "^8.19.0"
pre-commit = "4.0.1"
pytest = "8.0.2"
pytest-cov = "6.0.0"
ruff = "0.7.3"
trino = "0.330.0"
[tool.poetry.group.test.dependencies]
python = "^3.10"
pytest-snapshot = "^0.9.0"
scikit-learn = "^1.4.0"
xgboost = ">=1.6.1"
[tool.poetry.group.docs.dependencies]
python = "^3.10"
quartodoc = "^0.7.2 || ^0.9.0"
nbformat = "^5.10.4"
nbclient = "^0.10.0"
ipykernel = "^6.29.4"
[tool.poetry.extras]
datafusion = ["datafusion"]
duckdb = ["duckdb"]
snowflake = ["snowflake-connector-python"]
examples = ["pins", "fsspec", "duckdb", "xgboost"]
[tool.poetry.plugins."letsql.backends"]
let = "letsql.backends.let"
postgres = "letsql.backends.postgres"
snowflake = "letsql.backends.snowflake"
datafusion = "letsql.backends.datafusion"
duckdb = "letsql.backends.duckdb"
[tool.pytest.ini_options]
filterwarnings = [
# pandas 2.2 warnings
'ignore:DataFrameGroupBy\.apply operated on the grouping columns\. This behavior is deprecated:DeprecationWarning',
'ignore:Downcasting object dtype arrays on \.fillna, \.ffill, \.bfill is deprecated:FutureWarning',
# pandas 2.2 warnings coming directly from the way flink uses pandas
"ignore:Passing a BlockManager to DataFrame is deprecated:DeprecationWarning",
"ignore:.+ /workspace/src/objective/regression_obj.cu:UserWarning"
]
markers = [
"snowflake",
"library",
"s3"
]
[tool.git-cliff.changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{% if version -%}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else -%}
## [Unreleased]
{% endif -%}
### Details\
{% for group, commits in commits | group_by(attribute="group") %}
#### {{ group | upper_first }}
{%- for commit in commits %}
- {{ commit.message | upper_first | trim }}\
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
{% if commit.github.pr_number %} in \
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) \
{%- endif -%}
{% endfor %}
{% endfor %}
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
## New Contributors
{%- endif -%}
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
* @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
{%- endif %}
{%- endfor %}\n
"""
trim = true
[tool.git-cliff.git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
]
commit_parsers = [
{ message = "^.*: add", group = "Added" },
{ message = "^.*: support", group = "Added" },
{ message = "^.*: remove", group = "Removed" },
{ message = "^.*: delete", group = "Removed" },
{ message = "^test", group = "Fixed" },
{ message = "^fix", group = "Fixed" },
{ message = "^.*: fix", group = "Fixed" },
{ message = "^.*", group = "Changed" },
]
protect_breaking_commits = false
filter_commits = true
tag_pattern = "v[0-9].*"
topo_order = false
sort_commits = "oldest"