## 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]
42 lines
1.2 KiB
Python
Executable file
42 lines
1.2 KiB
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
|
|
from setuptools import setup
|
|
|
|
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
|
__version__ = '3.0.0'
|
|
|
|
packages = [
|
|
'twython',
|
|
'twython.streaming'
|
|
]
|
|
|
|
if sys.argv[-1] == 'publish':
|
|
os.system('python setup.py sdist upload')
|
|
sys.exit()
|
|
|
|
setup(
|
|
name='twython',
|
|
version=__version__,
|
|
install_requires=['requests==1.2.2', 'requests_oauthlib==0.3.2'],
|
|
author='Ryan McGrath',
|
|
author_email='ryan@venodesigns.net',
|
|
license=open('LICENSE').read(),
|
|
url='https://github.com/ryanmcgrath/twython/tree/master',
|
|
keywords='twitter search api tweet twython stream',
|
|
description='Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs',
|
|
long_description=open('README.rst').read() + '\n\n' +
|
|
open('HISTORY.rst').read(),
|
|
include_package_data=True,
|
|
packages=packages,
|
|
classifiers=[
|
|
'Development Status :: 4 - Beta',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: MIT License',
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
'Topic :: Communications :: Chat',
|
|
'Topic :: Internet'
|
|
]
|
|
)
|