2015-12-15 20:47:32 +00:00
|
|
|
#!/usr/bin/env python3
|
2016-12-28 18:04:59 +00:00
|
|
|
"""Home Assistant setup script."""
|
2018-06-25 13:57:26 +00:00
|
|
|
from datetime import datetime as dt
|
2018-07-01 15:48:54 +00:00
|
|
|
from setuptools import setup, find_packages
|
2018-02-20 04:51:05 +00:00
|
|
|
|
2018-02-07 20:38:06 +00:00
|
|
|
import homeassistant.const as hass_const
|
2017-11-03 14:43:30 +00:00
|
|
|
|
|
|
|
PROJECT_NAME = 'Home Assistant'
|
|
|
|
PROJECT_PACKAGE_NAME = 'homeassistant'
|
|
|
|
PROJECT_LICENSE = 'Apache License 2.0'
|
|
|
|
PROJECT_AUTHOR = 'The Home Assistant Authors'
|
2018-06-25 13:57:26 +00:00
|
|
|
PROJECT_COPYRIGHT = ' 2013-{}, {}'.format(dt.now().year, PROJECT_AUTHOR)
|
2017-11-03 14:43:30 +00:00
|
|
|
PROJECT_URL = 'https://home-assistant.io/'
|
|
|
|
PROJECT_EMAIL = 'hello@home-assistant.io'
|
|
|
|
|
|
|
|
PROJECT_GITHUB_USERNAME = 'home-assistant'
|
|
|
|
PROJECT_GITHUB_REPOSITORY = 'home-assistant'
|
|
|
|
|
|
|
|
PYPI_URL = 'https://pypi.python.org/pypi/{}'.format(PROJECT_PACKAGE_NAME)
|
|
|
|
GITHUB_PATH = '{}/{}'.format(
|
|
|
|
PROJECT_GITHUB_USERNAME, PROJECT_GITHUB_REPOSITORY)
|
|
|
|
GITHUB_URL = 'https://github.com/{}'.format(GITHUB_PATH)
|
|
|
|
|
2018-02-07 20:38:06 +00:00
|
|
|
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, hass_const.__version__)
|
2018-06-25 13:57:26 +00:00
|
|
|
PROJECT_URLS = {
|
|
|
|
'Bug Reports': '{}/issues'.format(GITHUB_URL),
|
|
|
|
'Dev Docs': 'https://developers.home-assistant.io/',
|
|
|
|
'Discord': 'https://discordapp.com/invite/c5DvZ4e',
|
|
|
|
'Forum': 'https://community.home-assistant.io/',
|
|
|
|
}
|
2015-08-29 22:59:05 +00:00
|
|
|
|
2018-07-01 15:48:54 +00:00
|
|
|
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
|
|
|
|
|
2015-09-01 08:56:13 +00:00
|
|
|
REQUIRES = [
|
2019-01-16 22:23:46 +00:00
|
|
|
'aiohttp==3.5.4',
|
2019-02-27 13:07:51 +00:00
|
|
|
'astral==1.10.1',
|
2018-10-21 12:13:30 +00:00
|
|
|
'async_timeout==3.0.1',
|
2019-04-23 17:14:02 +00:00
|
|
|
'attrs==19.1.0',
|
2019-07-01 00:23:47 +00:00
|
|
|
'bcrypt==3.1.7',
|
2019-06-29 12:34:27 +00:00
|
|
|
'certifi>=2019.6.16',
|
2019-07-01 00:23:27 +00:00
|
|
|
'importlib-metadata==0.18',
|
2019-06-29 13:47:22 +00:00
|
|
|
'jinja2>=2.10.1',
|
2019-04-05 19:22:24 +00:00
|
|
|
'PyJWT==1.7.1',
|
2018-08-14 20:02:01 +00:00
|
|
|
# PyJWT has loose dependency. We want the latest one.
|
2019-06-30 05:21:35 +00:00
|
|
|
'cryptography==2.7',
|
2018-05-19 08:04:00 +00:00
|
|
|
'pip>=8.0.3',
|
2019-04-13 09:29:44 +00:00
|
|
|
'python-slugify==3.0.2',
|
2019-04-10 13:18:30 +00:00
|
|
|
'pytz>=2019.01',
|
2019-06-29 12:34:56 +00:00
|
|
|
'pyyaml==5.1.1',
|
2019-05-18 01:41:22 +00:00
|
|
|
'requests==2.22.0',
|
2019-07-16 09:16:43 +00:00
|
|
|
'ruamel.yaml==0.15.99',
|
2018-08-05 00:46:14 +00:00
|
|
|
'voluptuous==0.11.5',
|
2019-02-18 10:18:40 +00:00
|
|
|
'voluptuous-serialize==2.1.0',
|
2015-09-01 08:56:13 +00:00
|
|
|
]
|
2015-08-30 02:19:52 +00:00
|
|
|
|
2018-03-12 19:26:51 +00:00
|
|
|
MIN_PY_VERSION = '.'.join(map(str, hass_const.REQUIRED_PYTHON_VER))
|
2018-02-07 20:38:06 +00:00
|
|
|
|
2015-08-29 22:59:05 +00:00
|
|
|
setup(
|
2016-09-05 10:31:48 +00:00
|
|
|
name=PROJECT_PACKAGE_NAME,
|
2018-02-07 20:38:06 +00:00
|
|
|
version=hass_const.__version__,
|
2016-09-05 10:31:48 +00:00
|
|
|
url=PROJECT_URL,
|
2015-08-30 02:19:52 +00:00
|
|
|
download_url=DOWNLOAD_URL,
|
2018-06-25 13:57:26 +00:00
|
|
|
project_urls=PROJECT_URLS,
|
2016-09-05 10:31:48 +00:00
|
|
|
author=PROJECT_AUTHOR,
|
|
|
|
author_email=PROJECT_EMAIL,
|
2018-07-01 15:48:54 +00:00
|
|
|
packages=PACKAGES,
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2015-08-30 02:19:52 +00:00
|
|
|
install_requires=REQUIRES,
|
2018-02-07 20:38:06 +00:00
|
|
|
python_requires='>={}'.format(MIN_PY_VERSION),
|
2015-12-28 00:15:39 +00:00
|
|
|
test_suite='tests',
|
2018-07-01 15:48:54 +00:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
|
|
|
'hass = homeassistant.__main__:main'
|
|
|
|
]
|
|
|
|
},
|
2015-08-29 22:59:05 +00:00
|
|
|
)
|