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
test_entry_point failing in some Arch environments #526
Comments
It's not a known issue. That test is apparently revealing that there is more than one package presenting the |
I ran into this while trying to update the Fedora Linux
This seems to be somehow an artifact of the RPM build environment, in which the package is installed into a “buildroot” directory (and When I skip the test and install the resulting RPM, then look at For now I’ll just keep skipping the test, but I’m happy to test out any ideas. |
Those look like two different distributions to me (one located at f490 and the other at f340). Once you have a PathDistribution, you can inspect it's Also, if you have Oh, that's interesting. I notice that keyring does not rely on importilib.metadata, but instead relies on What do you get for |
You’re right. That was a reading failure on my part. Plus, that should have been
Thanks. This is helpful. For
which makes sense. One is the “built” but not yet installed package, and the other is the copy installed in the buildroot (what will actually be packaged).
I’m building with Python 3.10.4 and Looking at rm -rvf *.egg-info before running the tests. I don’t know Arch packaging, but I suspect something similar will work there. |
I also suspect, but haven’t yet confirmed, that this would go away without needing a workaround if the Fedora package were switched to the newer pyproject-rpm-macros approach. |
I do still need the workaround with rm -rvf *.egg-info *.dist-info because the build process now produces |
I also get this issue on GNU Guix:
The direct dependencies are at: `python-importlib-metadata@4.11.3 python-pytest@6.2.5 python-secretstorage@3.3.1
The workaround posted in the previous message, |
I was able to replicate this issue thus:
The reason the error doesn't occur when running under Next I'll try to find out why |
The issue is that the
|
Thanks for looking into this! The fix works as advertised for me; I no longer need a workaround on Fedora versions where importlib-metadata is new enough to satisfy the updated requirement in v23.10.0. |
When packaging for Arch Linux, I am getting the following error. I would guess it is due to the entrypoint API changes in
importlib_metadata
, but I don't have time to explore it right now, I'll try to later. If this is a known issue, please let me know.The text was updated successfully, but these errors were encountered: