forked from sendgrid/sendgrid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require python-http-client=2.2.1 for debugging sendgrid#321
- Loading branch information
Showing
1 changed file
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
import sys | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
__version__ = None | ||
with open('sendgrid/version.py') as f: | ||
exec(f.read()) | ||
|
||
long_description = 'Please see our GitHub README' | ||
if os.path.exists('README.txt'): | ||
long_description = open('README.txt').read() | ||
|
||
|
||
def getRequires(): | ||
deps = ['python_http_client>=2.1.1'] | ||
if sys.version_info < (2, 7): | ||
deps.append('unittest2') | ||
elif (3, 0) <= sys.version_info < (3, 2): | ||
deps.append('unittest2py3k') | ||
return deps | ||
|
||
setup( | ||
name='sendgrid', | ||
version=str(__version__), | ||
author='Elmer Thomas, Yamil Asusta', | ||
author_email='[email protected]', | ||
url='https://github.com/sendgrid/sendgrid-python/', | ||
packages=find_packages(exclude=["temp*.py", "register.py", "test"]), | ||
include_package_data=True, | ||
license='MIT', | ||
description='SendGrid library for Python', | ||
long_description=long_description, | ||
install_requires=getRequires(), | ||
classifiers=[ | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.2', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6' | ||
] | ||
) | ||
import sys | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
__version__ = None | ||
with open('sendgrid/version.py') as f: | ||
exec(f.read()) | ||
|
||
long_description = 'Please see our GitHub README' | ||
if os.path.exists('README.txt'): | ||
long_description = open('README.txt').read() | ||
|
||
|
||
def getRequires(): | ||
deps = ['python_http_client==2.1.1'] | ||
if sys.version_info < (2, 7): | ||
deps.append('unittest2') | ||
elif (3, 0) <= sys.version_info < (3, 2): | ||
deps.append('unittest2py3k') | ||
return deps | ||
|
||
setup( | ||
name='sendgrid', | ||
version=str(__version__), | ||
author='Elmer Thomas, Yamil Asusta', | ||
author_email='[email protected]', | ||
url='https://github.com/sendgrid/sendgrid-python/', | ||
packages=find_packages(exclude=["temp*.py", "register.py", "test"]), | ||
include_package_data=True, | ||
license='MIT', | ||
description='SendGrid library for Python', | ||
long_description=long_description, | ||
install_requires=getRequires(), | ||
classifiers=[ | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.2', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6' | ||
] | ||
) |