Skip to content

Major upgrade to pydantic 2.0 #4481

@pcrespov

Description

@pcrespov

💀 💀 💀 Never ever squash commits when updating from master branch 💀 💀 💀

Instructions

  1. update requirements make touch update reqs=pydantic
  2. install bump-pydantic uv pip install bump-pydantic
  3. bump-pydantic my_package
  4. fix what it did and fix all tests
  5. check warnings in the test and finish fixing
  6. create a PR and ask for review
  7. this PR shall be squash commited

Planned changes

Major upgrade not out-of-the box and requires some coordination. This upgrade will bring substantial speedup to the code. It would be desirable to measure the improvement. Should we setup some type of benchmark?

Both libraries have been releases so I added a constraint in requirements/constraints.txt

We should start testing first the upgrade with the packages and then when we understand the migration mechanisms we can do the rest of the repository.

### Tasks
- [x] migrate `settings-library`, specially `CustomBaseSettings` @pcrespov
- [x] migrate `models-library`

This is a sub issue from ITISFoundation/osparc-issues#675

### MartinKippenberger
- [x] explore the migration path
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6584
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6619
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6580
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6333
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6591
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6517
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6519
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6516
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6513
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6366
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6547
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6534
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6535
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6495
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6508
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6594
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6629
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6632
- [ ] https://github.com/ITISFoundation/osparc-simcore/pull/6644

Metadata

Metadata

Labels

t:maintenanceSome planned maintenance work

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions