core/setup.py

77 lines
2.2 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."""
from datetime import datetime as dt
from setuptools import find_packages, setup
2018-02-20 04:51:05 +00:00
import homeassistant.const as hass_const
PROJECT_NAME = "Home Assistant"
PROJECT_PACKAGE_NAME = "homeassistant"
PROJECT_LICENSE = "Apache License 2.0"
PROJECT_AUTHOR = "The Home Assistant Authors"
2020-04-04 18:17:11 +00:00
PROJECT_COPYRIGHT = f" 2013-{dt.now().year}, {PROJECT_AUTHOR}"
PROJECT_URL = "https://www.home-assistant.io/"
PROJECT_EMAIL = "hello@home-assistant.io"
PROJECT_GITHUB_USERNAME = "home-assistant"
2020-03-09 19:46:52 +00:00
PROJECT_GITHUB_REPOSITORY = "core"
2020-04-04 18:17:11 +00: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}"
2020-04-04 18:17:11 +00:00
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{hass_const.__version__}.zip"
PROJECT_URLS = {
2020-04-04 18:17:11 +00:00
"Bug Reports": f"{GITHUB_URL}/issues",
"Dev Docs": "https://developers.home-assistant.io/",
"Discord": "https://discordapp.com/invite/c5DvZ4e",
"Forum": "https://community.home-assistant.io/",
}
PACKAGES = find_packages(exclude=["tests", "tests.*"])
2015-09-01 08:56:13 +00:00
REQUIRES = [
"aiohttp==3.7.4.post0",
2021-04-01 22:29:08 +00:00
"astral==2.2",
"async_timeout==3.0.1",
2021-03-08 21:49:54 +00:00
"attrs==20.3.0",
2021-02-24 15:43:09 +00:00
"awesomeversion==21.2.3",
"bcrypt==3.1.7",
"certifi>=2020.12.5",
"ciso8601==2.1.3",
"httpx==0.17.1",
2021-02-02 14:10:54 +00:00
"jinja2>=2.11.3",
"PyJWT==1.7.1",
# PyJWT has loose dependency. We want the latest one.
2021-02-18 20:30:54 +00:00
"cryptography==3.3.2",
2020-11-30 18:38:39 +00:00
"pip>=8.0.3,<20.3",
"python-slugify==4.0.1",
2021-02-02 14:18:58 +00:00
"pytz>=2021.1",
"pyyaml==5.4.1",
2021-01-09 19:02:50 +00:00
"requests==2.25.1",
"ruamel.yaml==0.15.100",
"voluptuous==0.12.1",
"voluptuous-serialize==2.4.0",
"yarl==1.6.3",
2015-09-01 08:56:13 +00:00
]
MIN_PY_VERSION = ".".join(map(str, hass_const.REQUIRED_PYTHON_VER))
setup(
2016-09-05 10:31:48 +00:00
name=PROJECT_PACKAGE_NAME,
version=hass_const.__version__,
2016-09-05 10:31:48 +00:00
url=PROJECT_URL,
download_url=DOWNLOAD_URL,
project_urls=PROJECT_URLS,
2016-09-05 10:31:48 +00:00
author=PROJECT_AUTHOR,
author_email=PROJECT_EMAIL,
packages=PACKAGES,
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
2020-04-04 18:17:11 +00:00
python_requires=f">={MIN_PY_VERSION}",
test_suite="tests",
entry_points={"console_scripts": ["hass = homeassistant.__main__:main"]},
)