Skip to content

Commit 992dc37

Browse files
committed
Fix version handling
1 parent de504a0 commit 992dc37

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

flask_jwt_extended/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
unset_jwt_cookies, get_raw_jwt, get_current_user, current_user,
99
get_jti, decode_token, get_csrf_token
1010
)
11+
12+
__version__ = '3.7.0'

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
"""
22
Flask-JWT-Extended
3-
-------------------
3+
------------------
44
Flask-Login provides jwt endpoint protection for Flask.
55
"""
6+
import io
7+
import re
68
from setuptools import setup
79

10+
with io.open('flask_jwt_extended/__init__.py', encoding='utf-8') as f:
11+
version = re.search(r"__version__ = '(.+)'", f.read()).group(1)
12+
813
setup(name='Flask-JWT-Extended',
9-
version='3.7.0',
14+
version=version,
1015
url='https://github.com/vimalloc/flask-jwt-extended',
1116
license='MIT',
1217
author='Landon Gilbert-Bland',
@@ -18,7 +23,7 @@
1823
zip_safe=False,
1924
platforms='any',
2025
install_requires=[
21-
'Werkzeug>=0.14', # needed for samestie cookie functionality
26+
'Werkzeug>=0.14', # Needed for SameSite cookie functionality
2227
'Flask',
2328
'PyJWT',
2429
],

0 commit comments

Comments
 (0)