mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
49 lines
1.6 KiB
Python
Executable File
49 lines
1.6 KiB
Python
Executable File
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'
|
|
]
|
|
)
|