Python 3 Compatibility #183
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "python3-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
HISTORY.rstto start tracking history of changestwitter_endpoints.pytoendpoints.pyfor cleanlinesscompat.pyfor compatability with Python 2.6 and greater__author__to__init__.pyversion.pyto store the current Twython version, instead of repeating it twice -- it also had to go into it's own file because of dependencies ofrequestsandrequests-oauthlib, install would fail because those libraries weren't installed yet (on fresh install of Twython)find_packages()fromsetup.py, only one package -- we canjust define it
python setup.py publishis faster to type and easier to remember thanpython setup.py sdist uploadbase_urlfromendpoints.pybecause we're just repeating it inTwython.__init__Twython.get_authentication_tokens()now takescallback_urlargument rather than passing thecallback_urlthroughTwython.__init__,callback_urlis only used in theget_authentication_tokensmethod and nowhere else (kept in init though for backwards compatability)warnings.simplefilter('default')line intwython.pyfor Python 2.7 and greater to display Deprecation Warnings in consoletwitter_token,twitter_secretandcallback_urlinTwython.__init__requestsisn't greedy about variables that can't be converted to unicode anymorebulkUserLookup(please uselookupUserinstead), removedgetProfileImageUrl(will be completely removed from Twitter API on May 7th, 2013)requestsmakes it easy for developers to implement their own url shortening in their app (see https://github.com/ryanmcgrath/twython/issues/184)ssl_verifyparameter, defaults True. Set False if you're having development server issues_media_updatefunction, we could have always just usedself.postAnd of course @ryanmcgrath approval of such large changes would be appreciated :)
(Ps. Take your time, no rush to push this)
Offhand this looks great. Will confirm in morning. Nice!
On Friday, April 19, 2013, Mike Helmick wrote:
Skype: ryanmcgrathr
Twitter: http://twitter.com/ryanmcgrath/
Web: http://venodesigns.net/
GitHub: http://github.com/ryanmcgrath/
I think we're good here, yeah. Amazing work @michaelhelmick.
Alright man, I fixed #184 (I updated the function for those using it [only for is.gd] and we can fully remove it in a future release)
I won't be available the week of Twitter deprecating their v1 API (May 7th, 2013) and I'm not sure of your schedule Ryan, so I went ahead and removed the
bulkUserLookupandgetProfileImageUrlmethods completely;bulkUserLookuphas been a long time coming I believe, I forget what actually happened to it, I think the url just changed or something. andgetProfileImageUrlwill be completely unavailable as there is no dedicated endpoint in v1.1 for this functionalityI know we talked about a
2.7.5release but since those methods will no longer be available I say that calls for a2.8.0release since we're removing functionsHopefully I can get a 👍 to merge this in this weekend? :D
Honestly this seems good to go, from what I'm seeing. I think you made the right call with is.gd and then removing it down the road;
2.8is fine with me.Cheers, rock it~
👍 Will merge and push release tomorrow!