Skip to content

Commit

Permalink
Bump pysuezV2 to 0.2.2 (home-assistant#129205)
Browse files Browse the repository at this point in the history
Co-authored-by: Joostlek <[email protected]>
  • Loading branch information
jb101010-2 and joostlek authored Oct 26, 2024
1 parent 275bbc8 commit 65ee4e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/suez_water/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/suez_water",
"iot_class": "cloud_polling",
"loggers": ["pysuez", "regex"],
"requirements": ["pysuezV2==0.2.1"]
"requirements": ["pysuezV2==0.2.2"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ pysqueezebox==0.10.0
pystiebeleltron==0.0.1.dev2

# homeassistant.components.suez_water
pysuezV2==0.2.1
pysuezV2==0.2.2

# homeassistant.components.switchbee
pyswitchbee==1.8.3
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ pyspeex-noise==1.0.2
pysqueezebox==0.10.0

# homeassistant.components.suez_water
pysuezV2==0.2.1
pysuezV2==0.2.2

# homeassistant.components.switchbee
pyswitchbee==1.8.3
Expand Down
22 changes: 1 addition & 21 deletions script/hassfest/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
PIP_REGEX = re.compile(r"^(--.+\s)?([-_\.\w\d]+.*(?:==|>=|<=|~=|!=|<|>|===)?.*$)")
PIP_VERSION_RANGE_SEPARATOR = re.compile(r"^(==|>=|<=|~=|!=|<|>|===)?(.*)$")

IGNORE_STANDARD_LIBRARY_VIOLATIONS = {
# Integrations which have standard library requirements.
"suez_water",
}


def validate(integrations: dict[str, Integration], config: Config) -> None:
"""Handle requirements for integrations."""
Expand Down Expand Up @@ -143,29 +138,14 @@ def validate_requirements(integration: Integration) -> None:
if req in sys.stdlib_module_names:
standard_library_violations.add(req)

if (
standard_library_violations
and integration.domain not in IGNORE_STANDARD_LIBRARY_VIOLATIONS
):
if standard_library_violations:
integration.add_error(
"requirements",
(
f"Package {req} has dependencies {standard_library_violations} which "
"are not compatible with the Python standard library"
),
)
elif (
not standard_library_violations
and integration.domain in IGNORE_STANDARD_LIBRARY_VIOLATIONS
):
integration.add_error(
"requirements",
(
f"Integration {integration.domain} no longer has requirements which are"
" incompatible with the Python standard library, remove it from "
"IGNORE_STANDARD_LIBRARY_VIOLATIONS"
),
)


@cache
Expand Down

0 comments on commit 65ee4e1

Please sign in to comment.