-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
46 lines (40 loc) · 1.21 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
46
#!/usr/bin/env python3
"""This is the setup file for package creation and installation."""
import setuptools
import os
import sys
import pkg_resources
# needed packages
REQUIRES = [
'ephem',
'RPi.GPIO >= 0.6',
'imapclient',
'paho-mqtt >= 2',
]
def run_setup(args):
"""install and run post-install commands."""
# install
setuptools.setup(
name='blindctrl',
version="0.1",
description='blind-control',
long_description='Automatically control motorized blinds depending on sun radiation and temperature using a Somfy RTS remote control and a Raspberry Pi.',
author='Roman Morawek',
author_email='[email protected]',
packages=setuptools.find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
script_name = 'setup.py',
script_args = args,
entry_points={
'console_scripts': [
'zamg=blindctrl.zamg.zamg:main',
'astrotime=blindctrl.sunpower.astrotime:main',
'remotectrl=blindctrl.remote.remotectrl:main',
],
},
)
# check for execution
if __name__ == "__main__":
run_setup(sys.argv[1:])