From dd39700b48a95ab0fd2da2fe268f838a2945a672 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sun, 3 May 2020 00:20:11 +0300 Subject: [PATCH] Bump version to 1.4.1 --- docs/source/conf.py | 2 +- sanic_jwt/__init__.py | 2 +- tests/conftest.py | 2 +- tests/test_async_options.py | 2 +- tests/test_authentication.py | 2 +- tests/test_authentication_custom.py | 2 +- tests/test_cache.py | 1 + tests/test_complete_authentication.py | 2 +- tests/test_configuration.py | 2 +- tests/test_custom_claims.py | 2 +- tests/test_endpoints_async_methods.py | 2 +- tests/test_endpoints_auth.py | 3 ++- tests/test_endpoints_basic.py | 3 ++- tests/test_endpoints_cookies.py | 2 +- tests/test_endpoints_dict_first.py | 2 +- tests/test_endpoints_init_on_bp_retrieve_user.py | 1 + tests/test_endpoints_jwt_cryptography.py | 2 +- tests/test_endpoints_query_string.py | 2 +- tests/test_endpoints_scoped.py | 2 +- tests/test_endpoints_sync_methods.py | 2 +- tests/test_initialize.py | 2 +- tests/test_me_invalid.py | 2 +- tests/test_utils.py | 1 + 23 files changed, 25 insertions(+), 20 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 982ee0b..32c06dc 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -56,7 +56,7 @@ # The short X.Y version. version = u"1.4" # The full version, including alpha/beta/rc tags. -release = u"1.4.0" +release = u"1.4.1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/sanic_jwt/__init__.py b/sanic_jwt/__init__.py index d6b68a1..79dad57 100644 --- a/sanic_jwt/__init__.py +++ b/sanic_jwt/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.4.0" +__version__ = "1.4.1" __author__ = "Adam Hopkins" __credits__ = "Richard Kuesters" diff --git a/tests/conftest.py b/tests/conftest.py index 9250dc1..75d0350 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,7 @@ +import pytest from sanic import Blueprint, Sanic from sanic.response import json, text -import pytest from sanic_jwt import Claim, exceptions, Initialize from sanic_jwt.decorators import protected diff --git a/tests/test_async_options.py b/tests/test_async_options.py index 315d390..694651e 100644 --- a/tests/test_async_options.py +++ b/tests/test_async_options.py @@ -4,12 +4,12 @@ """ +import pytest from sanic import Blueprint, Sanic from sanic.response import text from sanic.views import HTTPMethodView import jwt -import pytest from sanic_jwt import Authentication, initialize, protected ALL_METHODS = ["GET", "OPTIONS"] diff --git a/tests/test_authentication.py b/tests/test_authentication.py index fd3e4a9..f12d4a4 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -1,7 +1,7 @@ +import pytest from sanic import Sanic from sanic.response import json -import pytest from sanic_jwt import Authentication, exceptions, Initialize diff --git a/tests/test_authentication_custom.py b/tests/test_authentication_custom.py index ab8e88c..5d84c38 100644 --- a/tests/test_authentication_custom.py +++ b/tests/test_authentication_custom.py @@ -1,6 +1,6 @@ +import pytest from sanic import Sanic -import pytest from sanic_jwt import Authentication, Initialize diff --git a/tests/test_cache.py b/tests/test_cache.py index cc53385..2dfde9a 100644 --- a/tests/test_cache.py +++ b/tests/test_cache.py @@ -1,4 +1,5 @@ import pytest + from sanic_jwt import exceptions from sanic_jwt.cache import is_cached diff --git a/tests/test_complete_authentication.py b/tests/test_complete_authentication.py index 1db1560..4667f5f 100644 --- a/tests/test_complete_authentication.py +++ b/tests/test_complete_authentication.py @@ -1,10 +1,10 @@ from datetime import datetime, timedelta +import pytest from sanic import Sanic from sanic.response import json import jwt -import pytest from freezegun import freeze_time from sanic_jwt import Authentication, exceptions, Initialize, protected diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 844e275..19b56f3 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -1,7 +1,7 @@ +import pytest from sanic import Sanic from sanic.response import json -import pytest from sanic_jwt import Configuration, exceptions, initialize, Initialize from sanic_jwt.configuration import ConfigItem diff --git a/tests/test_custom_claims.py b/tests/test_custom_claims.py index f896b49..33837d9 100644 --- a/tests/test_custom_claims.py +++ b/tests/test_custom_claims.py @@ -1,7 +1,7 @@ +import pytest from sanic import Sanic import jwt -import pytest from sanic_jwt import Claim, exceptions, Initialize diff --git a/tests/test_endpoints_async_methods.py b/tests/test_endpoints_async_methods.py index 2bc0398..c11092b 100644 --- a/tests/test_endpoints_async_methods.py +++ b/tests/test_endpoints_async_methods.py @@ -1,10 +1,10 @@ import binascii import os +import pytest from sanic import Sanic from sanic.response import json -import pytest from sanic_jwt import exceptions, Initialize from sanic_jwt.decorators import protected diff --git a/tests/test_endpoints_auth.py b/tests/test_endpoints_auth.py index 4df965e..e213d70 100644 --- a/tests/test_endpoints_auth.py +++ b/tests/test_endpoints_auth.py @@ -1,6 +1,7 @@ -import jwt import pytest +import jwt + @pytest.fixture def access_token(app): diff --git a/tests/test_endpoints_basic.py b/tests/test_endpoints_basic.py index bc90424..2813ac0 100644 --- a/tests/test_endpoints_basic.py +++ b/tests/test_endpoints_basic.py @@ -1,6 +1,7 @@ -import jwt import pytest +import jwt + def test_unprotected(app): sanic_app, _ = app diff --git a/tests/test_endpoints_cookies.py b/tests/test_endpoints_cookies.py index 6f11282..aa0a1eb 100644 --- a/tests/test_endpoints_cookies.py +++ b/tests/test_endpoints_cookies.py @@ -1,11 +1,11 @@ import binascii import os +import pytest from sanic import Sanic from sanic.response import json import jwt -import pytest from sanic_jwt import Initialize, protected diff --git a/tests/test_endpoints_dict_first.py b/tests/test_endpoints_dict_first.py index 5bc8530..267ffa9 100644 --- a/tests/test_endpoints_dict_first.py +++ b/tests/test_endpoints_dict_first.py @@ -1,6 +1,6 @@ +import pytest from sanic import Sanic -import pytest from sanic_jwt import exceptions, Initialize diff --git a/tests/test_endpoints_init_on_bp_retrieve_user.py b/tests/test_endpoints_init_on_bp_retrieve_user.py index cb84ff3..e88800d 100644 --- a/tests/test_endpoints_init_on_bp_retrieve_user.py +++ b/tests/test_endpoints_init_on_bp_retrieve_user.py @@ -1,4 +1,5 @@ import pytest + from sanic_jwt import Initialize diff --git a/tests/test_endpoints_jwt_cryptography.py b/tests/test_endpoints_jwt_cryptography.py index ebef8d3..3715175 100644 --- a/tests/test_endpoints_jwt_cryptography.py +++ b/tests/test_endpoints_jwt_cryptography.py @@ -2,10 +2,10 @@ import os from pathlib import Path +import pytest from sanic import Sanic from sanic.response import json -import pytest from sanic_jwt import Configuration, exceptions, Initialize from sanic_jwt.decorators import protected diff --git a/tests/test_endpoints_query_string.py b/tests/test_endpoints_query_string.py index 3211d6d..71a2c55 100644 --- a/tests/test_endpoints_query_string.py +++ b/tests/test_endpoints_query_string.py @@ -1,11 +1,11 @@ import binascii import os +import pytest from sanic import Sanic from sanic.response import json import jwt -import pytest from sanic_jwt import Initialize, protected diff --git a/tests/test_endpoints_scoped.py b/tests/test_endpoints_scoped.py index 898d8c7..7f60bfa 100644 --- a/tests/test_endpoints_scoped.py +++ b/tests/test_endpoints_scoped.py @@ -1,7 +1,7 @@ +import pytest from sanic import Sanic from sanic.response import json, text -import pytest from sanic_jwt import exceptions, Initialize from sanic_jwt.decorators import protected, scoped diff --git a/tests/test_endpoints_sync_methods.py b/tests/test_endpoints_sync_methods.py index a3504cb..16ae3a7 100644 --- a/tests/test_endpoints_sync_methods.py +++ b/tests/test_endpoints_sync_methods.py @@ -3,10 +3,10 @@ import uuid from datetime import datetime, timedelta +import pytest from sanic import Sanic from sanic.response import json -import pytest from freezegun import freeze_time from sanic_jwt import exceptions, Initialize from sanic_jwt.decorators import protected diff --git a/tests/test_initialize.py b/tests/test_initialize.py index 748f010..9250bd9 100644 --- a/tests/test_initialize.py +++ b/tests/test_initialize.py @@ -1,8 +1,8 @@ +import pytest from sanic import Blueprint, Sanic from sanic.response import text from sanic.views import HTTPMethodView -import pytest from sanic_jwt import exceptions, Initialize, initialize diff --git a/tests/test_me_invalid.py b/tests/test_me_invalid.py index 79d131a..4e2f70c 100644 --- a/tests/test_me_invalid.py +++ b/tests/test_me_invalid.py @@ -1,9 +1,9 @@ from datetime import datetime, timedelta +import pytest from sanic.response import json import jwt -import pytest from freezegun import freeze_time from sanic_jwt.decorators import protected diff --git a/tests/test_utils.py b/tests/test_utils.py index efe2099..fa083af 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -2,6 +2,7 @@ from pathlib import Path import pytest + from sanic_jwt import exceptions, utils