forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
327 lines (312 loc) · 10.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
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
[tool.poetry]
name = "ibis-framework"
version = "3.2.0"
packages = [{ include = "ibis" }]
homepage = "https://ibis-project.org"
repository = "https://github.com/ibis-project/ibis"
documentation = "https://ibis-project.org"
description = "Productivity-centric Python Big Data Framework"
authors = ["Ibis Contributors"]
maintainers = ["Ibis Contributors"]
license = "Apache-2.0"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
]
[tool.poetry-dynamic-versioning]
enable = true
dirty = true
style = "semver"
pattern = "^(?P<base>\\d+(\\.\\d+)*)"
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
atpublic = ">=2.3,<4"
multipledispatch = ">=0.6,<0.7"
numpy = ">=1,<2"
packaging = ">=21.3,<22"
pandas = ">=1.2.5,<2"
parsy = ">=1.3.0,<3"
regex = ">=2021.7.6"
rich = ">=12.4.4,<13"
toolz = ">=0.11,<0.13"
typing-extensions = ">=4.3.0,<5"
clickhouse-cityhash = { version = ">=1.0.2,<2", optional = true }
clickhouse-driver = { version = ">=0.1,<0.3", optional = true, extras = [
"numpy"
] }
dask = { version = ">=2021.10.0,<2022.8.0", optional = true, extras = [
"array",
"dataframe"
] }
datafusion = { version = ">=0.6,<0.7", optional = true }
duckdb = { version = ">=0.3.2,<1", optional = true }
duckdb-engine = { version = ">=0.1.8,<1", optional = true }
fsspec = { version = ">=2022.1.0", optional = true }
GeoAlchemy2 = { version = ">=0.6.3,<0.13", optional = true }
geopandas = { version = ">=0.6,<0.12", optional = true }
graphviz = { version = ">=0.16,<0.21", optional = true }
impyla = { version = ">=0.17,<0.19", optional = true, extras = ["kerberos"] }
lz4 = { version = ">=3.1.10,<5", optional = true }
psycopg2 = { version = ">=2.8.4,<3", optional = true }
pyarrow = { version = ">=1,<10", optional = true }
pymysql = { version = ">=1,<2", optional = true }
pyspark = { version = ">=3,<4", optional = true }
requests = { version = ">=2,<3", optional = true }
Shapely = { version = ">=1.6,<1.8.5", optional = true }
sqlalchemy = { version = ">=1.4,<2.0", optional = true }
sqlglot = { version = ">=4.5.0,<7", optional = true }
snowflake-sqlalchemy = { version = ">=1.4.1,<2", optional = true }
[tool.poetry.dev-dependencies]
absolufy-imports = ">=0.3.1,<1"
black = ">=22.1.0,<23"
click = ">=8.0.1,<9"
commitizen = ">=2.20.3,<3"
docstring_parser = ">=0.13,<0.14"
docformatter = ">=1.5.0,<2"
flake8 = ">=4.0.0,<6"
ipykernel = ">=6,<7"
ipython = ">=7.27.0,<9"
isort = ">=5.9.3,<6"
mike = ">=1.1.2,<2"
mkdocs = ">=1.2.3,<2"
mkdocs-exclude = ">=1.0.2,<2"
mkdocs-gen-files = ">=0.3.4,<0.5.0"
mkdocs-git-revision-date-localized-plugin = ">=1.0.1,<2"
mkdocs-jupyter = ">=0.20.0,<1"
mkdocs-literate-nav = ">=0.4.1,<1"
mkdocs-macros-plugin = ">=0.6.3,<1"
mkdocs-material = ">=8.2.1,<9"
mkdocs-table-reader-plugin = ">=1.0.0,<2"
mkdocstrings = ">=0.17.0,<0.18.0"
mypy = ">=0.942,<1"
# TODO: 0.18.0 requires poetry 1.2.0
poetry-dynamic-versioning = ">=0.14.0,<0.18.0"
pyarrow = ">=1,<10"
pydocstyle = ">=6.1.1,<7"
pytest = ">=7.0.0,<8"
pytest-benchmark = ">=3.4.1,<4"
pytest-clarity = ">=1.0.1,<2"
pytest-cov = ">=3.0.0,<5"
pytest-mock = ">=3.6.1,<4"
pytest-profiling = ">=1.7.0,<2"
pytest-randomly = ">=3.10.1,<4"
pytest-repeat = ">=0.9.1,<0.10"
pytest-xdist = ">=2.3.0,<3"
filelock = ">=3.7.0,<4"
pytkdocs = { version = ">=0.15.0,<0.17.0", extras = ["numpy-style"] }
pyupgrade = ">=2.26.0,<4"
requests = ">=2,<3"
sqlalchemy = ">=1.4,<2.0"
tomli = ">=2.0.1,<3"
[tool.poetry.extras]
all = [
"clickhouse-cityhash",
"clickhouse-driver",
"dask",
"datafusion",
"duckdb",
"duckdb-engine",
"fsspec",
"GeoAlchemy2",
"geopandas",
"graphviz",
"impyla",
"lz4",
"psycopg2",
"pyarrow",
"pymysql",
"pyspark",
"requests",
"Shapely",
"snowflake-sqlalchemy",
"sqlalchemy",
"sqlglot",
]
clickhouse = ["clickhouse-driver", "clickhouse-cityhash", "lz4", "sqlglot"]
dask = ["dask", "pyarrow"]
datafusion = ["datafusion"]
duckdb = ["duckdb", "duckdb-engine", "pyarrow", "sqlalchemy", "sqlglot"]
geospatial = ["geoalchemy2", "geopandas", "shapely"]
impala = ["fsspec", "impyla", "requests", "sqlglot", "sqlalchemy"]
mysql = ["sqlalchemy", "pymysql", "sqlglot"]
pandas = []
postgres = ["psycopg2", "sqlalchemy", "sqlglot"]
pyspark = ["pyarrow", "pyspark"]
snowflake = ["snowflake-sqlalchemy", "sqlglot"]
sqlite = ["sqlalchemy", "sqlglot"]
visualization = ["graphviz"]
[tool.poetry.plugins."ibis.backends"]
clickhouse = "ibis.backends.clickhouse"
dask = "ibis.backends.dask"
datafusion = "ibis.backends.datafusion"
duckdb = "ibis.backends.duckdb"
impala = "ibis.backends.impala"
mysql = "ibis.backends.mysql"
pandas = "ibis.backends.pandas"
postgres = "ibis.backends.postgres"
pyspark = "ibis.backends.pyspark"
snowflake = "ibis.backends.snowflake"
spark = "ibis.backends.pyspark"
sqlite = "ibis.backends.sqlite"
[tool.pytest.ini_options]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ELLIPSIS"
]
xfail_strict = true
addopts = [
"--ignore=site-packages",
"--ignore=dist-packages",
"--strict-markers",
"--strict-config",
"--benchmark-disable",
"--benchmark-group-by=name",
"--benchmark-sort=name",
]
filterwarnings = [
# fail on any warnings that are not explicitly matched below
"error",
# pyspark and impala leave sockets open
"ignore:Exception ignored in:",
# poetry
"ignore:distutils Version classes are deprecated:DeprecationWarning",
# geopandas warning
"ignore:The distutils package is deprecated:DeprecationWarning",
# dask
"ignore:index is deprecated and will be removed in a future release:FutureWarning",
"ignore:Concatenating dataframes with unknown divisions:UserWarning",
'ignore:The Index\._get_attributes_dict method is deprecated:DeprecationWarning',
'ignore:\nYou did not provide metadata:UserWarning',
"ignore:`meta` is not specified:UserWarning",
# pandas
"ignore:Boolean Series key will be reindexed:UserWarning",
'ignore:Using \.astype to convert from timezone-(naive|aware) dtype:FutureWarning',
"ignore:This pattern is interpreted as a regular expression, and has match groups:UserWarning",
"ignore:The default dtype for empty Series will be 'object':FutureWarning",
"ignore:the `interpolation=` argument to percentile was renamed to `method=`:DeprecationWarning",
"ignore:Explicitly passing `name=None`:FutureWarning",
# the warning suggestion to simply remove the argument in the call isn't correct
"ignore:The 'check_less_precise' keyword in testing:FutureWarning",
# numpy
"ignore:Creating an ndarray from ragged nested sequences:",
'ignore:`np\.bool` is a deprecated alias for the builtin `bool`:DeprecationWarning',
# sqlalchemy: most of these can be removed once we have a lower bound of sqlalchemy 1.4
'ignore:Dialect .+ does \*not\* support Decimal:',
"ignore:Class (_regex_extract|_array_search|ST_.*) will not make use of SQL compilation caching:",
'ignore:Dialect .+ will not make use of SQL compilation caching:',
"ignore:UserDefinedType .* will not produce a cache key because:",
# duckdb-engine
'ignore:The URL\.__to_string__ method is deprecated:',
# ibis
"ignore:`database` is deprecated:FutureWarning",
"ignore:`set_database` is deprecated:FutureWarning",
# ibis on postgres + windows
"ignore:locale specific date formats:UserWarning",
# shapely
"ignore:The array interface is deprecated:",
"ignore:Iteration over multi-part geometries is deprecated:",
"ignore:__len__ for multi-part geometries is deprecated:",
"ignore:An exception was ignored while fetching the attribute `__array_interface__`:DeprecationWarning",
# thrift by way of impyla
"ignore: PY_SSIZE_T_CLEAN will be required for '#' formats:DeprecationWarning",
# spark
"ignore:In Python .*, it is preferred .* type hints .* UDF:UserWarning",
# windows
"ignore:getargs.* The 'u' format is deprecated:DeprecationWarning",
# findspec
"ignore: _SixMetaPathImporter.find_spec()",
# duckdb-engine
"ignore:duckdb-engine doesn't yet support reflection on indices:",
# snowflake
"ignore:You have an incompatible version of 'pyarrow' installed:UserWarning",
]
empty_parameter_set_mark = "fail_at_collect"
norecursedirs = [
".benchmarks",
".direnv",
".git",
".github",
"LICENSES",
"ci",
"conda-lock",
"dev",
"docker",
"nix",
"result",
"result-*",
]
markers = [
"backend: tests specific to a backend",
"benchmark: benchmarks",
"core: tests that do not required a backend",
"geospatial: tests for geospatial functionality",
"hdfs: Hadoop file system tests",
"min_version: backend tests that require a specific version of a dependency to pass",
"min_server_version: backend tests that require a specific version of a backend's server to pass",
"notimpl: functionality that isn't implemented in ibis",
"notyet: for functionality that isn't implemented in a backend",
"never: tests for functionality that a backend is likely to never implement",
"broken: test has exposed existing broken functionality",
"sqlalchemy_only: tests for SQLAlchemy based backends",
"clickhouse: ClickHouse tests",
"dask: Dask tests",
"datafusion: Apache Datafusion tests",
"duckdb: DuckDB tests",
"impala: Apache Impala tests",
"mysql: MySQL tests",
"pandas: Pandas tests",
"postgres: PostgreSQL tests",
"pyspark: PySpark tests",
"snowflake: Snowflake tests",
"sqlite: SQLite tests",
]
[tool.black]
line_length = 79
skip_string_normalization = true
extend_exclude = '\.ipynb|\.direnv|result(-\d+)?'
[tool.isort]
ensure_newline_before_comments = true
line_length = 79
multi_line_output = 3
include_trailing_comma = true
profile = "black"
extend_skip = [".direnv"]
extend_skip_glob = ["result*"]
skip_gitignore = true
[tool.pydocstyle]
inherit = false
convention = "numpy"
match_dir = "ibis"
add_ignore = ["D100", "D101", "D102", "D103", "D104", "D105"]
[tool.conda-lock]
channels = ["conda-forge"]
[tool.conda-lock.dependencies]
# conda-lock doesn't map dependencies' extras to conda-forge packages and we
# use the array and dataframe extras from dask
dask = ">=2021.10.0"
[tool.coverage.run]
branch = true
source = ["ibis"]
[tool.coverage.report]
exclude_lines = [
"if self.debug:",
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
ignore_errors = true
omit = ["*_version.py", "*tests*"]
[tool.distutils.bdist_wheel]
# universal = true is for projects that support py2 and py3, and do not have C
# extensions
universal = false
[build-system]
requires = ["poetry-core>=1.0.8", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"