diff --git a/pyproject.toml b/pyproject.toml index 203c3ef1686c54..e0db5324d02e83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,46 @@ [build-system] -requires = ["setuptools~=60.5", "wheel~=0.37.1"] +requires = ["setuptools~=62.3", "wheel~=0.37.1"] build-backend = "setuptools.build_meta" +[project] +name = "homeassistant" +license = {text = "Apache-2.0"} +description = "Open-source home automation platform running on Python 3." +readme = "README.rst" +authors = [ + {name = "The Home Assistant Authors", email = "hello@home-assistant.io"} +] +keywords = ["home", "automation"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: End Users/Desktop", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Topic :: Home Automation", +] +dynamic = ["version", "requires-python", "dependencies"] + +[project.urls] +"Source Code" = "https://github.com/home-assistant/core" +"Bug Reports" = "https://github.com/home-assistant/core/issues" +"Docs: Dev" = "https://developers.home-assistant.io/" +"Discord" = "https://www.home-assistant.io/join-chat/" +"Forum" = "https://community.home-assistant.io/" + +[project.scripts] +hass = "homeassistant.__main__:main" + +[tool.setuptools] +platforms = ["any"] +zip-safe = false +include-package-data = true + +[tool.setuptools.packages.find] +include = ["homeassistant*"] + [tool.black] target-version = ["py39", "py310"] exclude = 'generated' diff --git a/setup.cfg b/setup.cfg index e86882936837ee..825a4407012eea 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,34 +1,8 @@ [metadata] -name = homeassistant -version = 2022.6.0.dev0 -author = The Home Assistant Authors -author_email = hello@home-assistant.io -license = Apache-2.0 -platforms = any -description = Open-source home automation platform running on Python 3. -long_description = file: README.rst -long_description_content_type = text/x-rst -keywords = home, automation +version = 2022.6.0.dev0 url = https://www.home-assistant.io/ -project_urls = - Source Code = https://github.com/home-assistant/core - Bug Reports = https://github.com/home-assistant/core/issues - Docs: Dev = https://developers.home-assistant.io/ - Discord = https://discordapp.com/invite/c5DvZ4e - Forum = https://community.home-assistant.io/ -classifier = - Development Status :: 4 - Beta - Intended Audience :: End Users/Desktop - Intended Audience :: Developers - License :: OSI Approved :: Apache Software License - Operating System :: OS Independent - Programming Language :: Python :: 3.9 - Topic :: Home Automation [options] -packages = find: -zip_safe = False -include_package_data = True python_requires = >=3.9.0 install_requires = aiohttp==3.8.1 @@ -57,14 +31,6 @@ install_requires = voluptuous-serialize==2.5.0 yarl==1.7.2 -[options.packages.find] -include = - homeassistant* - -[options.entry_points] -console_scripts = - hass = homeassistant.__main__:main - [flake8] exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build max-complexity = 25