elementary icon indicating copy to clipboard operation
elementary copied to clipboard

feat: [NO-JIRA] - Bump Pydantic version from 1.X to 2.X

Open afranzi opened this issue 2 years ago • 2 comments

This PR aims to upgrade elementary to start using Pydantic 2.0

Changes done:

  • Upgrade the Pydantic major version.
  • Update validator for field_validator due to deprecation.

afranzi avatar Jul 19 '23 09:07 afranzi

Hey @afranzi thank you for submitting this PR!

The code quality and tests are failing.

Could you please install the packages from the dev.requirements.txt After that run the pre-commit and the tests:

  1. pre-commit install
  2. pre-commit run --all-files --verbose
  3. pytest

🙏

NoyaArie avatar Jul 19 '23 11:07 NoyaArie

Hello, any update on this request? it would be good to support the new pydantic version as I believe companies are moving ahead with the Pydantic 2.X version.

afranzi avatar Oct 02 '23 13:10 afranzi

Hi, closing this PR as I had merged a different solution supporting both pydantic 1 and 2, should be available in our next release 0.14.1

ellakz avatar Feb 25 '24 14:02 ellakz