forked from TomFaulkner/SenseMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (41 loc) · 1.45 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
47
48
49
50
51
52
53
#!/usr/bin/env python
from __future__ import print_function
import sys
from setuptools import setup
if sys.version_info < (3, 6):
error = """
SenseMe supports Python 3.6 and above. Python 2.7 is not supported and will not work.
Python {py} detected.
Please install using pip3 on Python3.6 or above.
""".format(py='.'.join([str(v) for v in sys.version_info[:3]]))
print(error, file=sys.stderr)
sys.exit(1)
long_description = """HaikuHome SenseMe API for fans and lights.
A simple library to automate control and monitoring of network connected
HaikuHome SenseMe devices.
Python 3.6 or above is required.
"""
with open('README.md') as readme:
long_description = readme.read()
setup(
name="SenseMe",
version="0.1.6",
description="HaikuHome SenseMe API for fans and lights",
long_description=long_description,
long_description_content_type="text/markdown",
author="Tom Faulkner",
author_email="[email protected]",
url="https://github.com/TomFaulkner/SenseMe",
packages=["senseme", "senseme.lib", "bin"],
license="GPL3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Home Automation"
],
keywords="HaikuHome SenseMe fan light home automation bigassfans",
python_requires=">=3.6",
scripts=['bin/senseme_cli']
)