-
Notifications
You must be signed in to change notification settings - Fork 22
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 pkg_resources, scipy.ndimage, and pytest deprecation warnings #829
Conversation
@geordie666 I accidentally updated Also, coverage tests are failing (not just here, but for some time), but I'm not sure why. |
Excellent, thanks for these updates. Reviewing now. I don't think it's an issue that you updated |
I think everything looks good @moustakas, and only have one suggestion/request: Could you change constructions like this (there are quite a few so I didn't want to flag them all):
to use I'm not sure why the coverage tests are failing. It hasn't been a high priority to dig into, but we should open an issue for completeness. |
@geordie666 I'm sorry to push back, but I think this is unnecessary busy work for me and I don't think I'd prioritize getting to these changes (whereas the deprecation warnings are making it annoying for me to identify genuine errors and other relevant warnings in In the spirit of making the minimal set of changes in this PR, I simply inherited the use of Hope that's alright. |
That's fine. Go ahead and merge. I'll do the busywork in my next branch. |
This PR cleans up a number of deprecation warnings seen in the unit tests due to:
pkg_resources.resource_filename
(deprecated in favor ofimportlib.resources.files
; see also use Importlib.resources instead of (deprecated and slower) pkg resources.resource_filename desispec#2157))scipy.ndimage
; andpytest
(deprecatedtest_suite
functions).The
pkg_resources
warnings aren't seen in thedesitarget
tests because tests are only done againstpython/3.9
, but they are seen in other packages likefastspecfit
, which are testing againstpython/3.10
and3.11
.