Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove pydantic pinning #449

Closed
wants to merge 1 commit into from
Closed

remove pydantic pinning #449

wants to merge 1 commit into from

Conversation

stan-dot
Copy link
Collaborator

@stan-dot stan-dot commented May 1, 2024

No description provided.

@stan-dot stan-dot self-assigned this May 1, 2024
@stan-dot stan-dot linked an issue May 1, 2024 that may be closed by this pull request
Copy link

codecov bot commented May 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.16%. Comparing base (0a634dc) to head (e0a9b79).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #449   +/-   ##
=======================================
  Coverage   90.16%   90.16%           
=======================================
  Files          41       41           
  Lines        1708     1708           
=======================================
  Hits         1540     1540           
  Misses        168      168           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DiamondJoseph
Copy link
Collaborator

I'm surprised it was as simple as just removing the pinning- the service still starts with our old-style BaseModels in Pydantic v2? Or are we picking up a Pydantic v1 pin from some other (dodal, ophyd-async?) dependency?

@callumforrester
Copy link
Collaborator

Yeah, unsure if this is happy because it just works or lack of tests...

@stan-dot
Copy link
Collaborator Author

stan-dot commented May 3, 2024

should a test 'staging' deployment be used for this?

@callumforrester
Copy link
Collaborator

@stan-dot I think it's fine if someone has the time to play around with a local dev version of the server.

@stan-dot
Copy link
Collaborator Author

@callumforrester I can try this on a branch with the ViSR project is that ok?

@callumforrester
Copy link
Collaborator

@stan-dot I think this configuration will still install pydantic v1 because the pinned fastapi version depends on it, see #454

@stan-dot
Copy link
Collaborator Author

so it's dependent on GDA. rip
#454 (comment)

I'm unassigning myself from this issue as it does not seem resolvable in the nearest future

@DiamondJoseph
Copy link
Collaborator

It's also pinned in ScanSpec, dodal and other places. We need to have a mass move over

@stan-dot
Copy link
Collaborator Author

superceded by #564

@stan-dot stan-dot closed this Jul 22, 2024
ZohebShaikh pushed a commit that referenced this pull request Aug 20, 2024
Fixes #273 

Supersedes #449 
---------
Co-authored-by: DiamondJoseph <[email protected]>
Co-authored-by: Zoheb Shaikh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Pydantic2
3 participants