Skip to content

Commit

Permalink
Use new project metadata format [PEP 621] (home-assistant#72422)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored May 25, 2022
1 parent 38ad1ef commit d000868
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 36 deletions.
41 changes: 40 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
36 changes: 1 addition & 35 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d000868

Please sign in to comment.