Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
31 lines (25 loc) · 856 Bytes
/
Copy pathsetup.py
File metadata and controls
31 lines (25 loc) · 856 Bytes
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:
fromsetuptoolsimportsetup
exceptImportError:
fromdistutils.coreimportsetup
importsys, re
reqs= ['requests>=2.5']
tests_requires= ['nose', 'responses', 'mock']
version=''
withopen('quickpay_api_client/__init__.py', 'r') asfd:
version=re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(),
re.MULTILINE).group(1)
ifnotversion:
raiseRuntimeError('Cannot find version information')
setup(
name='quickpay-api-client',
version=version,
description='Python client for QuickPay API',
author_email="support@quickpay.net",
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')