forked from emontnemery/mqttdevices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (59 loc) · 1.83 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import codecs
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version_tuple = (1, 0, 1)
version = version_string = __version__ = "%d.%d.%d" % version_tuple
__author__ = "tradeface"
if len(sys.argv) <= 1:
print(
"""
Suggested setup.py parameters:
* build
* install
* sdist --formats=zip
* sdist # NOTE requires tar/gzip commands
PyPi:
twine upload dist/*
"""
)
here = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(here, "README.md")
if os.path.exists(readme_filename):
with codecs.open(readme_filename, encoding="utf-8") as f:
long_description = f.read()
else:
long_description = None
def parse_requirements(filename):
"""Load requirements from a pip requirements file."""
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
setup(
name="gismocaster",
author=__author__,
version=__version__,
description="Django webinterface for MQTT devices configuration.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/TradeFace/gismocaster/",
author_email="",
license="Unlicense",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Home Automation",
"License :: Public Domain",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Topic :: Home Automation",
],
keywords="home automation, mqtt, auto discovery",
packages=["gismocaster"],
platforms="any",
install_requires=parse_requirements("requirements.txt"),
)