diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index ebbe9686044..c6a52301044 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -1,3 +1,5 @@ +# Automatically generated by gen_requirements_all.py, do not edit + aiodiscover==1.5.1 aiohttp-fast-url-dispatcher==0.1.0 aiohttp-zlib-ng==0.1.1 diff --git a/requirements.txt b/requirements.txt index 1ca4643a747..f751354a4a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ +# Automatically generated by gen_requirements_all.py, do not edit + -c homeassistant/package_constraints.txt # Home Assistant Core diff --git a/requirements_all.txt b/requirements_all.txt index 7c821ee55a3..61ea011b1b3 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1,4 +1,6 @@ # Home Assistant Core, full dependency set +# Automatically generated by gen_requirements_all.py, do not edit + -r requirements.txt # homeassistant.components.aemet diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index cb202ed0466..2c442ed9796 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -182,6 +182,10 @@ get-mac==1000000000.0.0 charset-normalizer==3.2.0 """ +GENERATED_MESSAGE = ( + f"# Automatically generated by {Path(__file__).name}, do not edit\n\n" +) + IGNORE_PRE_COMMIT_HOOK_ID = ( "check-executables-have-shebangs", "check-json", @@ -354,6 +358,7 @@ def generate_requirements_list(reqs: dict[str, list[str]]) -> str: def requirements_output() -> str: """Generate output for requirements.""" output = [ + GENERATED_MESSAGE, "-c homeassistant/package_constraints.txt\n", "\n", "# Home Assistant Core\n", @@ -368,6 +373,7 @@ def requirements_all_output(reqs: dict[str, list[str]]) -> str: """Generate output for requirements_all.""" output = [ "# Home Assistant Core, full dependency set\n", + GENERATED_MESSAGE, "-r requirements.txt\n", ] output.append(generate_requirements_list(reqs)) @@ -379,8 +385,7 @@ def requirements_test_all_output(reqs: dict[str, list[str]]) -> str: """Generate output for test_requirements.""" output = [ "# Home Assistant tests, full dependency set\n", - f"# Automatically generated by {Path(__file__).name}, do not edit\n", - "\n", + GENERATED_MESSAGE, "-r requirements_test.txt\n", ] @@ -425,7 +430,8 @@ def requirements_pre_commit_output() -> str: def gather_constraints() -> str: """Construct output for constraint file.""" return ( - "\n".join( + GENERATED_MESSAGE + + "\n".join( sorted( { *core_requirements(),