diff --git a/flask_jwt_extended/__init__.py b/flask_jwt_extended/__init__.py index 4c77bab1..ec10bada 100644 --- a/flask_jwt_extended/__init__.py +++ b/flask_jwt_extended/__init__.py @@ -8,3 +8,5 @@ unset_jwt_cookies, get_raw_jwt, get_current_user, current_user, get_jti, decode_token, get_csrf_token ) + +__version__ = '3.7.0' diff --git a/setup.py b/setup.py index eb4dea87..14c05170 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,17 @@ """ Flask-JWT-Extended -------------------- +------------------ Flask-Login provides jwt endpoint protection for Flask. """ +import io +import re from setuptools import setup +with io.open('flask_jwt_extended/__init__.py', encoding='utf-8') as f: + version = re.search(r"__version__ = '(.+)'", f.read()).group(1) + setup(name='Flask-JWT-Extended', - version='3.7.0', + version=version, url='https://github.com/vimalloc/flask-jwt-extended', license='MIT', author='Landon Gilbert-Bland', @@ -18,7 +23,7 @@ zip_safe=False, platforms='any', install_requires=[ - 'Werkzeug>=0.14', # needed for samestie cookie functionality + 'Werkzeug>=0.14', # Needed for SameSite cookie functionality 'Flask', 'PyJWT', ],