Skip to content

Conversation

mlnrt
Copy link

@mlnrt mlnrt commented Sep 15, 2025

Reason for this change

When using UV to install Python dependencies we should install the dependencies that UV listed, instead of having pip installing package dependencies. The later is not deterministic and does not guaranty which version of the packages will be installed by pip. So we should use the --no-deps option to instruct pip to not install any package dependencies and instead install the ones that UV listed.

UV references:

Description of changes

The code change concerns the @aws-cdk\aws-lambda-python-alpha package

The code change is limited to just adding the --no-deps option to the uv pip install command when bundling Lambda Python dependencies.

Description of how you validated changes

I added a test to the Function integration test with UV to test that the requests dependencies are the same version than defined in the uv.lock.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Sep 15, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team September 15, 2025 18:17
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Sep 15, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ Fixes must contain a change to an integration test file and the resulting snapshot.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@aws-cdk-automation aws-cdk-automation added pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. and removed pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. labels Sep 15, 2025
@mlnrt
Copy link
Author

mlnrt commented Sep 15, 2025

I'm really struggling with writing the tests since the documentation in the readme is only for aws-cdk-lib and I am currently unable to run the integration tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants