forked from QuickPay/quickpay-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
31 lines (25 loc) · 856 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import sys, re
reqs = ['requests>=2.5']
tests_requires = ['nose', 'responses', 'mock']
version = ''
with open('quickpay_api_client/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(),
re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(
name='quickpay-api-client',
version=version,
description='Python client for QuickPay API',
author_email="[email protected]",
author="QuickPay Developers",
url="https://github.com/QuickPay/quickpay-python-client",
packages=['quickpay_api_client'],
license='MIT',
install_requires=reqs,
tests_requires=tests_requires,
test_suite='nose.collector')