File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- __version__ = '2.0.0 '
1+ __version__ = '2.0.1 '
Original file line number Diff line number Diff line change 1+ import re
12from setuptools import setup , find_packages
2- import plaid
33
4+ with open ('plaid/version.py' , 'r' ) as f :
5+ version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
6+ f .read (), re .MULTILINE ).group (1 )
7+
8+ if not version :
9+ raise RuntimeError ('Cannot find version information' )
410
511url = 'https://github.com/plaid/plaid-python'
612
713setup (
814 name = 'plaid-python' ,
9- version = plaid . __version__ ,
15+ version = version ,
1016 description = 'Python client library for the Plaid API and Link' ,
1117 long_description = '' ,
1218 keywords = 'api, client, plaid' ,
1319 author = 'Plaid Technologies' ,
1420 author_email = 'developers@plaid.com' ,
1521 url = url ,
16- download_url = '{}/tarball/v{}' .format (url , plaid . __version__ ),
22+ download_url = '{}/tarball/v{}' .format (url , version ),
1723 license = 'MIT' ,
1824 packages = find_packages (exclude = 'tests' ),
1925 package_data = {'README' : ['README.md' ]},
You can’t perform that action at this time.
0 commit comments