File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2525 basestring = str
2626
2727
28+ __version__ = '0.2.2'
2829__all__ = ['encode' , 'decode' , 'DecodeError' ]
2930
3031
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22import os
3+ import re
34from setuptools import setup
45
56
7+ def get_version (package ):
8+ """
9+ Return package version as listed in `__version__` in `init.py`.
10+ """
11+ init_py = open (os .path .join (package , '__init__.py' )).read ()
12+ return re .search ("__version__ = ['\" ]([^'\" ]+)['\" ]" , init_py ).group (1 )
13+
14+
15+ version = get_version ('jwt' )
16+
617with open (os .path .join (os .path .dirname (__file__ ), 'README.md' )) as readme :
718 long_description = readme .read ()
819
20+
921setup (
1022 name = 'PyJWT' ,
11- version = '0.2.2' ,
23+ version = version ,
1224 author = 'Jeff Lindsay' ,
1325 author_email = 'progrium@gmail.com' ,
1426 description = 'JSON Web Token implementation in Python' ,
You can’t perform that action at this time.
0 commit comments