Skip to content

Warn when pypi queries fail #144

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrew-vant
Copy link
Contributor

Currently, pipreqs silently ignores pypi errors unless --debug is
supplied. In particular, when a name needs to be in the mapping file but
isn't, pipreqs will look for it on pypi, fail to find it, and skip it
without comment. requirements.txt still gets built, but is likely to be
wrong.

This PR makes it treat pypi errors as warning-worthy, and adds some
debugging lines around mapping lookups.

This makes it easier to identify cases when a name should have a mapping
but doesn't.
Currently, pipreqs silently ignores missing packages or network errors
unless --debug is supplied. requirements.txt still gets built, but is
likely to be wrong.

This prints appropriate warnings when something goes wrong querying
pypi. For nonexistent packages, it suggests a missing mapping as a
possible culprit.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 72.266% when pulling 2971861 on andrew-vant:missingmappings into 1520854 on bndr:master.

@andrew-vant
Copy link
Contributor Author

I was cleaning up some of my stale PRs and noticed this was still open with no commits to the repo for a year. Is pipreqs not maintained anymore? Has development moved elsewhere?

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

Successfully merging this pull request may close these issues.

2 participants