forked from lancedb/lance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (93 loc) · 2.85 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
[project]
name = "pylance"
dependencies = ["pyarrow>=12,<15.0.1", "numpy>=1.22"]
description = "python wrapper for Lance columnar format"
authors = [{ name = "Lance Devs", email = "[email protected]" }]
license = { file = "LICENSE" }
repository = "https://github.com/eto-ai/lance"
readme = "README.md"
requires-python = ">=3.8"
keywords = [
"data-format",
"data-science",
"machine-learning",
"arrow",
"data-analytics",
]
categories = [
"database-implementations",
"data-structures",
"development-tools",
"science",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering",
]
[tool.maturin]
python-source = "python"
[build-system]
requires = ["maturin>=1.4"]
build-backend = "maturin"
[project.optional-dependencies]
tests = [
"boto3",
"datasets",
"duckdb",
"ml_dtypes",
"pillow",
"pandas",
"polars[pyarrow,pandas]",
"pytest",
"tensorflow",
# Remove when https://github.com/h5py/h5py/issues/2408 is resolved
# We don't need h5py but it is transitive from tensorflow and 3.11
# is missing wheels for arm so we need to prevent that version.
"h5py<3.11",
"tqdm",
]
dev = ["ruff==0.2.2"]
benchmarks = ["pytest-benchmark"]
torch = ["torch"]
ray = ["ray[data]; python_version<'3.12'"]
[tool.ruff]
lint.select = ["F", "E", "W", "I", "G", "TCH", "PERF", "B019"]
[tool.ruff.lint.per-file-ignores]
"*.pyi" = ["E301", "E302"]
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
markers = [
"cuda: tests which rely on having a CUDA-capable GPU",
"integration: mark test to run only on named environment",
"gpu: tests which rely on pytorch and some kind of gpu",
"slow",
"torch: tests which rely on pytorch being installed",
]
filterwarnings = [
'error::FutureWarning',
'error::DeprecationWarning',
# Boto3
'ignore:.*datetime\.datetime\.utcnow\(\) is deprecated.*:DeprecationWarning',
# Pandas 2.2 on Python 2.12
'ignore:.*datetime\.datetime\.utcfromtimestamp\(\) is deprecated.*:DeprecationWarning',
# Pytorch 2.2 on Python 2.12
'ignore:.*is deprecated and will be removed in Python 3\.14.*:DeprecationWarning',
'ignore:.*The distutils package is deprecated.*:DeprecationWarning',
]