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

Requests support (for real this time) ! #400

Merged
merged 13 commits into from
Apr 27, 2014
Merged

Requests support (for real this time) ! #400

merged 13 commits into from
Apr 27, 2014

Conversation

Aaron1011
Copy link
Contributor

No description provided.

@Aaron1011
Copy link
Contributor Author

@joshthecoder: Does this look good to merge?

@joshthecoder
Copy link
Member

Let's push this into a branch and iterate on it a bit more. We need to fix the tests / Travis plus verify app engine does not break.

@joshthecoder
Copy link
Member

I started work on a branch that abstracted the HTTP client out of binder.
This allowed both httplib and Requests to be used via the developer's choice.
But not entirely sure if that is really needed if Requests supports the environments we care about (ex: app engine).

@Aaron1011
Copy link
Contributor Author

@joshthecoder: Requests appears to support app engine (we should test to make sure, however). All of the test failures were rate limit errors - I'm re-running them to check.

@Aaron1011
Copy link
Contributor Author

@joshthecoder: Does anything else need to be done?

@joshthecoder
Copy link
Member

Still digesting it but so far looks good. Not sure yet when it will ship.
Probably do another minor 2.x release than move master to 3.x.

@tewalds
Copy link

tewalds commented Apr 7, 2014

Can you please make sure this works for streaming on appengine too? Requests actually just wraps httplib, and appengine's httplib is replaced by urlfetch, and urlfetch doesn't support long-running requests, so I'm pretty sure Requests will not work on appengine. The only way I've gotten tweepy to work on appengine is to copy in my own copy of python's httplib and modify tweepy to use it instead, which forces it to go over sockets instead of urlfetch. This is a pain, but at least it's possible when I can just change the import statement in tweepy/streaming.py. I'd rather not have to change the imports of an external dependency.

@Aaron1011
Copy link
Contributor Author

@joshthecoder: How is this looking?

@Aaron1011
Copy link
Contributor Author

@joshthecoder: Ping

@joshthecoder
Copy link
Member

Looks like there are some conflicts that need to be resolved. Otherwise its good to merge into master.

Aaron1011 added a commit that referenced this pull request Apr 27, 2014
Requests support (for real this time) !
@Aaron1011 Aaron1011 merged commit 11b1526 into master Apr 27, 2014
@joshthecoder
Copy link
Member

Looks like master is failing. I started looking into it. A few coding errors I fixed, but now authentication seems broken.

@joshthecoder
Copy link
Member

Okay think I have it fixed now. There does appear to be an issue with the recordings missing some responses though. Not sure yet what is causing it.

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.

None yet

4 participants