Skip to content

Commit c86faf2

Browse files
Deploy Updates
1 parent 21fd337 commit c86faf2

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ venv/
1414
.python-version
1515
.tox/
1616
profile*
17-
*_example.py
17+
*_example.py
18+
register.py
19+
README.txt

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import sys
2+
import os
23
from setuptools import setup, find_packages
34

45
__version__ = None
56
with 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

913
def getRequires():
1014
deps = ['smtpapi==0.3.1', 'python_http_client==1.2.3']
@@ -17,13 +21,13 @@ def getRequires():
1721
setup(
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',

test/test_v3_endpoints.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
except ImportError:
88
import unittest
99
import 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

1216
class UnitTests(unittest.TestCase):
1317
def setUp(self):

0 commit comments

Comments
 (0)