-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·66 lines (58 loc) · 1.7 KB
/
setup.py
File metadata and controls
executable file
·66 lines (58 loc) · 1.7 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python3
from setuptools import setup
import re
"""
Try to load the locals of pygame.
If that works, dont require pygame. This
is a simple (but effective) fix for Raspbian
who has the pygame package installed by default.
"""
install_requires = [
"homeassistant>0.77",
"icon-font-to-png==0.3.6",
"Pillow==3.4.2",
"requests>=2.20.0",
"tinycss==0.4",
"pgu@https://github.com/parogers/pgu/archive/67558479fe9050ba567a39fc9faa32ce74eba786.tar.gz", # nopep8
"pygame>=1.9.2b8",
"moosegesture>=1.0.2",
"websocket-client>=0.54.0",
"imagesize >= 1.1.0"
]
version = re.search(
'^__version__\s*=\s*"(.*)"',
open('hud/hud.py').read(),
re.M
).group(1)
with open("README.md", "rb") as f:
long_descr = f.read().decode("utf-8")
setup(
name="hud",
version=version,
packages=["hud"],
description="Home Assistant UI Display",
long_description=long_descr,
author="Stijn Van Campenhout",
author_email="subutux@gmail.com",
licence="MIT",
package_data={'hud': [
'pgu.theme/style.ini',
'pgu.theme/*.png',
'pgu.theme/*.ttf',
'pgu.theme/mdi/materialdesignicons.css',
'pgu.theme/mdi/materialdesignicons-webfont.ttf'
]
},
entry_points={
"console_scripts": ['hud = hud.hud:main']
},
data_files=[
('/etc/default', ['scripts/hud.opts']),
('/etc/systemd/system', ['scripts/hud.service']),
('/usr/local/sbin', ['scripts/hud.init'])
],
install_requires=install_requires,
url="https://github.com/subutux/HUD",
download_url="https://github.com/subutux/HUD/tarball/{}".format(version),
keywords=["pygame", "rpi", "ui", "touchscreen", "homeassistant"]
)