Skip to content
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

Possibility for reverse search dashboard (similar to conda repoquery whoneeds)? #24

Open
matthewfeickert opened this issue Jan 10, 2025 · 0 comments

Comments

@matthewfeickert
Copy link

matthewfeickert commented Jan 10, 2025

👋 The dashboard (which I learned about in conda-forge/cuda-feedstock#61 (comment)) is super nice! If I could put in a stretch goal of a feature request, it would be useful to add a view that would allow for you to type in a conda-forge package name and have it list for you all the packages on conda-forge that depend on that package. This is basically what conda repoquery whoneeds does already, so as an example of what I'm suggesting, in the dashboard I could type in awkward and it would return to me output similar to

$ micromamba repoquery whoneeds --channel conda-forge awkward > out.txt  # Need to strip off the headers first
$ tail -n +$(($(grep -n -m 1 "Depends" out.txt | grep -Po '^[0-9]+')+2)) out.txt | awk '{print $1}' | sort --unique
akimbo
awkward-numba
awkward-pandas
cabinetry
clouddrift
coffea
cuda_histogram
dask-awkward
fastjet
km3io
km3pipe
lbapcommon
lhcbdirac
pykealib
pylhe
ragged
rubin-env-extras
rubin-env-rsp
scikit-hep
tiled-base
uproot
uproot-base
uproot-browser
uproot-methods

In situations where there's no package that includes the target package as run requirement (like cuda-nvtx-dev)

$ micromamba repoquery whoneeds --channel conda-forge cuda-nvtx-dev
Getting repodata from channels...

conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
nodefaults/linux-64                                         Using cache
nodefaults/noarch                                           Using cache
No entries matching "cuda-nvtx-dev" found
Try looking remotely with '--remote'.

the dashboard would note that there are no packages on conda-forge that required that target package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant