SINTEF / oteapi-optimade

A plugin repository for OTE API implementing OPTIMADE strategies and capabilities.
https://SINTEF.github.io/oteapi-optimade
MIT License
2 stars 0 forks source link

Migrate to pydantic v2 #163

Closed CasperWA closed 8 months ago

CasperWA commented 1 year ago

Update the repository to support pydantic v2.

Only then can OTEAPI Core >= v0.6 be used.

The main dependency hindering a pydantic v2 upgrade is OPTIMADE Python tools (optimade).

CasperWA commented 1 year ago

OPTIMADE Python tools has just merged in a PR to support pydantic v2: Materials-Consortia/optimade-python-tools#1745. This means the migration can start to be implemented in this repository by temporarily depending on the repository's master branch. Once v1.0.0 of OPTIMADE Python tools has been released, it should be used and the migration can be a proper part of this package as well.

CasperWA commented 1 year ago

The missing dependency now is oteapi-dlite. To follow its update to support pydantic v2 see EMMC-ASBL/oteapi-dlite#187.