Skip to content

Commit 690f7f1

Browse files
committed
changed setup.py add classifers for supported versions
issue with python 3.3 and above still remains bumped version added classifiers to the setup.py
1 parent dab4609 commit 690f7f1

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ python:
33
- '2.6'
44
- '2.7'
55
- '3.2'
6+
- '3.3'
7+
- '3.4'
68
install:
79
- python setup.py install
810
script: python test/__init__.py

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ 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+
'Programming Language :: Python :: 3.3',
33+
'Programming Language :: Python :: 3.4'
34+
]
2835
)

test/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
SG_PWD = os.getenv('SG_PWD') or 'SENDGRID_PASSWORD'
1919

2020
class TestSendGrid(unittest.TestCase):
21+
maxDiff = None
2122
def setUp(self):
2223
self.sg = SendGridClient(SG_USER, SG_PWD)
2324

@@ -94,7 +95,7 @@ def test_send(self):
9495
"asm_group_id": 42
9596
}
9697
'''))
97-
self.assertEqual(url, test_url)
98+
self.assertDictEqual(url, test_url)
9899

99100
@unittest.skipUnless(sys.version_info < (3, 0), 'only for python2')
100101
def test__build_body_unicode(self):

0 commit comments

Comments
 (0)