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 pypi for the latest version instead of git [#1122] #1174

Merged
merged 3 commits into from
Dec 5, 2018

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Dec 5, 2018

Fixes #1122
Query the pypi api for latest version info instead of using github. This assumes that pypi behaves the way we think it does (using the latest non-prerelease version in the info field). I used requests since it's in requirements.txt anyway and is a lot more pleasant to use for things like this.

dbt/version.py Outdated Show resolved Hide resolved
@drewbanin
Copy link
Contributor

I think the error handling you just added is good, but I don't think it catches the exception that happens if there's no route to pypi.org.

I added this to my /etc/hosts and still saw a traceback:

0.0.0.0 pypi.org

I think we'll actually need a try/catch around that requests.get call. At present, i see: requests.exceptions.ConnectionError

Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM when the tests pass!

@beckjake beckjake merged commit bec30ef into dev/grace-kelly Dec 5, 2018
@beckjake beckjake deleted the feature/latest-version-from-pypi branch December 5, 2018 18:56
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