DiamondLightSource / python-zocalo

Infrastructure components for automated data processing at Diamond Light Source
https://pypi.python.org/pypi/zocalo
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

Upgrade pydantic to v2 #253

Closed dperl-dls closed 2 months ago

dperl-dls commented 2 months ago

Makes a few small changes which hopefully represent much of what's needed to move to pydantic v2.

since then some autogenerated code in util.slurm.models.py was added which is not pydantic 2 compatible, but datamodel-codegen claims to support pydantic v2 as well - @isikhar do you have an idea of whether updating this is as simple as regenerating it with different settings or if there is more that would need to be done?