DiamondLightSource / dodal

Ophyd devices and other utils that could be used across DLS beamlines
Apache License 2.0
2 stars 8 forks source link

Move to pydantic v2 #679

Open DominicOram opened 1 month ago

DominicOram commented 1 month ago

We should make sure that all our dependencies etc. work on pydantic v2

Acceptance Criteria

DominicOram commented 1 month ago

Currently blocked on:

dperl-dls commented 1 month ago

Once we can, we should then update some of the way we use pydantic features, e.g.: https://github.com/DiamondLightSource/dodal/blob/fe3f48cc7e65e05ca50025d22a2161bef4eadba3/src/dodal/devices/detector/detector.py#L59

dperl-dls commented 1 week ago

We are now blocked by scanspec requiring numpy>=2.0 and p4p requiring numpy<2.0

blueapi and nexgen also still pinned to pydantic<2 (so we can't pin to >2 and have a working environment)

additionally some changes are needed to get dodal in sync with ophyd_async 0.5+

DominicOram commented 6 days ago

Waiting for another release of p4p