-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Remove requests and all its dependencies. #547
Conversation
7132262
to
cceb6de
Compare
cceb6de
to
5182136
Compare
9164bda
to
ef66ae7
Compare
2aba4b7
to
e7fd46c
Compare
e7fd46c
to
b1f0490
Compare
e518fe9
to
6ef0058
Compare
6ef0058
to
c719f58
Compare
@@ -25,7 +25,7 @@ classifiers = [ | |||
|
|||
[tool.poetry.dependencies] | |||
python = ">=3.8.0,<4" | |||
datadog = ">=0.41.0,<1.0.0" | |||
datadog = ">=0.51.0,<1.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we also need to run a poetry update
to refresh the poetry lock file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh good call
- { Ref: PythonRequirementsLambdaLayer } | ||
|
||
plugins: | ||
- serverless-python-requirements | ||
|
||
custom: | ||
pythonRequirements: | ||
pythonBin: python3 | ||
pipCmdExtraArgs: | ||
- --no-deps # install just requests | ||
layer: | ||
compatibleRuntimes: | ||
- ${env:SERVERLESS_RUNTIME} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add new requirements? Could you give me a brief explanation so I understand it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We removed requests
from the lambda layer, yet the tests still rely on it. So we must add requests
back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I imagine these are the ones that ping URLs?
What does this PR do?
Requires DataDog/datadogpy#879 to be merged and released.
Removes requests and all of its dependencies from being packaged with the layer.
Motivation
v0.51.0 of the
datadog
package will no longer require requests, instead falling back to urllib3 when present.Testing Guidelines
See testing notes in DataDog/datadogpy#879
Additional Notes
Types of Changes
Check all that apply