-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (118 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (118 loc) · 2.95 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
[build-system]
requires = ["maturin>=1.9,<2.0"]
build-backend = "maturin"
[project]
name = "xarray_sql"
dynamic = ["version"]
description = "Query Xarray with SQL."
readme = "README.md"
requires-python = ">=3.10" # Python 3.9 EOL is October 31, 2025.
license = {text = "Apache-2.0"}
authors = [
{name = "Alexander Merose", email = "al@merose.com"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Database :: Front-Ends",
]
dependencies = [
"dask>=2024.8.0",
"datafusion==54.0.0", # This needs to match the cargo datafusion version!!
"xarray>=2024.7.0",
]
[project.optional-dependencies]
duckdb = [
"duckdb>=1.4.0",
]
polars = [
# collect(engine="streaming") landed in polars 1.25;
# LazyFrame.collect_batches (streamed max_result_bytes enforcement)
# in 1.33. PolarsHandle degrades gracefully below both floors.
"polars>=1.33",
]
geo = [
"pyproj",
]
test = [
"cftime",
"xarray-sql[duckdb,polars,geo]",
"pytest",
"xarray[io]",
"gcsfs",
]
docs = [
"zensical",
"mkdocstrings[python]",
]
dev = [
"xarray_sql[docs]",
"pre-commit",
"pytest",
"watchfiles",
]
[project.urls]
Homepage = "https://github.com/alxmrs/xarray-sql"
Issues = "https://github.com/alxmrs/xarray-sql/issues"
[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "xarray_sql._native"
[tool.setuptools.packages.find]
exclude = ["demo", "perf_tests", "tests", "tests.*"]
[tool.ruff]
line-length = 80
indent-width = 4
[tool.ruff.format]
indent-style = "space"
quote-style = "double"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
follow_imports = "skip"
exclude = [
"perf_tests/",
"xarray_sql.egg-info/",
"^\\.venv/",
]
# Per-module ignores for libraries without type stubs
[[tool.mypy.overrides]]
module = [
"pyarrow.*",
"datafusion.*",
"xarray.*",
"pandas.*",
"cftime.*",
"xarray_sql._native",
]
ignore_missing_imports = true
[tool.setuptools_scm]
[dependency-groups]
dev = [
"xarray_sql[test]",
"xarray_sql[docs]",
"py-spy>=0.4.0",
"ruff>=0.15.10",
"maturin>=1.9.1",
]
[tool.uv]
# Rebuild package when any rust files change
cache-keys = [{file = "pyproject.toml"}, {file = "rust/Cargo.toml"}, {file = "**/*.rs"}]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: needs network (anonymous GCS); excluded from the CI unit run",
]