Merge a16bba42b3 into 4d7526efc1
This commit is contained in:
commit
04722dd901
1 changed files with 10 additions and 1 deletions
11
setup.py
11
setup.py
|
|
@ -4,6 +4,15 @@ from setuptools import find_packages
|
||||||
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
||||||
__version__ = '2.7.0'
|
__version__ = '2.7.0'
|
||||||
|
|
||||||
|
install_requires = ['requests>=1.0.0, <2.0.0', 'requests_oauthlib==0.3.0']
|
||||||
|
try:
|
||||||
|
import json
|
||||||
|
except ImportError:
|
||||||
|
try:
|
||||||
|
from django.utils import simplejson
|
||||||
|
except ImportError:
|
||||||
|
install_requires.append('simplejson')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
# Basic package information.
|
# Basic package information.
|
||||||
name='twython',
|
name='twython',
|
||||||
|
|
@ -14,7 +23,7 @@ setup(
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
|
||||||
# Package dependencies.
|
# Package dependencies.
|
||||||
install_requires=['simplejson', 'requests>=1.0.0, <2.0.0', 'requests_oauthlib==0.3.0'],
|
install_requires=install_requires,
|
||||||
|
|
||||||
# Metadata for PyPI.
|
# Metadata for PyPI.
|
||||||
author='Ryan McGrath',
|
author='Ryan McGrath',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue