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

Add count of discovered plugins #248

Merged
merged 8 commits into from
Oct 10, 2022
Merged

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Oct 7, 2022

Add methods to better trace changes in plugins to have the possibility to message users.
For example to, inform users that there is a need to restart napari after installing the npe2 plugin.

@codecov
Copy link

codecov bot commented Oct 7, 2022

Codecov Report

Merging #248 (b14f66e) into main (afb0bf6) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        37           
  Lines         2801      2806    +5     
=========================================
+ Hits          2801      2806    +5     
Impacted Files Coverage Δ
npe2/_dynamic_plugin.py 100.00% <100.00%> (ø)
npe2/_plugin_manager.py 100.00% <100.00%> (ø)
npe2/_pytest_plugin.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@nclack nclack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! looks good to me

@@ -71,6 +71,7 @@ testing =
numpy
pytest
pytest-cov
jsonschema
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result of setup a fresh environment.

@psobolewskiPhD
Copy link
Member

psobolewskiPhD commented Oct 8, 2022

Works well with napari/napari#5190, really important fix, because without the warning to the user it seems like the plugin failed to install.
See: napari/napari#5190 (comment)

@nclack nclack merged commit e7fdb2a into napari:main Oct 10, 2022
@Czaki Czaki deleted the count_discover_plugins branch October 10, 2022 18:59
@kne42 kne42 added the enhancement New feature or request label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants