-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
45 lines (36 loc) · 1006 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
38
39
40
41
42
43
44
45
import codecs
import os.path
import re
from setuptools import setup
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return codecs.open(fpath(fname), encoding='utf-8').read()
def grep(attrname, filename):
pattern = r"{0}\W*=\W*'([^']+)'".format(attrname)
file_text = read(fpath(filename))
strval, = re.findall(pattern, file_text)
return strval
setup(
name='venmo',
version=grep('__version__', 'venmo/__version__.py'),
description='Venmo CLI',
long_description=read(fpath('README.rst')),
url='http://github.com/zackhsi/venmo',
author='Zack Hsi',
author_email='[email protected]',
license='MIT',
packages=['venmo'],
install_requires=[
'requests>=2.9.1',
],
entry_points={
'console_scripts': [
'venmo = venmo.cli:main',
],
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
]
)