-
Notifications
You must be signed in to change notification settings - Fork 723
Expand file tree
/
Copy pathpyproject.toml
More file actions
205 lines (189 loc) · 5.45 KB
/
pyproject.toml
File metadata and controls
205 lines (189 loc) · 5.45 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
[project]
name = "awswrangler"
version = "3.16.0"
description = "Pandas on AWS."
authors = [{ name = "Amazon Web Services" }]
requires-python = ">=3.10, <4.0"
readme = "README.md"
license = "Apache-2.0"
keywords = [
"pandas",
"aws",
]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"boto3>=1.20.32,<2",
"botocore>=1.23.32,<2",
"pandas>=1.2.0,<4.0.0",
"numpy>=1.26,<3.0",
"pyarrow>=8.0.0,<24.0.0",
"typing-extensions>=4.4.0,<5",
"packaging>=21.1,<27.0",
"setuptools ; python_version >= '3.12'",
]
[project.optional-dependencies]
redshift = ["redshift-connector>=2.0.0,<3"]
mysql = ["pymysql>=1.0.0,<2"]
postgres = ["pg8000>=1.29.0,<2"]
sqlserver = ["pyodbc>=4,<6"]
oracle = ["oracledb>=1,<4"]
gremlin = [
"gremlinpython>=3.7.1,<4",
"requests>=2.33.0,<3",
"aiohttp>=3.12.14,<4",
"async-timeout>=4.0.3,<6.0.0",
]
sparql = [
"SPARQLWrapper>=2.0.0,<3",
"requests>=2.33.0,<3",
]
opencypher = ["requests>=2.33.0,<3"]
opensearch = [
"opensearch-py>=2.0.0,<4",
"jsonpath-ng>=1.5.3,<2",
"requests-aws4auth>=1.1.1,<2",
]
openpyxl = ["openpyxl>=3.0.0,<4"]
progressbar = ["progressbar2>=4.0.0,<5"]
deltalake = ["deltalake>=0.18.0,<1.6.0"]
pyiceberg = ["pyiceberg[pyarrow]>=0.7.0,<1"]
geopandas = ["geopandas>=1.0.0,<2", "pyproj>=3.6,<3.7.2"]
modin = ["modin>=0.31,<0.38"]
ray = ["ray[default, data]>=2.53.0,<3"]
[project.urls]
Homepage = "https://aws-sdk-pandas.readthedocs.io/"
Repository = "https://github.com/aws/aws-sdk-pandas"
Documentation = "https://aws-sdk-pandas.readthedocs.io/"
[dependency-groups]
dev = [
"pip",
"setuptools",
"wheel>=0.45.1,<=0.46.3",
"msgpack",
"boto3-stubs[athena, cleanrooms, chime, cloudwatch, dynamodb, ec2, emr, emr-serverless, glue, kms, logs, neptune, opensearch, opensearchserverless, quicksight, rds, rds-data, redshift, redshift-data, s3, secretsmanager, ssm, sts, timestream-query, timestream-write]>=1.36.2,<2",
"doc8~=1.1",
"mypy~=1.14",
"ruff>=0.9.2,<0.15.0",
"moto~=5.0",
"openpyxl~=3.1",
"pyparsing>=3.2.1,<4",
"pytest>=8.3.4,<9",
"pytest-cov>=6,<8",
"pytest-rerunfailures>=15,<17",
"pytest-timeout>=2.3.1,<3",
"pytest-xdist>=3.6.1,<4",
"s3fs==0.4.2",
"tox>=4.23.2,<5",
"tox-uv==1.28.1",
"bump-my-version>=0.29,<1.3",
"IPython>=8.18.1,<9",
"jupyterlab~=4.3",
"nbsphinx>=0.9.6,<0.10",
"nbsphinx-link>=1.3.1,<2",
"sphinx~=7.1",
"sphinx-autodoc-typehints>=2.0.1,<3",
"sphinx-bootstrap-theme>=0.8,<0.9",
"sphinx-copybutton>=0.5.1,<0.6",
"pydot>=3.0.3,<5",
"myst-parser>=3.0.1,<4",
]
[tool.hatch.build.targets.sdist]
include = ["awswrangler"]
exclude = [
"*.so",
"*.pyc",
"*~",
"#*",
".git*",
".coverage*",
"DS_Store",
"__pycache__",
]
[tool.hatch.build.targets.wheel]
include = ["awswrangler"]
exclude = [
"*.so",
"*.pyc",
"*~",
"#*",
".git*",
".coverage*",
"DS_Store",
"__pycache__",
]
[tool.uv]
# Force pandas 3 in the lock file; modin's own pandas<2.4 constraint is ignored during resolution
override-dependencies = [
"pandas>=3.0.0,<4.0.0 ; python_version >= '3.11'",
"pandas>=2.0.0,<3.0.0 ; python_version < '3.11'",
]
# Pin packages without pre-built wheels for AL2 — temporary fix until CI migrated to AL2023.
# Only affects local resolution (uv.lock), not published package metadata — users are not impacted.
constraint-dependencies = ["pyproj<3.7.2", "numpy<2.3 ; python_version < '3.14'"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
extend-include = ["*.ipynb"]
exclude = [
".eggs",
".git",
".mypy_cache",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"venv",
]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = ["D", "E", "F", "I", "PL", "RUF100", "W", "FA", "UP", "PYI036", "NPY"]
ignore = ["E501", "PLR2004", "UP037"]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"docs/*" = ["D"]
"test_infra/*" = ["D"]
"tests/*" = ["PL", "D"]
"tutorials/*" = ["D", "E402", "F401", "F811", "F821"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
max-args=25 # Maximum number of arguments for function / method.
max-bool-expr=5 # Maximum number of boolean expressions in an if statement (see R0916).
max-branches=15 # Maximum number of branch for function / method body.
max-locals=30 # Maximum number of locals for function / method body.
max-public-methods=20 # Maximum number of public methods for a class (see R0904).
max-returns=6 # Maximum number of return / yield for function / method body.
max-statements=50 # Maximum number of statements in function / method body.
[tool.mypy]
python_version = "3.9"
strict = true
ignore_missing_imports = true
warn_unused_ignores = true
[tool.pytest.ini_options]
log_cli = false
filterwarnings = "ignore::DeprecationWarning"
addopts = "--log-cli-format \"[%(name)s][%(funcName)s] %(message)s\" --verbose --capture=sys"
markers = [
"distributed: tests againsts methods with distributed functionality",
]
[tool.coverage.run]
branch = true
omit = [
"awswrangler/distributed/*",
"awswrangler/neptune/_utils.py",
"awswrangler/opensearch/_utils.py",
"awswrangler/chime.py",
]
[tool.coverage.report]
show_missing = true