Skip to content
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(python)!: add v2 layer and drop python 3.6 support #4

Merged
merged 12 commits into from
Oct 3, 2022

Conversation

rubenfonseca
Copy link
Contributor

@rubenfonseca rubenfonseca commented Sep 30, 2022

This PR adds support for the Lambda Powertools Layer v2 for Python.

Plan for the cdk-powertools-layer construct

  • release a new major version 3.x of the construct
  • this will allow us to keep using the existing 2.x construct for powertools v1 (which we will have to maintain for a couple of months), while using the 3.x construct for powertools v2

Changes include:

  • remove python 3.6 support
  • aggregated all extra dependencies in "all" group
  • removed unnecessary files from Lambda Layer to reduce size
  • allow the option to publish layer into multiple architectures

Current layer sizes:

  • Uncompressed: 4.5MB
  • Compressed: 936KB

layer/Python/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

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

last notes as per peer reviewing session

src/lambda-powertools-layer.ts Outdated Show resolved Hide resolved
src/lambda-powertools-layer.ts Outdated Show resolved Hide resolved
src/lambda-powertools-layer.ts Outdated Show resolved Hide resolved
test/lambda-powertools-python-layer.test.ts Outdated Show resolved Hide resolved
test/lambda-powertools-python-layer.test.ts Outdated Show resolved Hide resolved
@heitorlessa heitorlessa changed the title feat: add suport for python v2 layer feat(python): add suport for v2 layer and drop python 3.6 support Oct 3, 2022
@heitorlessa heitorlessa changed the title feat(python): add suport for v2 layer and drop python 3.6 support feat(python): add v2 layer and drop python 3.6 support Oct 3, 2022
rubenfonseca and others added 10 commits October 3, 2022 15:32
Changes to v1 layer:
* remove python 3.6 support
* aggregated all extra dependencies in "extras" group
* removed unecessary files from Lambda Layer to reduce size

BREAKING CHANGE: dropped python 3.6 support
Co-authored-by: Heitor Lessa <lessa@amazon.nl>
Co-authored-by: Heitor Lessa <lessa@amazon.nl>
Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

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

one tiny change to remove leftover dependencies from boto, and one nitpick ;-)

Good to merge after that

layer/Python/Dockerfile Show resolved Hide resolved
src/lambda-powertools-layer.ts Outdated Show resolved Hide resolved
layer/Python/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@heitorlessa heitorlessa left a comment

Choose a reason for hiding this comment

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

fantastic work, thank you @rubenfonseca ! Can't wait for V2 this month

@rubenfonseca rubenfonseca changed the title feat(python): add v2 layer and drop python 3.6 support feat(python)!: add v2 layer and drop python 3.6 support Oct 3, 2022
@rubenfonseca rubenfonseca merged commit aca4b72 into aws-powertools:main Oct 3, 2022
@rubenfonseca rubenfonseca deleted the feat/python-v2 branch October 3, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants