-
Notifications
You must be signed in to change notification settings - Fork 28
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
make hashin work as a library #31
Conversation
Awesome. I'll try to dig into it this week. |
It breaks the version. See:
If I do the same with the master branch it works:
Terrible that the unit tests didn't discover that :( |
Note, in the comment above that the error is that it says |
Damn, I'll dig into this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix the version thing.
) | ||
else: | ||
raise PackageError( | ||
"No releases could be found for {0}".format(version, python_versions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for python_versions
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it was like that before. great. :)
verbose=verbose, | ||
python_versions=python_versions, | ||
algorithm=algorithm | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seem here you're missing these lines
I believe ec4a64f fixes the version thing. |
I am so sorry it has taken me so long to review this. Today is my first day back from a long paternity leave. So we still have a bug in this branch. This works: import hashin
print(hashin.get_package_hashes('Django')) But this does not: import hashin
print(hashin.get_package_hashes('Django==1.10')) It should work because this works:
The error you get is:
|
The "quick explanation" is that it tries to download: What it should download is |
Oh! I get it. |
I've refactored the code so that
hashin
can be used as a library (#29).