Skip to content

Commit

Permalink
Merge pull request #395 from tindatnguyen/fix/werkzeug_imports
Browse files Browse the repository at this point in the history
fix werkzeug imports error for client.py
  • Loading branch information
greyli authored Sep 5, 2020
2 parents 572922b + 39b4526 commit f91e92d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions flask_oauthlib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
from functools import wraps
from oauthlib.common import to_unicode, PY3, add_params_to_uri
from flask import request, redirect, json, session, current_app
from werkzeug import url_quote, url_decode, url_encode
from werkzeug import parse_options_header, cached_property
from werkzeug.urls import url_quote, url_decode, url_encode
from werkzeug.http import parse_options_header
from werkzeug.utils import cached_property
from .utils import to_bytes
try:
from urlparse import urljoin
Expand Down
4 changes: 2 additions & 2 deletions flask_oauthlib/contrib/cache.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

from werkzeug.contrib.cache import NullCache, SimpleCache, FileSystemCache
from werkzeug.contrib.cache import MemcachedCache, RedisCache
from cachelib import NullCache, SimpleCache, FileSystemCache
from cachelib import MemcachedCache, RedisCache


class Cache(object):
Expand Down
2 changes: 1 addition & 1 deletion flask_oauthlib/provider/oauth1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import logging
from functools import wraps
from werkzeug import cached_property
from werkzeug.utils import cached_property
from flask import request, redirect, url_for
from flask import make_response, abort
from oauthlib.oauth1 import RequestValidator
Expand Down
3 changes: 1 addition & 2 deletions flask_oauthlib/provider/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
from functools import wraps
from flask import request, url_for
from flask import redirect, abort
from werkzeug import cached_property
from werkzeug.utils import import_string
from werkzeug.utils import import_string, cached_property
from oauthlib import oauth2
from oauthlib.oauth2 import RequestValidator, Server
from oauthlib.common import to_unicode, add_params_to_uri
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ mock==2.0.0
oauthlib==2.0.6
requests-oauthlib==0.8.0
Flask-SQLAlchemy==2.1
cachelib==0.1.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def fread(filename):
'Flask',
'oauthlib>=1.1.2,!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0',
'requests-oauthlib>=0.6.2,<1.2.0',
'cachelib',
],
tests_require=['nose', 'Flask-SQLAlchemy', 'mock'],
test_suite='nose.collector',
Expand Down

0 comments on commit f91e92d

Please sign in to comment.