-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·37 lines (30 loc) · 1.01 KB
/
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
import os
import re
from setuptools import find_packages, setup
def read_version():
regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'")
init_py = os.path.join(os.path.dirname(__file__),
'wechatapp', '__init__.py')
with open(init_py) as f:
for line in f:
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
msg = 'Cannot find version in wechatapp/__init__.py'
raise RuntimeError(msg)
install_requires = ['aiohttp',
'aiopg[sa]',
'aiohttp-jinja2',
'trafaret-config']
setup(name='aiohttpdemo-polls',
version=read_version(),
description='Polls project example from aiohttp',
platforms=['POSIX'],
packages=find_packages(),
package_data={
'': ['templates/*.html', 'static/*.*']
},
include_package_data=True,
install_requires=install_requires,
zip_safe=False)