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

Use libcfgraph to check for which versions of a dep the needed files exist #48

Open
CJ-Wright opened this issue Sep 10, 2020 · 0 comments

Comments

@CJ-Wright
Copy link
Collaborator

libcfgraph currently has lists of all the files contained in a conda-forge package for most of the available packages. For example streamz.

By comparing these lists with the imported modules we could start to evaluate which versions of a package can meet the source's import level requirements.

I'm not certain how much of this functionality belongs in depfinder. It would be possible to do this very minimally, where the only change in depfinder is to optionally report the modules imported in addition to the packages themselves. We could also take a more batteries included approach which has depfinder reach out to libcfgraph to access the listings and do the version comparisons.

Implementation-wise we need a way to translate from import statements to file names or vice versa.
I'd be happy to have the version matching code go elsewhere if deemed appropriate, especially as that would tie this analysis a bit more closely to conda-forge.

CC: @anirrudh

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