-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Pin napari and pydantic when installing a plugin #6022
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.4.18x #6022 +/- ##
============================================
- Coverage 88.70% 88.69% -0.02%
============================================
Files 623 623
Lines 52631 52646 +15
============================================
+ Hits 46686 46693 +7
- Misses 5945 5953 +8
|
@goanpeca Did the assumption (present currentyl in the code) that the installer could be only pip or mamba? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I'm going to merge and assume this is ok as I'd like to get the final RC out today. Since afaik this fixes a problem that existed in many prior versions, I don't think it's a huge deal if it doesn't actually work. 😅 |
|
||
|
||
def _conda_constraints(): | ||
return [f"napari={__version__}", "pydantic<2.0a0"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better handled in a repodata patch (pip doesn't have this mechanism but conda-forge does). Now this constraint will be tied to that release forever, which is maybe not a problem in this case, but we need to be careful about internalizing "external" problems in our codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you point where? Also this release is not compatibility with pydantic 2 and never will be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah @jaimergp note that this change is on a branch that won't live beyond this release. So nothing is internalised, it is forgotten tomorrow. 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like _conda_constraints
is not used anywhere anyway, so I'll delete it in the now-necessary follow-up PR.
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/request-for-testing-napari-0-4-18-release-candidate/82833/21 |
Fixes/Closes
Closes #5279
Description
Backport changes from new plugin dialog to 0.4.18 release
References
Type of change
How has this been tested?
as there are small differences between the two Qt bindings.
Final checklist:
trans.
to make them localizable.For more information see our translations guide.