2015-12-15 20:47:32 +00:00
|
|
|
#!/usr/bin/env python3
|
2016-12-28 20:04:59 +02:00
|
|
|
"""Home Assistant setup script."""
|
2018-06-25 15:57:26 +02:00
|
|
|
from datetime import datetime as dt
|
2019-12-09 16:30:16 +01:00
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
2018-02-19 20:51:05 -08:00
|
|
|
|
2018-02-07 20:38:06 +00:00
|
|
|
import homeassistant.const as hass_const
|
2017-11-03 15:43:30 +01:00
|
|
|
|
2019-08-01 18:30:49 +03:00
|
|
|
PROJECT_NAME = "Home Assistant"
|
|
|
|
PROJECT_PACKAGE_NAME = "homeassistant"
|
|
|
|
PROJECT_LICENSE = "Apache License 2.0"
|
|
|
|
PROJECT_AUTHOR = "The Home Assistant Authors"
|
2020-04-04 20:17:11 +02:00
|
|
|
PROJECT_COPYRIGHT = f" 2013-{dt.now().year}, {PROJECT_AUTHOR}"
|
2020-02-22 01:10:02 +01:00
|
|
|
PROJECT_URL = "https://www.home-assistant.io/"
|
2019-08-01 18:30:49 +03:00
|
|
|
PROJECT_EMAIL = "hello@home-assistant.io"
|
2017-11-03 15:43:30 +01:00
|
|
|
|
2019-08-01 18:30:49 +03:00
|
|
|
PROJECT_GITHUB_USERNAME = "home-assistant"
|
2020-03-09 13:46:52 -06:00
|
|
|
PROJECT_GITHUB_REPOSITORY = "core"
|
2017-11-03 15:43:30 +01:00
|
|
|
|
2020-04-04 20:17:11 +02:00
|
|
|
PYPI_URL = f"https://pypi.python.org/pypi/{PROJECT_PACKAGE_NAME}"
|
|
|
|
GITHUB_PATH = f"{PROJECT_GITHUB_USERNAME}/{PROJECT_GITHUB_REPOSITORY}"
|
|
|
|
GITHUB_URL = f"https://github.com/{GITHUB_PATH}"
|
2017-11-03 15:43:30 +01:00
|
|
|
|
2020-04-04 20:17:11 +02:00
|
|
|
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{hass_const.__version__}.zip"
|
2018-06-25 15:57:26 +02:00
|
|
|
PROJECT_URLS = {
|
2020-04-04 20:17:11 +02:00
|
|
|
"Bug Reports": f"{GITHUB_URL}/issues",
|
2019-08-01 18:30:49 +03:00
|
|
|
"Dev Docs": "https://developers.home-assistant.io/",
|
|
|
|
"Discord": "https://discordapp.com/invite/c5DvZ4e",
|
|
|
|
"Forum": "https://community.home-assistant.io/",
|
2018-06-25 15:57:26 +02:00
|
|
|
}
|
2015-08-29 18:59:05 -04:00
|
|
|
|
2019-08-01 18:30:49 +03:00
|
|
|
PACKAGES = find_packages(exclude=["tests", "tests.*"])
|
2018-07-01 17:48:54 +02:00
|
|
|
|
2015-09-01 01:56:13 -07:00
|
|
|
REQUIRES = [
|
2019-10-23 20:37:37 +02:00
|
|
|
"aiohttp==3.6.1",
|
2019-08-01 18:30:49 +03:00
|
|
|
"astral==1.10.1",
|
|
|
|
"async_timeout==3.0.1",
|
2019-11-01 13:10:53 +01:00
|
|
|
"attrs==19.3.0",
|
2019-08-01 18:30:49 +03:00
|
|
|
"bcrypt==3.1.7",
|
2020-04-12 12:52:04 +02:00
|
|
|
"certifi>=2020.4.5.1",
|
2020-02-24 16:33:10 +00:00
|
|
|
"ciso8601==2.1.3",
|
2020-04-12 12:53:14 +02:00
|
|
|
"importlib-metadata==1.6.0",
|
2020-03-26 16:12:12 +01:00
|
|
|
"jinja2>=2.11.1",
|
2019-08-01 18:30:49 +03:00
|
|
|
"PyJWT==1.7.1",
|
2018-08-14 22:02:01 +02:00
|
|
|
# PyJWT has loose dependency. We want the latest one.
|
2020-05-04 10:38:26 +02:00
|
|
|
"cryptography==2.9.2",
|
2019-08-01 18:30:49 +03:00
|
|
|
"pip>=8.0.3",
|
2019-10-24 23:12:41 +02:00
|
|
|
"python-slugify==4.0.0",
|
2020-05-04 15:16:37 +02:00
|
|
|
"pytz>=2020.1",
|
2020-03-26 16:14:07 +01:00
|
|
|
"pyyaml==5.3.1",
|
2020-02-20 11:41:13 +01:00
|
|
|
"requests==2.23.0",
|
2019-08-21 18:13:40 +02:00
|
|
|
"ruamel.yaml==0.15.100",
|
2019-08-16 21:31:28 +02:00
|
|
|
"voluptuous==0.11.7",
|
2019-10-02 22:14:52 +02:00
|
|
|
"voluptuous-serialize==2.3.0",
|
2015-09-01 01:56:13 -07:00
|
|
|
]
|
2015-08-29 22:19:52 -04:00
|
|
|
|
2019-08-01 18:30:49 +03:00
|
|
|
MIN_PY_VERSION = ".".join(map(str, hass_const.REQUIRED_PYTHON_VER))
|
2018-02-07 20:38:06 +00:00
|
|
|
|
2015-08-29 18:59:05 -04:00
|
|
|
setup(
|
2016-09-05 03:31:48 -07:00
|
|
|
name=PROJECT_PACKAGE_NAME,
|
2018-02-07 20:38:06 +00:00
|
|
|
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,
|
2018-06-25 15:57:26 +02:00
|
|
|
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,
|
2020-04-04 20:17:11 +02:00
|
|
|
python_requires=f">={MIN_PY_VERSION}",
|
2019-08-01 18:30:49 +03:00
|
|
|
test_suite="tests",
|
|
|
|
entry_points={"console_scripts": ["hass = homeassistant.__main__:main"]},
|
2015-08-29 18:59:05 -04:00
|
|
|
)
|