Files
homeassistant-core/setup.py
T

76 lines
2.2 KiB
Python
Raw Normal View History

2015-12-15 20:47:32 +00:00
#!/usr/bin/env python3
2016-12-28 20:04:59 +02:00
"""Home Assistant setup script."""
from datetime import datetime as dt
2018-07-01 17:48:54 +02:00
from setuptools import setup, find_packages
2018-02-19 20:51:05 -08:00
import homeassistant.const as hass_const
2017-11-03 15:43:30 +01:00
PROJECT_NAME = 'Home Assistant'
PROJECT_PACKAGE_NAME = 'homeassistant'
PROJECT_LICENSE = 'Apache License 2.0'
PROJECT_AUTHOR = 'The Home Assistant Authors'
PROJECT_COPYRIGHT = ' 2013-{}, {}'.format(dt.now().year, PROJECT_AUTHOR)
2017-11-03 15:43:30 +01: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)
DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, hass_const.__version__)
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 18:59:05 -04:00
2018-07-01 17:48:54 +02:00
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
2015-09-01 01:56:13 -07:00
REQUIRES = [
2018-09-10 01:39:51 -07:00
'aiohttp==3.4.4',
2018-11-01 11:26:33 +01:00
'astral==1.7.1',
2018-10-21 14:13:30 +02:00
'async_timeout==3.0.1',
2018-09-02 19:01:43 +02:00
'attrs==18.2.0',
2018-08-26 16:50:31 -04:00
'bcrypt==3.1.4',
2018-05-19 10:04:00 +02:00
'certifi>=2018.04.16',
'jinja2>=2.10',
2018-08-14 21:14:12 +02:00
'PyJWT==1.6.4',
2018-08-14 22:02:01 +02:00
# PyJWT has loose dependency. We want the latest one.
'cryptography==2.3.1',
2018-05-19 10:04:00 +02:00
'pip>=8.0.3',
'pytz>=2018.04',
2018-07-07 17:48:02 +03:00
'pyyaml>=3.13,<4',
2018-11-21 19:58:56 +01:00
'requests==2.20.1',
2018-11-17 13:20:17 +01:00
'ruamel.yaml==0.15.78',
2018-08-05 02:46:14 +02:00
'voluptuous==0.11.5',
'voluptuous-serialize==2.0.0',
2015-09-01 01:56:13 -07:00
]
2015-08-29 22:19:52 -04:00
2018-03-12 20:26:51 +01:00
MIN_PY_VERSION = '.'.join(map(str, hass_const.REQUIRED_PYTHON_VER))
2015-08-29 18:59:05 -04:00
setup(
2016-09-05 03:31:48 -07:00
name=PROJECT_PACKAGE_NAME,
version=hass_const.__version__,
2016-09-05 03:31:48 -07:00
url=PROJECT_URL,
2015-08-29 22:19:52 -04:00
download_url=DOWNLOAD_URL,
project_urls=PROJECT_URLS,
2016-09-05 03:31:48 -07:00
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
2018-07-01 17:48:54 +02:00
packages=PACKAGES,
include_package_data=True,
zip_safe=False,
2015-08-29 22:19:52 -04:00
install_requires=REQUIRES,
python_requires='>={}'.format(MIN_PY_VERSION),
2015-12-27 16:15:39 -08:00
test_suite='tests',
2018-07-01 17:48:54 +02:00
entry_points={
'console_scripts': [
'hass = homeassistant.__main__:main'
]
},
2015-08-29 18:59:05 -04:00
)