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

fix: #71 Package object has no attribute 'name' #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

max-nicholson
Copy link
Contributor

@max-nicholson max-nicholson commented Jan 29, 2021

Fixes #71

Proposed Changes

From pip 20.X.X onwards, parse_requirements returns a generator of ParsedRequirement objects, instead of the InstallRequirement objects as previously
Need to wrap parse_requirements to return InstallRequirement objects instead
InstallRequirement is an expected class in the Package.init, so name will be set (as oppose to currently, where the class doesn't match any of the if cases and name is never set)

From pip 20.X.X onwards, `parse_requirements` returns a generator
of ParsedRequirement objects, instead of the InstallRequirement
objects as previously
Need to wrap `parse_requirements` to return `InstallRequirement` objects
instead
@wasi-master
Copy link

wasi-master commented Nov 12, 2021

Why isn't this still merged? The original issue is more than a year old and yet I'm here not being able to use the library because of this.

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.

pipupgrade --requirements requirements_dev.txt hits an AttributeError
2 participants