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

fix(deps): update dependency pydantic to v2 #5

Closed
wants to merge 1 commit into from

Conversation

bcgov-devops
Copy link
Contributor

@bcgov-devops bcgov-devops commented Sep 19, 2023

This PR contains the following updates:

Package Type Update Change
pydantic (changelog) dependencies major ^1.10.9 -> ^2.0.0

Release Notes

pydantic/pydantic (pydantic)

v2.4.2

Compare Source

GitHub release

What's Changed
Fixes
New Contributors

v2.4.1

Compare Source

GitHub release

What's Changed
Packaging
Fixes

v2.4.0

Compare Source

GitHub release

What's Changed
Packaging
New Features
Changes
Performance
Fixes
New Contributors

v2.3.0

Compare Source

GitHub release

v2.2.1

Compare Source

GitHub release

v2.2.0

Compare Source

GitHub release

v2.1.1

Compare Source

GitHub release

v2.1.0

Compare Source

GitHub release

v2.0.3

Compare Source

GitHub release

v2.0.2

Compare Source

GitHub release

See the full changelog here

v2.0.1

Compare Source

GitHub release

First patch release of Pydantic V2

See the full changelog here

v2.0

Compare Source

GitHub release


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are promoted to:

@bcgov-devops bcgov-devops force-pushed the renovate/pydantic-2.x branch 2 times, most recently from 0ab330b to f62798a Compare September 25, 2023 11:24
@DerekRoberts DerekRoberts marked this pull request as draft September 26, 2023 03:02
@bcgov-devops
Copy link
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@DerekRoberts DerekRoberts force-pushed the renovate/pydantic-2.x branch 2 times, most recently from fdb32cb to 5d94e84 Compare October 4, 2023 00:55
@DerekRoberts DerekRoberts marked this pull request as ready for review October 4, 2023 00:55
@mishraomp
Copy link
Collaborator

pydantic v2 introduced breaking change, I will have to look and update the code @DerekRoberts

@mishraomp
Copy link
Collaborator

@mishraomp
Copy link
Collaborator

@franTarkenton or @conbrad do you have some time to help us and move from pydantic from v1 to v2?
cc @DerekRoberts

@conbrad
Copy link

conbrad commented Oct 5, 2023

@franTarkenton or @conbrad do you have some time to help us and move from pydantic from v1 to v2? cc @DerekRoberts

@mishraomp I can try to carve out some time tomorrow. We've updated this here: bcgov/wps#3028
I'll be less familiar with your domain models so that will require some extra testing from your team but as a short summary, what I found was:

  • Optional fields set to None by default are more strict on type annotations
  • Datetime format has changed to expect the Zulu "Z" notation
  • parse_obj -> model_validate if you're using that anywhere

@franTarkenton
Copy link
Member

@franTarkenton or @conbrad do you have some time to help us and move from pydantic from v1 to v2? cc @DerekRoberts

sry... been sick! Just saw this now

@conbrad
Copy link

conbrad commented Oct 6, 2023

Hey I just had a quick peek at this, it looks like it's failing on trying to build greenlet: https://github.com/bcgov/quickstart-openshift-backends/actions/runs/6431005121/job/17463035443?pr=5#step:2:1012

You might need to update your poetry install

@conbrad
Copy link

conbrad commented Oct 6, 2023

@DerekRoberts
Copy link
Member

DerekRoberts commented Oct 6, 2023

@conbrad Thanks! That explains what I'm struggling through over here. Hopefully Python gets a little easier soon. :D

@DerekRoberts DerekRoberts self-assigned this Oct 11, 2023
@DerekRoberts DerekRoberts added the dependencies dependency upgrades label Oct 11, 2023
@DerekRoberts DerekRoberts removed their assignment Oct 12, 2023
@DerekRoberts DerekRoberts deleted the renovate/pydantic-2.x branch June 18, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies dependency upgrades
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants