forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move remaining keys to
setup.cfg
(home-assistant#65154)
* Move metadata keys * Move options * Delete setup.py * Remove unused constants * Remove deprecated test_suite key * Improve metadata * Only include homeassistant*, not script* * Add long_desc_content_type * Remove license file (auto-included by setuptools + wheels) * Add setup.py Pip 21.2 doesn't support editable installs without it.
- Loading branch information
Showing
3 changed files
with
21 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
include README.rst | ||
include LICENSE.md | ||
graft homeassistant | ||
recursive-exclude * *.py[co] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[metadata] | ||
name = homeassistant | ||
version = 2022.3.0.dev0 | ||
author = The Home Assistant Authors | ||
author_email = [email protected] | ||
license = Apache-2.0 | ||
license_file = LICENSE.md | ||
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 | ||
url = https://www.home-assistant.io/ | ||
project_urls = | ||
|
@@ -23,6 +26,9 @@ classifier = | |
Topic :: Home Automation | ||
|
||
[options] | ||
packages = find: | ||
zip_safe = False | ||
include_package_data = True | ||
python_requires = >=3.9.0 | ||
install_requires = | ||
aiohttp==3.8.1 | ||
|
@@ -51,6 +57,14 @@ 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
"""Home Assistant setup script.""" | ||
from datetime import datetime as dt | ||
""" | ||
Entry point for setuptools. Required for editable installs. | ||
TODO: Remove file after updating to pip 21.3 | ||
""" | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
PROJECT_NAME = "Home Assistant" | ||
PROJECT_PACKAGE_NAME = "homeassistant" | ||
PROJECT_LICENSE = "Apache License 2.0" | ||
PROJECT_AUTHOR = "The Home Assistant Authors" | ||
PROJECT_COPYRIGHT = f" 2013-{dt.now().year}, {PROJECT_AUTHOR}" | ||
PROJECT_EMAIL = "[email protected]" | ||
|
||
PACKAGES = find_packages(exclude=["tests", "tests.*"]) | ||
|
||
setup( | ||
name=PROJECT_PACKAGE_NAME, | ||
author=PROJECT_AUTHOR, | ||
author_email=PROJECT_EMAIL, | ||
packages=PACKAGES, | ||
include_package_data=True, | ||
zip_safe=False, | ||
test_suite="tests", | ||
entry_points={"console_scripts": ["hass = homeassistant.__main__:main"]}, | ||
) | ||
setup() |