Skip to content

Commit b0e27f8

Browse files
Version Bump v2.2.1
1 parent 9dbebb9 commit b0e27f8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55

66
### Added ###
77

8+
- you can now pass a path to your .env file to the SendGridAPIClient
9+
10+
## [2.1.1] - 2016-03-02 ##
11+
12+
### Added ###
13+
814
- you can now pass an apikey to the SendGridAPIClient, per issue [#168](https://github.com/sendgrid/sendgrid-python/issues/168). Thanks [Matt](https://github.com/mbernier)!
915
- fix .rst formatting for PyPi
1016

sendgrid/client.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ def __init__(self, **opts):
1313
:type host: string
1414
1515
"""
16-
path = '{0}/..'.format(os.path.abspath(os.path.dirname(__file__)))
17-
python_http_client.Config(path)
16+
self.path = opts.get('path', os.path.abspath(os.path.dirname(__file__)))
17+
python_http_client.Config(self.path)
1818
self._apikey = opts.get('apikey', os.environ.get('SENDGRID_API_KEY'))
1919
self.useragent = 'sendgrid/{0};python_v3'.format(__version__)
2020
self.host = opts.get('host', 'https://api.sendgrid.com')
21-
self.path = opts.get('path', os.path.abspath(os.path.dirname(__file__)))
2221
self.version = __version__
2322

2423
headers = {

sendgrid/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (2, 1, 1)
1+
version_info = (2, 2, 1)
22
__version__ = '.'.join(str(v) for v in version_info)

0 commit comments

Comments
 (0)