mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Generate requirements per supported architecture (#115708)
* Generate requirements per supported architecture * Don't store wheels requirements in the repo * Dry run * Set Python version * Install base packages * Fix * Fix * Fix * Fix typo Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Genarate requirements_all_pytest.txt * Fix hassfest * Reenable building wheels * Remove unneeded code * Address review comment * Fix lying comment * Add tests, address review comments * Deduplicate * Fix file name * Add comment --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -15,13 +15,13 @@ from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
|
||||
from tqdm import tqdm
|
||||
|
||||
import homeassistant.util.package as pkg_util
|
||||
from script.gen_requirements_all import COMMENT_REQUIREMENTS, normalize_package_name
|
||||
from script.gen_requirements_all import (
|
||||
EXCLUDED_REQUIREMENTS_ALL,
|
||||
normalize_package_name,
|
||||
)
|
||||
|
||||
from .model import Config, Integration
|
||||
|
||||
IGNORE_PACKAGES = {
|
||||
commented.lower().replace("_", "-") for commented in COMMENT_REQUIREMENTS
|
||||
}
|
||||
PACKAGE_REGEX = re.compile(
|
||||
r"^(?:--.+\s)?([-_,\.\w\d\[\]]+)(==|>=|<=|~=|!=|<|>|===)*(.*)$"
|
||||
)
|
||||
@@ -116,7 +116,7 @@ def validate_requirements(integration: Integration) -> None:
|
||||
f"Failed to normalize package name from requirement {req}",
|
||||
)
|
||||
return
|
||||
if package in IGNORE_PACKAGES:
|
||||
if package in EXCLUDED_REQUIREMENTS_ALL:
|
||||
continue
|
||||
integration_requirements.add(req)
|
||||
integration_packages.add(package)
|
||||
|
||||
Reference in New Issue
Block a user