Fix hassfest requirements check (#115744)
* Fix hassfest requirements check * Add electrasmart to ignore listpull/115757/head
parent
ff1ac1a544
commit
fee1f2833d
|
@ -32,6 +32,7 @@ IGNORE_VIOLATIONS = {
|
||||||
# Still has standard library requirements.
|
# Still has standard library requirements.
|
||||||
"acmeda",
|
"acmeda",
|
||||||
"blink",
|
"blink",
|
||||||
|
"electrasmart",
|
||||||
"ezviz",
|
"ezviz",
|
||||||
"hdmi_cec",
|
"hdmi_cec",
|
||||||
"juicenet",
|
"juicenet",
|
||||||
|
@ -126,7 +127,7 @@ def validate_requirements(integration: Integration) -> None:
|
||||||
f"Failed to normalize package name from requirement {req}",
|
f"Failed to normalize package name from requirement {req}",
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
if (package == ign for ign in IGNORE_PACKAGES):
|
if package in IGNORE_PACKAGES:
|
||||||
continue
|
continue
|
||||||
integration_requirements.add(req)
|
integration_requirements.add(req)
|
||||||
integration_packages.add(package)
|
integration_packages.add(package)
|
||||||
|
@ -150,7 +151,7 @@ def validate_requirements(integration: Integration) -> None:
|
||||||
|
|
||||||
# Check for requirements incompatible with standard library.
|
# Check for requirements incompatible with standard library.
|
||||||
for req in all_integration_requirements:
|
for req in all_integration_requirements:
|
||||||
if req in sys.stlib_module_names:
|
if req in sys.stdlib_module_names:
|
||||||
integration.add_error(
|
integration.add_error(
|
||||||
"requirements",
|
"requirements",
|
||||||
f"Package {req} is not compatible with the Python standard library",
|
f"Package {req} is not compatible with the Python standard library",
|
||||||
|
|
Loading…
Reference in New Issue