-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
48 lines (34 loc) · 1021 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
46
47
48
from setuptools import find_packages, setup
from pip.req import parse_requirements
def get_requirements(filename):
try:
from pip.download import PipSession
session = PipSession()
except ImportError:
session = None
reqs = parse_requirements(filename, session=session)
return [str(r.req) for r in reqs]
def get_install_requires():
return get_requirements('requirements.txt')
def get_test_requires():
return get_requirements('requirements_dev.txt')
setup_args = dict(
name='voting-machine',
version='0.1.0',
packages=find_packages(),
namespace_packages=['vote'],
include_package_data=True,
install_requires=get_install_requires(),
tests_require=get_test_requires(),
entry_points={
'console_scripts': [
'voting-web=vote.web:main',
]
},
package_data={
'static': 'vote/web/static/*',
'templates': 'vote/web/templates/*',
},
)
if __name__ == '__main__':
setup(**setup_args)