File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1414.python-version
1515.tox /
1616profile *
17- * _example.py
17+ * _example.py
18+ register.py
19+ README.txt
Original file line number Diff line number Diff line change 11import sys
2+ import os
23from setuptools import setup , find_packages
34
45__version__ = None
56with open ('sendgrid/version.py' ) as f :
67 exec (f .read ())
78
9+ long_description = 'Please see our GitHub README'
10+ if os .path .exists ('README.txt' ):
11+ long_description = open ('README.txt' ).read ()
812
913def getRequires ():
1014 deps = ['smtpapi==0.3.1' , 'python_http_client==1.2.3' ]
@@ -17,13 +21,13 @@ def getRequires():
1721setup (
1822 name = 'sendgrid' ,
1923 version = str (__version__ ),
20- author = 'Yamil Asusta, Elmer Thomas ' ,
24+ author = 'Elmer Thomas, Yamil Asusta ' ,
2125 author_email = 'dx@sendgrid.com' ,
2226 url = 'https://github.com/sendgrid/sendgrid-python/' ,
2327 packages = find_packages (),
2428 license = 'MIT' ,
2529 description = 'SendGrid library for Python' ,
26- long_description = open ( './README.rst' ). read () ,
30+ long_description = long_description ,
2731 install_requires = getRequires (),
2832 classifiers = [
2933 'Programming Language :: Python :: 2.6' ,
Original file line number Diff line number Diff line change 77except ImportError :
88 import unittest
99import os
10- host = os .environ .get ('MOCK_HOST' )
10+
11+ if os .environ .get ('TRAVIS' ):
12+ host = os .environ .get ('MOCK_HOST' )
13+ else :
14+ host = "http://localhost:4010"
1115
1216class UnitTests (unittest .TestCase ):
1317 def setUp (self ):
You can’t perform that action at this time.
0 commit comments