Closed polariton closed 7 months ago
Thanks - looks like you need to add importlib_resources
to the dependencies to get CI working though.
OK, added importlib_resources to CI.
This should be done via package requirements, not by changing the test environment script.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.22%. Comparing base (
1d1a08a
) to head (0eddd89
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@bmcfee Sorry to jump in, but will this PR be merged in the near future?
Sorry, this fell off my radar. It looks like the tests are failing with this PR, but I'm not sure why they're not showing up in the GH actions checks here.
https://pipelinesghubeus26.actions.githubusercontent.com/bUxMb2yqtuvB2RTCARL2QpDTvLpo5Yf3UEj1GdiJq0K3dNEhMw/_apis/pipelines/1/runs/8/signedlogcontent/3?urlExpires=2024-03-04T19%3A26%3A50.4934762Z&urlSigningMethod=HMACV1&urlSignature=wFq6a%2F9ay5mg0BrMgePItMgMpWkGm0bjH2TKOSBowcM%3D is the failed build log on 3.6. (Not that I'm too fussed with maintaining for 3.6, but if we're going to put out a release to support newer python, we shouldn't break the old version if we don't have to.)
Failures on 3.10+ environments were due to codecov being flakey and nothing with our test suite directly.
I could not see the log, but the variable __name__
seems to be different in python 3.6 and 3.7 and later.
How is this?
if filter_name not in FILTER_CACHE:
package = __name__.split(".")[0] # or simply 'resampy'
fname = importlib_resources.files(package).joinpath(
'data', os.path.extsep.join([filter_name, 'npz'])
)
I just did the simple thing and hacked the package name directly in. Let's see if this makes CI happy.
Alright, good enough. I think we still need to do a bit of tweaking on the package setup.cfg, but this is functional for now. I'll try to put a release out this week.
Fix deprecation warning "pkg_resources is deprecated as an API"