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
Fix plugins not working with new versions of setuptools #2177
Conversation
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 good, just some lost print statements I think...
Codecov Report
@@ Coverage Diff @@
## main #2177 +/- ##
==========================================
- Coverage 94.03% 94.03% -0.01%
==========================================
Files 289 289
Lines 44541 44564 +23
==========================================
+ Hits 41884 41904 +20
- Misses 2657 2660 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
LGTM. Feel free to merge when ci passes.
See pypa/setuptools#3527 for details. Bottom line is that
pkg_resources
is kind of deprecated and Satpy was using undocumented function like the.dist.module_path
property. This PR updates Satpy to use importlib which has the necessary functionality as of Python 3.8 and is the minimum version of Python that Satpy supports. This also should fix the CI issues in pytroll/satpy-composites-plugin-example#2.