Skip to content

Move to pydantic v2  #679

Closed
Closed

Description

@DominicOram

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

Acceptance Criteria

  • We pin pydantic>2
  • Unpin zocalo < 1.0.0
  • We remove all the ignores around pydantic in filterwarnings
  • Dependencies are happy to install on pip install
  • Unit tests work

Activity

  1. DominicOram commented on Jul 16, 2024

    @DominicOram
    ContributorAuthor
  2. d-perl commented on Jul 16, 2024

    @d-perl
    Contributor

    Once we can, we should then update some of the way we use pydantic features, e.g.:

    ) # should be replaced with model_validator once move to pydantic 2 is complete

  3. moved this to Candidates for Next Sprint in Hyperionon Aug 12, 2024
  4. d-perl commented on Aug 13, 2024

    @d-perl
    Contributor

    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+

  5. moved this from Candidates for Next Sprint to Blocked in Hyperionon Aug 19, 2024
  6. DominicOram commented on Aug 19, 2024

    @DominicOram
    ContributorAuthor

    Waiting for another release of p4p

  7. DiamondJoseph commented on Aug 29, 2024

    @DiamondJoseph
    Contributor

    I believe we're currently not blocked by p4p- only Numpy 2 support is. I'm going to make the required changes and check

  8. d-perl commented on Sep 3, 2024

    @d-perl
    Contributor

    @DiamondJoseph yes, but unfortunately the version of scanspec which supports pydantic 2 also requires numpy 2, so we are indirectly still blocked by that

  9. DiamondJoseph commented on Sep 3, 2024

    @DiamondJoseph
    Contributor

    Not since ScanSpec 0.7.2

  10. moved this from Blocked to Done in Hyperionon Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions