-
Notifications
You must be signed in to change notification settings - Fork 88
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
Remove use of entrypoints #442
Remove use of entrypoints #442
Conversation
263ad55
to
dfb1607
Compare
Thanks, @s-t-e-v-e-n-k. I've triggered the workflows. |
Codecov Report
@@ Coverage Diff @@
## main #442 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 2243 2242 -1
=========================================
- Hits 2243 2242 -1
|
Initially this PR will fail until a version with zarr-developers/numcodecs#442 has been released.
Makes sense to me. I've also opened (a currently failing) PR to remove entrypoint from the conda-forge package: conda-forge/numcodecs-feedstock#95 |
I don't know anything about `.select, but I trust you. We actually have tests exercising the entrypoint mechanism, right? |
There are tests, but they are marked as xfail. |
Good catch, @s-t-e-v-e-n-k. Can you un-xfail them here and we'll address whatever issues there are in the wheels build? |
3227eff
to
2b9bff9
Compare
I have rebased and removed the xfail. |
Re-launched workflows. |
Looks like the entrypoint test is failing with wheels |
This may be similar to the setup needed for conda-forge testing: i.e. it's not enough to just sys.path, but the test must actually be installed due to differing runtime environments. |
I've been wondering about that, if we want to test this piece meal by mocking, and also doing an integration test by doing ... something like what the |
You should need both the package and a distinfo on the path, like intake does: https://github.com/intake/intake/tree/master/intake/source/tests/plugin_searchpath |
398d3ac
to
361807f
Compare
I fell down an |
Since Python 3.8, the standard library has included functionality to query entry points directly using importlib.metadata. Since the API has changed for the better with Python 3.10, we need to support both ways of using it.
361807f
to
af20af8
Compare
RTD failures are due to an upstream issue ( readthedocs/readthedocs.org#10601 ). Mentioned these instances there |
Looks like it may have been a GH issue. Restarted RTD and it appears to have passed. Also enabled GHA jobs to run |
@@ -20,7 +19,6 @@ def set_path(): | |||
numcodecs.registry.codec_registry.pop("test") | |||
|
|||
|
|||
@pytest.mark.xfail(reason="FIXME: not working in wheels build") |
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.
Hurrah! 🎉
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.
Thanks for all the hard work, @s-t-e-v-e-n-k! Merging lest other RTD issues crop up, but if there are any concerns from anyone, just let us know before the upcoming release.
Since Python 3.8, the standard library has included functionality to query entry points directly using importlib.metadata. Since the API has changed for the better with Python 3.10, we need to support both ways of using it.