Created setup.py for standard installs.
This commit is contained in:
parent
4b31a22a1c
commit
3839c3d0ef
5 changed files with 52 additions and 1 deletions
0
homeassistant/components/frontend/www_static/__init__.py
Normal file
0
homeassistant/components/frontend/www_static/__init__.py
Normal file
|
@ -1,4 +1,7 @@
|
||||||
""" Constants used by Home Assistant components. """
|
""" Constants used by Home Assistant components. """
|
||||||
|
|
||||||
|
__version__ = "0.7.0"
|
||||||
|
|
||||||
# Can be used to specify a catch all when registering state or event listeners.
|
# Can be used to specify a catch all when registering state or event listeners.
|
||||||
MATCH_ALL = '*'
|
MATCH_ALL = '*'
|
||||||
|
|
||||||
|
|
2
pylintrc
2
pylintrc
|
@ -1,5 +1,5 @@
|
||||||
[MASTER]
|
[MASTER]
|
||||||
ignore=external
|
ignore=external,setup.py
|
||||||
reports=no
|
reports=no
|
||||||
|
|
||||||
# Reasons disabled:
|
# Reasons disabled:
|
||||||
|
|
48
setup.py
Executable file
48
setup.py
Executable file
|
@ -0,0 +1,48 @@
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
PACKAGE_NAME = 'homeassistant'
|
||||||
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
with open(os.path.join(HERE, PACKAGE_NAME, 'const.py')) as fp:
|
||||||
|
VERSION = re.search("__version__ = ['\"]([^']+)['\"]\n", fp.read()).group(1)
|
||||||
|
|
||||||
|
PACKAGES = find_packages() + \
|
||||||
|
['homeassistant.external', 'homeassistant.external.noop',
|
||||||
|
'homeassistant.external.nzbclients', 'homeassistant.external.vera']
|
||||||
|
|
||||||
|
PACKAGE_DATA = \
|
||||||
|
{'homeassistant.components.frontend': ['index.html.template'],
|
||||||
|
'homeassistant.components.frontend.www_static': ['*.*'],
|
||||||
|
'homeassistant.components.frontend.www_static.images': ['*.*']}
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name=PACKAGE_NAME,
|
||||||
|
version=VERSION,
|
||||||
|
license='MIT License',
|
||||||
|
url='https://home-assistant.io/',
|
||||||
|
download_url='https://github.com/automicus/pyisy/tarball/0.7.0',
|
||||||
|
author='Paulus Schoutsen',
|
||||||
|
author_email='paulus@paulusschoutsen.nl',
|
||||||
|
description='Open-source home automation platform running on Python 3.',
|
||||||
|
packages=PACKAGES,
|
||||||
|
include_package_data=True,
|
||||||
|
package_data=PACKAGE_DATA,
|
||||||
|
zip_safe=False,
|
||||||
|
platforms='any',
|
||||||
|
install_requires=['requests==2.7.0', 'pyyaml==3.11', 'pytz==2015.4',
|
||||||
|
'netdisco==0.3', 'astral==0.8.1'],
|
||||||
|
keywords=['home', 'automation'],
|
||||||
|
entry_points={
|
||||||
|
'console_scripts': [
|
||||||
|
'hass = homeassistant.__main__:main'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
classifiers=[
|
||||||
|
'Intended Audience :: End Users/Desktop',
|
||||||
|
'License :: OSI Approved :: MIT License',
|
||||||
|
'Operating System :: OS Independent',
|
||||||
|
'Programming Language :: Python :: 3.4',
|
||||||
|
'Topic :: Home Automation'
|
||||||
|
]
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue