forked from adamnoto/midtrans-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (28 loc) · 841 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
from setuptools import setup, find_packages
import re
import ast
pkg_req = [
'requests>=2.3.0'
]
test_req = pkg_req + [
'pytest>=3.0.6'
]
with open('midtrans/__init__.py', 'rb') as f:
_version_re = re.compile(r'__version__\s+=\s+(.*)')
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')
).group(1)))
setup(name='midtrans',
version=version,
url='https://github.com/saveav/midtrans-python',
license='MIT',
author='Adam Pahlevi',
author_email='[email protected]',
description='Official Midtrans library',
long_description='Official Midtrans library',
packages=find_packages(),
keywords='midtrans veritrans',
include_package_data=True,
platform='any',
install_requires=pkg_req,
tests_requires=test_req)