Skip to content

Commit 970adba

Browse files
committed
GH-5: Specify max dependency versions for Python>=3.6
1 parent 5509c7d commit 970adba

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fastapi>=0.68.1
2+
httpx>=0.22.0
3+
oauthlib>=3.2.2
4+
python-jose>=3.3.0
5+
social-auth-core>=4.4.2
6+
starlette>=0.19.1

setup.cfg

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ classifiers =
4242
packages =
4343
fastapi_oauth2
4444
install_requires =
45-
fastapi>=0.85.2
45+
fastapi>=0.68.1
46+
httpx>=0.22.0
47+
oauthlib>=3.2.2
48+
python-jose>=3.3.0
49+
social-auth-core>=4.4.2
50+
starlette>=0.19.1
4651
include_package_data = yes
4752
python_requires = >=3.6
4853
package_dir =

src/fastapi_oauth2/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from urllib.parse import urljoin
1010

1111
import httpx
12-
import requests
1312
from oauthlib.oauth2 import WebApplicationClient
1413
from social_core.backends.oauth import BaseOAuth2
1514
from social_core.strategy import BaseStrategy
@@ -38,7 +37,7 @@ def get_setting(self, name):
3837

3938
@staticmethod
4039
def get_json(url, method='GET', *args, **kwargs):
41-
return requests.request(method, url, *args, **kwargs)
40+
return httpx.request(method, url, *args, **kwargs)
4241

4342

4443
class OAuth2Core:

0 commit comments

Comments
 (0)