Commit graph

98 commits

Author SHA1 Message Date
Joe Cabrera
a0fec2f004 pep8 finished 2014-07-26 11:48:36 -04:00
Mike Helmick
0937fbe929 Fix Changelog, update version
[ci skip]
2013-12-06 11:14:39 -05:00
Mike Helmick
c2068466af Update requests version, HISTORY.rst, prepare for 3.1.1 release 2013-12-05 18:15:30 -05:00
Mike Helmick
6c2cac76a5 Update lib versions, update gitignore
[ci skip]
2013-10-26 19:04:08 -04:00
Ben McGinnes
5ff6db186e Update setup.py
Copied setup import from Python-Requests so it does not fail on some platforms (e.g. Nokia N9/MeeGo).
2013-10-20 14:51:39 +11:00
Mike Helmick
a0b7c88402 Fixing travis encrypted keys, version number and requests requirement 2013-09-24 15:55:50 -04:00
Mike Helmick
53b930b75f Update requests requirement, update READMEs, new secure variables, attempting better coverage reports
Secure variables were exposed. Had to make new ones.
2013-06-11 14:03:26 -04:00
Mike Helmick
b9b7199cc6 Update requirements
nose-cov==1.6

really hope this works >__>
2013-06-11 13:24:11 -04:00
Mike Helmick
8c41a3e9da Ugh, still trying to figure this coveralls thing out. 2013-06-11 12:52:22 -04:00
Mike Helmick
ea178df702 Trying to get coveralls and nose working.
Programming is hard
2013-06-11 11:44:31 -04:00
Mike Helmick
d86f2b0e00 Attempting coveralls again. 2013-06-08 17:06:14 -04:00
Mike Helmick
47e1b7c158 3.0.0
## 3.0.0

- Changed ``twython/twython.py`` to ``twython/api.py`` in attempt to
make structure look a little neater
- Removed all camelCase function access (anything like
``getHomeTimeline`` is now ``get_home_timeline``) Fixes #199
- Removed ``shorten_url``. With the ``requests`` library, shortening a
URL on your own is simple enough
- ``twitter_token``, ``twitter_secret`` and ``callback_url`` are no
longer passed to ``Twython.__init__`` Fixes #185
    - ``twitter_token`` and ``twitter_secret`` have been replaced with
``app_key`` and ``app_secret`` respectively
    - ``callback_url`` is now passed through
``Twython.get_authentication_tokens``

[ci skip]
2013-05-30 18:16:39 -04:00
Mike Helmick
4327ff30df Cleaning up a bit
[ci skip]
2013-05-30 17:48:47 -04:00
Mike Helmick
894e94a4cd 2.10.1
- More test coverage!
- Fix ``search_gen``
- Fixed ``get_lastfunction_header`` to actually do what its docstring
says, returns ``None`` if header is not found
- Updated some internal API code, ``__init__`` didn't need to have
``self.auth`` and ``self.headers`` because they were never used
anywhere else but the ``__init__``
2013-05-29 11:41:03 -04:00
Mike Helmick
52609334bd Update description and long description
[ci skip]
2013-05-21 19:29:15 -04:00
Mike Helmick
bf7b6727dd Update requirements.txt and requirements in setup.py 2013-05-21 18:22:30 -04:00
Mike Helmick
c7bce9189f Update requests dependency, add str py2/3 compat, __repr__ definition, removed unicode2utf8 & encode static methods, update HISTORY
@ryanmcgrath Let me know if you're okay with the removal of
Twython.unicode2utf8 and Twython.encode. I moved Twython.encode to
_encode in helpers.py (only place being used is
Twython.construct_api_url) If it's python 2 and unicode then we encode
it, otherwise return the original value

[ci skip]
2013-05-21 11:41:43 -04:00
Mike Helmick
5534ea2480 Fixes #193, fixed when Warning is raised, fixed error raising, version bump
- Added `get_retweeters_ids` method
- Fixed `TwythonDeprecationWarning` on camelCase functions if the
camelCase was the same as the PEP8 function (i.e. ``Twython.retweet``
did not change)
- Fixed error message bubbling when error message returned from Twitter
was not an array (i.e. if you try to retweet something twice, the error
is not found at index 0)
2013-05-10 21:28:57 -04:00
Mike Helmick
60b2e14bef Update READMEs, fixed streaming pkg error
Removed Twython 1.3 note from READMEs, explained dynamic function
arguments in another place

Fixed error that caused users to not be able to install 2.9.0
2013-05-04 20:15:02 -04:00
Mike Helmick
828d355ad2 Update version 2013-05-04 19:29:55 -04:00
Mike Helmick
b7d68c6136 requests_oauthlib==0.3.1, fixes #154 2013-05-04 15:12:21 -04:00
Mike Helmick
c3e84bc8ee Fixing streaming 2013-05-02 15:12:36 -04:00
Mike Helmick
b6e820d792 Remove version.py for now
Was causing conflicts on pip install
2013-04-29 12:04:22 -04:00
Mike Helmick
32432bcac9 Update perms 2013-04-29 11:42:34 -04:00
Mike Helmick
776e02b071 Updated AUTHORS, HISTORY; added ssl_verify; removed _media_update
- Added @jvanasco to the AUTHORS.rst
- Updated History
- Removed _media_update internal function
- Twython now takes ssl_verify param
2013-04-29 11:27:15 -04:00
Mike Helmick
bb019d3a57 Making twython work (again?) in Python 3
- Added a ``HISTORY.rst`` to start tracking history of changes
- Updated ``twitter_endpoints.py`` to ``endpoints.py`` for cleanliness
- Removed twython3k directory, no longer needed
- Added ``compat.py`` for compatability with Python 2.6 and greater
- Added some ascii art, moved description of Twython and ``__author__`` to ``__init__.py``
- Added ``version.py`` to store the current Twython version, instead of repeating it twice -- it also had to go into it's own file because of dependencies of ``requests`` and ``requests-oauthlib``, install would fail because those libraries weren't installed yet (on fresh install of Twython)
- Removed ``find_packages()`` from ``setup.py``, only one package -- we can
just define it
- added quick publish method for Ryan and I: ``python setup.py publish`` is faster to type and easier to remember than ``python setup.py sdist upload``
- Removed ``base_url`` from ``endpoints.py`` because we're just repeating it in
``Twython.__init__``
- ``Twython.get_authentication_tokens()`` now takes ``callback_url`` argument rather than passing the ``callback_url`` through ``Twython.__init__``, ``callback_url`` is only used in the ``get_authentication_tokens`` method and nowhere else (kept in init though for backwards compatability)
- Updated README to better reflect current Twython codebase
- Added ``warnings.simplefilter('default')`` line in ``twython.py`` for Python 2.7 and greater to display Deprecation Warnings in console
- Added Deprecation Warnings for usage of ``twitter_token``, ``twitter_secret`` and ``callback_url`` in ``Twython.__init__``
- Headers now always include the User-Agent as Twython vXX unless User-Agent is overwritten
- Removed senseless TwythonError thrown if method is not GET or POST, who cares -- if the user passes something other than GET or POST just let Twitter return the error that they messed up
- Removed conversion to unicode of (int, bool) params passed to a requests. ``requests`` isn't greedy about variables that can't be converted to unicode anymore
2013-04-18 22:00:23 -04:00
Mike Helmick
d228e04bc0 Version bump! 2013-04-12 11:40:05 -04:00
Mike Helmick
10dbe11b56 Version bump and update contributors! 2013-04-08 16:40:59 -04:00
Mike Helmick
4a181d3ac1 Version bump! 2013-04-08 11:51:34 -04:00
Mike Helmick
abaa3e558a oauth_verifier required, remove simplejson dependency, update endpoint
* Update `updateProfileBannerImage` to use the v1.1 endpoint

* Added `getProfileBannerSizes` method using the GET
/users/profile_banner.json endpoint

* Fixed a couple of endpoints using variable in the url:
  * destroyDirectMessage, createBlock, destroyBlock no longer use id in
their urls, this shouldn't break anything though.
(t.destroyDirectMessage(id=123) should still work)

* `oauth_verifier` is now **required** when calling
`get_authorized_tokens`

* Updated docs - removed getProfileImageUrl docs since it is
deprecated. Noted since `Twython` 2.7.0 that users should focus on
migrating to v1.1 endpoints since Twitter is deprecating v1 endpoints
in May!,
2013-04-08 11:49:12 -04:00
Mike Helmick
fffedd4588 Version bump 2013-04-04 14:52:32 -04:00
Mike Helmick
a6afb2cf5c Version bump! 2013-03-31 12:38:07 -04:00
Mike Helmick
a172136f3e Update Twitter Endpoints & Internal Functions
* Twitter Endpoints are now in the order of
https://dev.twitter.com/docs/api/1.1

* No need to repeat search function internally when it is available via
`twitter_endpoints.py`

* Make `searchGen` use self.search, instead of self.get with the full
search url
2013-03-20 23:24:26 -04:00
Sam Mellor
9bda75b520 Allow versions of requests between 1.0.0 and 2.0.0
Requests is semantically versioned, so minor version changes are expected to be compatible.
2013-02-07 22:20:35 +11:00
Sam Mellor
f0db93c59e updated for requests==1.1.0 2013-01-30 01:00:32 +11:00
Ryan McGrath
87a3b44a30 Bump to 2.5.5 2013-01-01 20:47:02 -05:00
Ryan McGrath
2d3d5b5b68 Bump to 2.5.4 2012-12-14 07:13:28 -05:00
Ryan McGrath
34e9474b91 Version bump 2012-12-01 01:34:38 -05:00
Ryan McGrath
a125ad6048 Version bump 2012-11-10 20:16:34 -05:00
Mike Helmick
b8084905d3 requests==0.14.0 requirement
Requests needs to be on 0.14.0, otherwise calls with params and files will not work.
2012-11-09 10:30:37 -05:00
Ryan McGrath
b6c5dc5a48 Merged chbrown's patch to use 1.1 for default versioning endpoints; bumped to 2.5.1 2012-11-09 04:42:02 -05:00
Mike Helmick
4e86da4aec Posts with files and params works with requests 0.14.0
#122
2012-10-29 12:36:45 -04:00
Mike Helmick
5a516c2bfb Version bump 2012-10-10 12:55:35 -04:00
Mike Helmick
8e72adead2 Version bump since new endpoint added, update requests version 2012-08-31 14:22:48 -04:00
Mike Helmick
9e5a96655d 2.3.4 release, requires requests 0.13.4 >, basically we don't have to url encode params anymore and can just pass a dict of params to the request (finally! :D) 2012-07-27 12:10:36 -04:00
Ryan McGrath
e1c4035a63 Version bump for bug-fix rollout 2012-07-25 03:56:12 +09:00
Ryan McGrath
0bcc15ecf3 2.3.2, latest @michaelhelmick fixes 2012-06-30 01:55:30 +09:00
Mike Helmick
d864376816 Code cleanup, Update requests version
* No sense in setting self.auth twice
* Make self.client a requests.session to reuse headers and auth
* requests 0.13.2 dependency isn't needed, but doesn't hurt
2012-06-29 12:19:37 -04:00
Ryan McGrath
73a1910066 Version bump for 2.3.1 release 2012-06-30 00:52:40 +09:00
Ryan McGrath
068c504030 Merge branch 'requests_image_posting' (Pull Request #91)
- Fixes for README
- Re-added a bulkUserLookup method that warns for deprecation
- Merged in @michaelhelmick's work on media and oauth2 deprecation

Conflicts:
	setup.py
	twython/twython.py
2012-06-25 05:02:57 +09:00