Skip to content

Commit ae8c51c

Browse files
authored
Version 2.0.1: don't require requests to run setup.py (plaid#88)
1 parent 168bf42 commit ae8c51c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

plaid/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.0'
1+
__version__ = '2.0.1'

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1+
import re
12
from 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

511
url = 'https://github.com/plaid/plaid-python'
612

713
setup(
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='[email protected]',
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']},

0 commit comments

Comments
 (0)