Skip to content

Commit 74f66b1

Browse files
Merge pull request #118 from sendgrid/tb-classifer
Updating travis and setup.py for specific python version compatibility
2 parents dab4609 + 1bbd555 commit 74f66b1

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.4.1] - 2015-09-09
5+
### Added
6+
- Classifiers for compatible python versions
7+
48
## [1.4.0] - 2015-04-27
59
### Added
610
- Support for API keys

sendgrid/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (1, 4, 0)
1+
version_info = (1, 4, 1)
22
__version__ = '.'.join(str(v) for v in version_info)

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ def getRequires():
2525
description='SendGrid library for Python',
2626
long_description=open('./README.rst').read(),
2727
install_requires=getRequires(),
28+
classifiers=[
29+
'Programming Language :: Python :: 2.6',
30+
'Programming Language :: Python :: 2.7',
31+
'Programming Language :: Python :: 3.2'
32+
]
2833
)

test/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import unittest
66
import json
77
import sys
8+
import collections
89
try:
910
from StringIO import StringIO
1011
except ImportError: # Python 3
@@ -18,6 +19,7 @@
1819
SG_PWD = os.getenv('SG_PWD') or 'SENDGRID_PASSWORD'
1920

2021
class TestSendGrid(unittest.TestCase):
22+
2123
def setUp(self):
2224
self.sg = SendGridClient(SG_USER, SG_PWD)
2325

@@ -94,8 +96,9 @@ def test_send(self):
9496
"asm_group_id": 42
9597
}
9698
'''))
97-
self.assertEqual(url, test_url)
98-
99+
100+
self.assertEqual(url, test_url)
101+
99102
@unittest.skipUnless(sys.version_info < (3, 0), 'only for python2')
100103
def test__build_body_unicode(self):
101104
"""test _build_body() handles encoded unicode outside ascii range"""

0 commit comments

Comments
 (0)