-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (39 loc) · 1.1 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
38
39
40
41
42
43
44
45
import os
import sys
import datetime as dt
from setuptools import setup
MIN_PYTHON = (3, 6)
if sys.version_info < MIN_PYTHON:
sys.stderr.write("Python {}.{} or later is required\n".format(*MIN_PYTHON))
sys.exit(1)
def get_requirements(directory=None):
filename = os.path.join(
os.path.dirname(__file__),
os.path.join(directory, 'requirements.txt') \
if directory else 'requirements.txt'
)
with open(filename) as fd:
return [l.strip() for l in fd.readlines()]
setup(
name='rc-car',
version='0.1',
description='RC-car server',
author='Alexander Verbitskiy',
author_email='habibutsu@gmail.com',
packages=['rc_car'],
package_data={
'rc_car': [
'../requirements.txt',
'handlers/*.py',
'components/*.py',
'frontend/elm-package.json',
'frontend/package.json',
'frontend/app/*.*',
'frontend/html/*.*',
'frontend/img/*.*',
'frontend/js/*.*'
],
},
test_suite='test',
install_requires=get_requirements(),
)