Skip to content

Commit

Permalink
Fix version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
decaz committed Feb 21, 2018
1 parent de504a0 commit 992dc37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions flask_jwt_extended/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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',
],
Expand Down

0 comments on commit 992dc37

Please sign in to comment.