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 support for plugins #375

Merged
merged 3 commits into from
Feb 15, 2021
Merged

Add support for plugins #375

merged 3 commits into from
Feb 15, 2021

Conversation

svidal-dstl
Copy link
Contributor

Add ability to load plugins using package metadata in package's setup.py entry_points. This will enable third party Stone Soup components to be easily discoverable.

@svidal-dstl svidal-dstl requested review from a team, sdhiscocks and oharrald-Dstl and removed request for a team February 9, 2021 16:15
Copy link
Member

@sdhiscocks sdhiscocks left a comment

Choose a reason for hiding this comment

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

Looks good, and I've tested with a dummy plugin.

One issue is this is lacking tests, but I'm not sure how we'd approach that, as the entry points would need to be present; maybe mock with monkeypatching. Suggest we raise this as separate issue for future change.

stonesoup/plugins.py Outdated Show resolved Hide resolved
stonesoup/plugins.py Outdated Show resolved Hide resolved
Co-authored-by: Steven Hiscocks <sdhiscocks@dstl.gov.uk>
@svidal-dstl svidal-dstl requested a review from a team as a code owner February 15, 2021 14:45
Co-authored-by: Steven Hiscocks <sdhiscocks@dstl.gov.uk>
@codecov
Copy link

codecov bot commented Feb 15, 2021

Codecov Report

Merging #375 (13d5e77) into master (3be0c7c) will decrease coverage by 0.10%.
The diff coverage is 30.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #375      +/-   ##
==========================================
- Coverage   94.19%   94.08%   -0.11%     
==========================================
  Files         132      133       +1     
  Lines        6145     6155      +10     
  Branches      890      891       +1     
==========================================
+ Hits         5788     5791       +3     
- Misses        257      263       +6     
- Partials      100      101       +1     
Flag Coverage Δ
integration 65.89% <30.00%> (-0.06%) ⬇️
unittests 91.47% <0.00%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
stonesoup/plugins.py 30.00% <30.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3be0c7c...13d5e77. Read the comment docs.

@sdhiscocks sdhiscocks merged commit 35dae24 into master Feb 15, 2021
@sdhiscocks sdhiscocks deleted the plugin-system branch February 15, 2021 18:00
PhilClemson pushed a commit to PhilClemson/Stone-Soup-1 that referenced this pull request Oct 26, 2021
Add support for plugins

Closes dstl#356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants