forked from apache/iceberg-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (172 loc) · 5.48 KB
/
pyproject.toml
File metadata and controls
185 lines (172 loc) · 5.48 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
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
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
[project]
name = "pyiceberg"
version = "0.10.0"
description = "Apache Iceberg is an open table format for huge analytic datasets"
authors = [{ name = "Apache Software Foundation", email = "dev@iceberg.apache.org" }]
requires-python = ">=3.10.0,<4.0.0"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"mmh3>=4.0.0,<6.0.0",
"requests>=2.20.0,<3.0.0",
"click>=7.1.1,<9.0.0",
"rich>=10.11.0,<15.0.0",
"strictyaml>=1.7.0,<2.0.0", # CVE-2020-14343 was fixed in 5.4.
"pydantic>=2.0,<3.0,!=2.4.0,!=2.4.1,!=2.12.0,!=2.12.1", # 2.4.0, 2.4.1, 2.12.0, 2.12.1 has a critical bug
"sortedcontainers==2.4.0",
"fsspec>=2023.1.0",
"pyparsing>=3.1.0,<4.0.0",
"tenacity>=8.2.3,<10.0.0",
"pyroaring>=1.0.0,<2.0.0",
"cachetools>=5.5,<7.0",
"zstandard>=0.13.0,<1.0.0"
]
[project.urls]
Homepage = "https://py.iceberg.apache.org/"
Repository = "https://github.com/apache/iceberg-python"
[project.scripts]
pyiceberg = "pyiceberg.cli.console:run"
[project.optional-dependencies]
pyarrow = [
"pyarrow>=17.0.0",
"pyiceberg-core>=0.5.1,<0.8.0",
]
pandas = [
"pandas>=1.0.0,<3.0.0",
"pyarrow>=17.0.0",
]
duckdb = [
"duckdb>=0.5.0,<2.0.0",
"pyarrow>=17.0.0",
]
ray = [
"ray>=2.10.0,<=2.44.0",
"pyarrow>=17.0.0",
"pandas>=1.0.0,<3.0.0",
]
bodo = ["bodo>=2025.7.4"]
daft = ["daft>=0.5.0"]
polars = ["polars>=1.21.0,<2"]
snappy = ["python-snappy>=0.6.0,<1.0.0"]
hive = ["thrift>=0.13.0,<1.0.0"]
hive-kerberos = [
"thrift>=0.13.0,<1.0.0",
"thrift-sasl>=0.4.3",
"kerberos>=1.3.1,<2",
]
s3fs = ["s3fs>=2023.1.0"]
glue = ["boto3>=1.24.59"]
adlfs = ["adlfs>=2024.7.0"]
dynamodb = ["boto3>=1.24.59"]
bigquery = ["google-cloud-bigquery>=3.33.0,<4"]
sql-postgres = [
"sqlalchemy>=2.0.18,<3",
"psycopg2-binary>=2.9.6",
]
sql-sqlite = ["sqlalchemy>=2.0.18,<3"]
gcsfs = ["gcsfs>=2023.1.0"]
rest-sigv4 = ["boto3>=1.24.59"]
hf = ["huggingface-hub>=0.24.0"]
pyiceberg-core = ["pyiceberg-core>=0.5.1,<0.8.0"]
datafusion = ["datafusion>=45,<49"]
gcp-auth = ["google-auth>=2.4.0"]
[dependency-groups]
dev = [
"pytest==7.4.4",
"pytest-checkdocs==2.13.0",
"prek>=0.2.1,<0.3",
"pytest-lazy-fixture==0.6.3",
"fastavro==1.12.1",
"coverage[toml]>=7.4.2,<8",
"requests-mock==1.12.1",
"moto[server]>=5.0.2,<6",
"typing-extensions==4.15.0",
"pytest-mock==3.15.1",
"pyspark[connect]==4.0.1",
"protobuf==6.33.1", # match Spark Connect's gencode
"cython==3.2.1",
"deptry>=0.14,<0.24",
"docutils!=0.21.post1",
"mypy-boto3-glue>=1.28.18",
"mypy-boto3-dynamodb>=1.28.18",
"pyarrow-stubs>=20.0.0.20251107", # Remove when pyarrow >= 23.0.0 https://github.com/apache/arrow/pull/47609
]
# for mkdocs
docs = [
"mkdocs==1.6.1",
"griffe==1.15.0",
"jinja2==3.1.6",
"mkdocstrings==0.30.1",
"mkdocstrings-python==1.19.0",
"mkdocs-literate-nav==0.6.2",
"mkdocs-autorefs==1.4.3",
"mkdocs-gen-files==0.5.0",
"mkdocs-material==9.7.0",
"mkdocs-material-extensions==1.3.1",
"mkdocs-section-index==0.3.10",
]
[tool.uv]
default-groups = [
"dev",
"docs",
]
[build-system]
requires = ["setuptools>=80", "wheel", "Cython>=3.0.0"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"unmarked: marks a test as a unittest",
"s3: marks a test as requiring access to s3 compliant storage (use with --aws-access-key-id, --aws-secret-access-key, and --endpoint args)",
"adls: marks a test as requiring access to adls compliant storage (use with --adls.account-name, --adls.account-key, and --adls.endpoint args)",
"integration: marks integration tests against Apache Spark",
"gcs: marks a test as requiring access to gcs compliant storage (use with --gs.token, --gs.project, and --gs.endpoint)",
"benchmark: collection of tests to validate read/write performance before and after a change",
]
# Turns a warning into an error
filterwarnings = [
"error",
# Ignore Python version deprecation warning from google.api_core while we still support 3.10
"ignore:You are using a Python version.*which Google will stop supporting:FutureWarning:google.api_core",
]
[tool.black]
line-length = 130
target-version = ['py38']
[tool.pycln]
all = true
[tool.mypy]
mypy_path = "python"
no_implicit_optional = true
namespace_packages = false
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
disallow_any_generics = true
disallow_untyped_defs = true
implicit_reexport = false
ignore_missing_imports = true
[tool.coverage.run]
source = ['pyiceberg/']