-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use Conda Forge graph for package name mappings and less downloads #13
Conversation
Oh nice, this is awesome! @jaimergp do you know how to best use this file? |
I investigated a bit, but I can’t find a simple list of packages available. I think:
|
Yep this is the one you need. It should only contain known packages (to conda-forge) that don't share a name with PyPI. @viniciusdc might have some more info, since he's more involved with the bot infrastructure there. |
Indeed that's the best source for your problem. There is a notebook where you can inspect some of the metadata within the conda-forge json in that repo as well, if needed. About the usage of the static maps, this one pypi_mapping.py generates the magic |
Great, thank you! This is looking good. Would be nice if there was a smaller JSON blob to download for the list of packages on conda forge, but with some caching, the |
Using it now looks like this (once an hour, otherwise no progress bars) $ python -m beni pyproject.toml
Creating cache for name_mapping.yaml at /home/phil/.cache/beni: 100%|█████████████████████████████| 636k/636k [00:00<00:00, 5.46MB/s]
Creating cache for graph.json at /home/phil/.cache/beni: 100%|██████████████████████████████████| 8.28M/8.28M [00:01<00:00, 5.70MB/s]
channels:
- conda-forge
dependencies:
- ... |
Awesome! That looks great 🎈 |
Fixes #12
However, not everything seems to be in there, e.g.
black
is missing. Maybe the file only contains mappings that are not trivial?