core/setup.py

53 lines
1.4 KiB
Python
Raw Normal View History

2015-12-15 20:47:32 +00:00
#!/usr/bin/env python3
2016-12-28 18:04:59 +00:00
"""Home Assistant setup script."""
import os
from setuptools import setup, find_packages
2016-09-05 10:31:48 +00:00
from homeassistant.const import (__version__, PROJECT_PACKAGE_NAME,
PROJECT_LICENSE, PROJECT_URL,
PROJECT_EMAIL, PROJECT_DESCRIPTION,
PROJECT_CLASSIFIERS, GITHUB_URL,
PROJECT_AUTHOR)
HERE = os.path.abspath(os.path.dirname(__file__))
2016-09-05 10:31:48 +00:00
DOWNLOAD_URL = ('{}/archive/'
'{}.zip'.format(GITHUB_URL, __version__))
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
2015-09-01 08:56:13 +00:00
REQUIRES = [
'requests>=2,<3',
'pyyaml>=3.11,<4',
2017-04-01 10:36:24 +00:00
'pytz>=2017.02',
'pip>=7.1.0',
2017-02-21 17:05:44 +00:00
'jinja2>=2.9.5',
'voluptuous==0.10.5',
'typing>=3,<4',
2017-04-14 22:18:39 +00:00
'aiohttp==2.0.7',
2017-03-13 20:01:25 +00:00
'async_timeout==1.2.0',
2017-04-16 01:32:06 +00:00
'chardet==3.0.2'
2015-09-01 08:56:13 +00:00
]
setup(
2016-09-05 10:31:48 +00:00
name=PROJECT_PACKAGE_NAME,
2015-09-09 02:47:05 +00:00
version=__version__,
2016-09-05 10:31:48 +00:00
license=PROJECT_LICENSE,
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
2016-09-05 10:31:48 +00:00
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
description=PROJECT_DESCRIPTION,
packages=PACKAGES,
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=REQUIRES,
2015-12-28 00:15:39 +00:00
test_suite='tests',
keywords=['home', 'automation'],
entry_points={
'console_scripts': [
'hass = homeassistant.__main__:main'
]
},
2016-09-05 10:31:48 +00:00
classifiers=PROJECT_CLASSIFIERS,
)