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

Maintenance: Pydantic v1 end of life #4067

Closed
1 of 2 tasks
leandrodamascena opened this issue Apr 3, 2024 · 6 comments
Closed
1 of 2 tasks

Maintenance: Pydantic v1 end of life #4067

leandrodamascena opened this issue Apr 3, 2024 · 6 comments
Labels
internal Maintenance changes v3 Features that will be included in Powertools v3.

Comments

@leandrodamascena
Copy link
Contributor

Why is this needed?

Pydantic plays a critical role in Powertools, working as a key dependency across various utilities. While Powertools is fully compatible with Pydantic v2, the default version remains Pydantic v1. The active development of Pydantic v1 ceased with the launch of v2.
Although Pydantic v1 continues to address bug fixes and security problems, development will come to a definitive halt, including security updates, as of 30/06/2024.

I'm opening this issue to keep it on our radar and initiate a discussion about definitively dropping support for Pydantic v1.

https://docs.pydantic.dev/latest/version-policy/#pydantic-v1

Active development of V1 has already stopped, however critical bug fixes and security vulnerabilities will be fixed in V1 for one year after the release of V2 (June 30, 2024).

Which area does this relate to?

Parser

Solution

No response

Acknowledgment

@leandrodamascena leandrodamascena added triage Pending triage from maintainers internal Maintenance changes labels Apr 3, 2024
@leandrodamascena leandrodamascena moved this from Triage to Backlog in Powertools for AWS Lambda (Python) Apr 3, 2024
@leandrodamascena leandrodamascena removed the triage Pending triage from maintainers label Apr 3, 2024
@rubenfonseca
Copy link
Contributor

Thank you for opening this Leandro. I will try to understand the impact this might have on the Bedrock Agents resolver, including timelines.

@leandrodamascena leandrodamascena added the v3 Features that will be included in Powertools v3. label Apr 16, 2024
@rubenfonseca rubenfonseca added this to the Powertools v3 milestone Apr 18, 2024
@medley56
Copy link

This is really messing up my development. I use Pydantic elsewhere in my codebase for direct model validation and I'd like to use a non EOL version of Pydantic but I can't because I have to satisfy the ^1.8.2 pin in the metadata (pyproject.toml) of Powertools.

Please prioritize this. Pydantic is already on 2.8.

@sthulb
Copy link
Contributor

sthulb commented Jul 30, 2024

@medley56 Hi there, current versions of Powertools are compatible with Pydantic v2.

There’s a note in the docs on how to do this https://docs.powertools.aws.dev/lambda/python/latest/utilities/parser/#using-pydantic-v2

@leandrodamascena
Copy link
Contributor Author

We are working to release Powertools v3 soon (hopefully in August) and in this new major release we are removing Pydantic v1.

#4189

@leandrodamascena
Copy link
Contributor Author

We are working on the RFC for Powertools V3. Check more information here: #4189

Copy link
Contributor

github-actions bot commented Aug 7, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Maintenance changes v3 Features that will be included in Powertools v3.
Projects
Status: Coming soon
Development

No branches or pull requests

4 participants