Reference constraint files from requirement files (#37751)
* Reference constraint files from requirement files * Update azure-pipelines-wheels.yml Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
parent
0bf772b68b
commit
0bcc8624b7
8 changed files with 39 additions and 56 deletions
|
@ -224,9 +224,11 @@ def generate_requirements_list(reqs):
|
|||
|
||||
def requirements_output(reqs):
|
||||
"""Generate output for requirements."""
|
||||
output = []
|
||||
output.append("# Home Assistant Core")
|
||||
output.append("\n")
|
||||
output = [
|
||||
"-c homeassistant/package_constraints.txt\n",
|
||||
"\n",
|
||||
"# Home Assistant Core\n",
|
||||
]
|
||||
output.append("\n".join(core_requirements()))
|
||||
output.append("\n")
|
||||
|
||||
|
@ -235,11 +237,11 @@ def requirements_output(reqs):
|
|||
|
||||
def requirements_all_output(reqs):
|
||||
"""Generate output for requirements_all."""
|
||||
output = []
|
||||
output.append("# Home Assistant Core, full dependency set\n")
|
||||
output.append("\n")
|
||||
output.append("\n".join(core_requirements()))
|
||||
output.append("\n")
|
||||
output = [
|
||||
"# Home Assistant Core, full dependency set\n"
|
||||
"-c homeassistant/package_constraints.txt\n",
|
||||
"-r requirements.txt\n",
|
||||
]
|
||||
output.append(generate_requirements_list(reqs))
|
||||
|
||||
return "".join(output)
|
||||
|
@ -247,11 +249,12 @@ def requirements_all_output(reqs):
|
|||
|
||||
def requirements_test_output(reqs):
|
||||
"""Generate output for test_requirements."""
|
||||
output = []
|
||||
output.append("# Home Assistant tests, full dependency set\n")
|
||||
output.append(
|
||||
f"# Automatically generated by {Path(__file__).name}, do not edit\n\n"
|
||||
)
|
||||
output = [
|
||||
"# Home Assistant tests, full dependency set\n",
|
||||
f"# Automatically generated by {Path(__file__).name}, do not edit\n",
|
||||
"\n",
|
||||
"-c homeassistant/package_constraints.txt\n",
|
||||
]
|
||||
output.append("-r requirements_test.txt\n")
|
||||
|
||||
filtered = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue