-
Notifications
You must be signed in to change notification settings - Fork 698
/
pyproject.toml
208 lines (179 loc) · 5.99 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
[tool.poetry]
name = "awswrangler"
version = "3.10.0"
description = "Pandas on AWS."
authors = ["Amazon Web Services"]
license = "Apache License 2.0"
readme = "README.md"
include = ["awswrangler/py.typed"]
exclude = ["*.so", "*.pyc", "*~", "#*", ".git*", ".coverage*", "DS_Store", "__pycache__"]
homepage = "https://aws-sdk-pandas.readthedocs.io/"
repository = "https://github.com/aws/aws-sdk-pandas"
documentation = "https://aws-sdk-pandas.readthedocs.io/"
keywords = ["pandas", "aws"]
classifiers = [
"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",
]
[tool.poetry.dependencies]
python = ">=3.8, <4.0"
# Required
boto3 = "^1.20.32"
botocore = "^1.23.32"
pandas = [
{ version = ">=1.2.0,<2.1.0", markers = "python_version < \"3.9\"" },
{ version = ">=1.2.0,<3.0.0", markers = "python_version >= \"3.9\"" },
]
numpy = [
{ version = ">=1.18,<2.0", markers = "python_version < \"3.9\"" },
{ version = ">=1.26,<3.0", markers = "python_version >= \"3.9\"" }
]
pyarrow = ">=8.0.0"
typing-extensions = "^4.4.0"
packaging = ">=21.1,<25.0"
# needed because Py 3.12 removed distutils, which some libraries still need
setuptools = {version = "*", markers = "python_version >= \"3.12\""}
# Databases
redshift-connector = { version = "^2.0.0", optional = true }
pymysql = { version = "^1.0.0", optional = true }
pg8000 = { version = "^1.29.0", optional = true }
pyodbc = { version = ">=4,<6", optional = true }
oracledb = { version = ">=1,<3", optional = true }
# Graph
gremlinpython = { version = "^3.7.1", optional = true }
SPARQLWrapper = { version = "^2.0.0", optional = true }
requests = { version = "^2.0.0", optional = true }
aiohttp = { version = "^3.9.0", optional = true }
async-timeout = { version = "^4.0.3", optional = true }
# OpenSearch
opensearch-py = { version = "^2.0.0", optional = true }
requests-aws4auth = { version = "^1.1.1", optional = true }
jsonpath-ng = { version = "^1.5.3", optional = true }
# Other
openpyxl = { version = "^3.0.0", optional = true }
progressbar2 = { version = "^4.0.0", optional = true }
deltalake = { version = ">=0.18.0,<0.22.0", optional = true }
geopandas = [
{ version = "^0.13.2", markers = "python_version < \"3.12\"", optional = true },
{ version = "^0.14.1", markers = "python_version >= \"3.12\"", optional = true }
]
# Distributed
modin = [
{ version = "0.23.1post0", markers = "python_version < \"3.9\"", optional = true },
{ version = "^0.31.0", markers = "python_version >= \"3.9\"", optional = true }
]
ray = { version = "^2.30.0", extras = ["default", "data"], optional = true }
[tool.poetry.extras]
redshift = ["redshift-connector"]
mysql = ["pymysql"]
postgres = ["pg8000"]
sqlserver = ["pyodbc"]
oracle = ["oracledb"]
gremlin = ["gremlinpython", "requests", "aiohttp", "async-timeout"]
sparql = ["SPARQLWrapper", "requests"]
opencypher = ["requests"]
opensearch = ["opensearch-py", "jsonpath-ng", "requests-aws4auth"]
openpyxl = ["openpyxl"]
progressbar = ["progressbar2"]
deltalake = ["deltalake"]
geopandas = ["geopandas"]
modin = ["modin"]
ray = ["ray"]
[tool.poetry.dev-dependencies]
# Build
setuptools = "*"
wheel = "^0.44.0"
msgpack = "*"
poetry = "^1.8.4"
# Lint
boto3-stubs = {version = "^1.35.54", extras = ["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"]}
doc8 = "^1.1"
mypy = "^1.13"
ruff = "^0.7.2"
# Test
moto = "^5.0"
openpyxl = "^3.1"
pyparsing = "^3.1.4"
pytest = "^8.3.3"
pytest-cov = "^5.0"
pytest-rerunfailures = "^14.0"
pytest-timeout = "^2.3.1"
pytest-xdist = "^3.6.1"
s3fs = "0.4.2" # Must be pinned to 0.4.2
tox = "^4.23.2"
# Docs
bump-my-version = "^0.28.1"
IPython = "^8.10.0"
jupyterlab = "^4.3"
nbsphinx = "^0.9.5"
nbsphinx-link = "^1.3.1"
sphinx = "^7.1"
sphinx-autodoc-typehints = "^2.0.1"
sphinx-bootstrap-theme = "^0.8"
sphinx-copybutton = "^0.5.1"
pydot = "^3.0.2"
myst-parser = "^3.0.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[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.8"
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