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

Replaced URLGrabber with requests (rhbz#1141245) #2

Merged
merged 1 commit into from
Feb 17, 2015

Conversation

tradej
Copy link
Contributor

@tradej tradej commented Feb 13, 2015

Because urlgrabber is being dropped by many significant software projects in
Fedora, Pykickstart can't keep depending on it once it is converted to Python 3
(rhbz#985310).

This commit replaces the dep with requests with SSL verification turned on by
default. This could pose trouble in Python 2 if proper underlying packages
aren't installed [1]. In case this becomes a problem, the SSL_VERIFY constant
in constants.py may be switched to False.

[1] https://github.com/kennethreitz/requests/issues/749#issuecomment-19187417

@tradej
Copy link
Contributor Author

tradej commented Feb 13, 2015

Sorry, I forgot to incorporate changes in version.py into this commit, I'll fix that shortly.

@clumens
Copy link
Collaborator

clumens commented Feb 13, 2015

On the python2 case, can we somehow detect if the support is there and toggle SSL_VERIFY ourselves?

@tradej
Copy link
Contributor Author

tradej commented Feb 13, 2015

@clumens Disabling SSL verification automatically is IMHO a very bad idea. I can modify the error message to advise the user to check this if the lib is run under PY2, but I'd generally advise against disabling it.

@tradej
Copy link
Contributor Author

tradej commented Feb 16, 2015

Fixed issues and pushed an amended commit.

Because urlgrabber is being dropped by many significant software projects in
Fedora, Pykickstart can't keep depending on it once it is converted to Python 3
(rhbz#985310).

This commit replaces the dep with requests with SSL verification turned on by
default. This could pose trouble in Python 2 if proper underlying packages
aren't installed [1]. In case this becomes a problem, the SSL_VERIFY constant
in load.py may be switched to False.

[1] https://github.com/kennethreitz/requests/issues/749#issuecomment-19187417
@tradej tradej mentioned this pull request Feb 17, 2015
clumens added a commit that referenced this pull request Feb 17, 2015
Replaced URLGrabber with requests (rhbz#1141245)
@clumens clumens merged commit 8fee435 into pykickstart:master Feb 17, 2015
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