@@ -4,21 +4,31 @@ version = "2.23.1"
4
4
description = " Powertools for AWS Lambda (Python) is a developer toolkit to implement Serverless best practices and increase developer velocity."
5
5
authors = [" Amazon Web Services" ]
6
6
include = [" aws_lambda_powertools/py.typed" , " THIRD-PARTY-LICENSES" ]
7
- classifiers = [
8
- " Development Status :: 5 - Production/Stable" ,
9
- " Intended Audience :: Developers" ,
10
- " License :: OSI Approved :: MIT No Attribution License (MIT-0)" ,
11
- " Natural Language :: English" ,
12
- " Programming Language :: Python :: 3.7" ,
13
- " Programming Language :: Python :: 3.8" ,
14
- " Programming Language :: Python :: 3.9" ,
15
- " Programming Language :: Python :: 3.10" ,
16
- " Programming Language :: Python :: 3.11" ,
7
+ classifiers = [
8
+ " Development Status :: 5 - Production/Stable" ,
9
+ " Intended Audience :: Developers" ,
10
+ " License :: OSI Approved :: MIT No Attribution License (MIT-0)" ,
11
+ " Natural Language :: English" ,
12
+ " Programming Language :: Python :: 3.7" ,
13
+ " Programming Language :: Python :: 3.8" ,
14
+ " Programming Language :: Python :: 3.9" ,
15
+ " Programming Language :: Python :: 3.10" ,
16
+ " Programming Language :: Python :: 3.11" ,
17
17
]
18
18
repository = " https://github.com/aws-powertools/powertools-lambda-python"
19
19
documentation = " https://docs.powertools.aws.dev/lambda/python/"
20
20
readme = " README.md"
21
- keywords = [" aws_lambda_powertools" , " aws" , " tracing" , " logging" , " lambda" , " powertools" , " feature_flags" , " idempotency" , " middleware" ]
21
+ keywords = [
22
+ " aws_lambda_powertools" ,
23
+ " aws" ,
24
+ " tracing" ,
25
+ " logging" ,
26
+ " lambda" ,
27
+ " powertools" ,
28
+ " feature_flags" ,
29
+ " idempotency" ,
30
+ " middleware" ,
31
+ ]
22
32
# MIT-0 is not recognized as an existing license from poetry.
23
33
# By using `MIT` as a license value, a `License :: OSI Approved :: MIT License` classifier is added to the classifiers list.
24
34
license = " MIT"
@@ -38,7 +48,7 @@ datadog-lambda = { version = "^4.77.0", optional = true }
38
48
aws-encryption-sdk = { version = " ^3.1.1" , optional = true }
39
49
40
50
[tool .poetry .dev-dependencies ]
41
- coverage = {extras = [" toml" ], version = " ^7.2" }
51
+ coverage = { extras = [" toml" ], version = " ^7.2" }
42
52
pytest = " ^7.4.1"
43
53
black = " ^23.3"
44
54
boto3 = " ^1.18"
@@ -75,7 +85,7 @@ filelock = "^3.12.2"
75
85
checksumdir = " ^1.2.0"
76
86
mypy-boto3-appconfigdata = " ^1.28.36"
77
87
ijson = " ^3.2.2"
78
- typed-ast = { version = " ^1.5.5" , python = " < 3.8" }
88
+ typed-ast = { version = " ^1.5.5" , python = " < 3.8" }
79
89
hvac = " ^1.1.1"
80
90
aws-requests-auth = " ^0.4.3"
81
91
datadog-lambda = " ^4.77.0"
@@ -89,7 +99,7 @@ tracer = ["aws-xray-sdk"]
89
99
all = [" pydantic" , " aws-xray-sdk" , " fastjsonschema" , " aws-encryption-sdk" ]
90
100
# allow customers to run code locally without emulators (SAM CLI, etc.)
91
101
aws-sdk = [" boto3" ]
92
- datadog = [" datadog-lambda" ]
102
+ datadog = [" datadog-lambda" ]
93
103
94
104
[tool .poetry .group .dev .dependencies ]
95
105
cfn-lint = " 0.79.9"
@@ -99,10 +109,16 @@ httpx = ">=0.23.3,<0.25.0"
99
109
sentry-sdk = " ^1.22.2"
100
110
ruff = " >=0.0.272,<0.0.288"
101
111
retry2 = " ^0.9.5"
112
+ pytest-socket = " ^0.6.0"
102
113
103
114
[tool .coverage .run ]
104
115
source = [" aws_lambda_powertools" ]
105
- omit = [" tests/*" , " aws_lambda_powertools/exceptions/*" , " aws_lambda_powertools/utilities/parser/types.py" , " aws_lambda_powertools/utilities/jmespath_utils/envelopes.py" ]
116
+ omit = [
117
+ " tests/*" ,
118
+ " aws_lambda_powertools/exceptions/*" ,
119
+ " aws_lambda_powertools/utilities/parser/types.py" ,
120
+ " aws_lambda_powertools/utilities/jmespath_utils/envelopes.py" ,
121
+ ]
106
122
branch = true
107
123
108
124
[tool .coverage .html ]
@@ -112,26 +128,26 @@ title = "Powertools for AWS Lambda (Python) Test Coverage"
112
128
[tool .coverage .report ]
113
129
fail_under = 90
114
130
exclude_lines = [
115
- # Have to re-enable the standard pragma
116
- " pragma: no cover" ,
131
+ # Have to re-enable the standard pragma
132
+ " pragma: no cover" ,
117
133
118
- # Don't complain about missing debug-only code:
119
- " def __repr__" ,
120
- " if self.debug" ,
134
+ # Don't complain about missing debug-only code:
135
+ " def __repr__" ,
136
+ " if self.debug" ,
121
137
122
- # Don't complain if tests don't hit defensive assertion code:
123
- " raise AssertionError" ,
124
- " raise NotImplementedError" ,
138
+ # Don't complain if tests don't hit defensive assertion code:
139
+ " raise AssertionError" ,
140
+ " raise NotImplementedError" ,
125
141
126
- # Don't complain if non-runnable code isn't run:
127
- " if 0:" ,
128
- " if __name__ == .__main__.:" ,
142
+ # Don't complain if non-runnable code isn't run:
143
+ " if 0:" ,
144
+ " if __name__ == .__main__.:" ,
129
145
130
- # Ignore runtime type checking
131
- " if TYPE_CHECKING:" ,
146
+ # Ignore runtime type checking
147
+ " if TYPE_CHECKING:" ,
132
148
133
- # Ignore type function overload
134
- " @overload" ,
149
+ # Ignore type function overload
150
+ " @overload" ,
135
151
]
136
152
137
153
[tool .isort ]
@@ -164,16 +180,16 @@ minversion = "6.0"
164
180
addopts = " -ra -vv"
165
181
testpaths = " ./tests"
166
182
markers = [
167
- " perf: marks perf tests to be deselected (deselect with '-m \" not perf\" ')" ,
183
+ " perf: marks perf tests to be deselected (deselect with '-m \" not perf\" ')" ,
168
184
]
169
185
170
186
# MAINTENANCE: Remove these lines when drop support to Pydantic v1
171
- filterwarnings = [
187
+ filterwarnings = [
172
188
" ignore:.*The `parse_obj` method is deprecated*:DeprecationWarning" ,
173
189
" ignore:.*The `parse_raw` method is deprecated*:DeprecationWarning" ,
174
190
" ignore:.*load_str_bytes is deprecated*:DeprecationWarning" ,
175
191
" ignore:.*The `dict` method is deprecated; use `model_dump` instead*:DeprecationWarning" ,
176
- " ignore:.*Pydantic V1 style `@validator` validators are deprecated*:DeprecationWarning"
192
+ " ignore:.*Pydantic V1 style `@validator` validators are deprecated*:DeprecationWarning" ,
177
193
]
178
194
179
195
[build-system ]
0 commit comments