Skip to content

Commit

Permalink
Fix for googleapis#169
Browse files Browse the repository at this point in the history
requests-oauthlib minimun version bumped to 1.2.0
Updated requirements
Bumped library version
  • Loading branch information
Jandro committed Jan 16, 2019
1 parent a419c8d commit f056785
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions O365/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def request_token(self, authorization_url, store_token=True,
raise RuntimeError("Fist call 'get_authorization_url' to "
"generate a valid oauth object")

client_id, client_secret = self.auth
_, client_secret = self.auth

# Allow token scope to not match requested scope.
# (Other auth libraries allow this, but Requests-OAuthlib
Expand All @@ -432,7 +432,7 @@ def request_token(self, authorization_url, store_token=True,
self.token = self.session.fetch_token(
token_url=self._oauth2_token_url,
authorization_response=authorization_url,
client_id=client_id,
include_client_id=True,
client_secret=client_secret)
except Exception as e:
log.error('Unable to fetch auth token. Error: {}'.format(str(e)))
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ beautifulsoup4>=4.0.0
python-dateutil>=2.7
pytz>=2018.5
requests>=2.0.0
requests-oauthlib>=1.0.0
requests-oauthlib>=1.2.0
stringcase>=1.2.0
tzlocal>=1.5.0
Click>=7.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requests>=2.0.0
requests_oauthlib>=1.0.0
requests_oauthlib>=1.2.0
python-dateutil>=2.7
pytz>=2018.5
tzlocal>=1.5.0
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages


VERSION = '1.0.4'
VERSION = '1.0.5'

# Available classifiers: https://pypi.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
Expand All @@ -30,7 +30,7 @@ def read(fname):

requires = [
'requests>=2.0.0',
'requests_oauthlib>=1.0.0',
'requests_oauthlib>=1.2.0',
'python-dateutil>=2.7',
'pytz>=2018.5',
'tzlocal>=1.5.0',
Expand Down

0 comments on commit f056785

Please sign in to comment.