forked from maxipago/sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (31 loc) · 842 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
32
33
34
35
36
37
# coding: utf-8
import re
import os
from setuptools import setup
def read_file(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version():
meta_filedata = read_file('maxipago/__init__.py')
re_version = re.compile(r'VERSION\s*=\s*\((.*?)\)')
group = re_version.search(meta_filedata).group(1)
version = filter(None, map(lambda s: s.strip(), group.split(',')))
return '.'.join(version)
setup(
name='maxipago',
version=get_version(),
author='Stored',
author_email='contato@stored.com.br',
description='',
license='MIT',
keywords='',
url='',
packages=['maxipago'],
long_description=read_file('README.md'),
classifiers=[
"Topic :: Utilities",
],
install_requires=[
'requests==1.1.0',
'lxml==3.1.0',
],
)