Skip to content

Commit

Permalink
use single string
Browse files Browse the repository at this point in the history
  • Loading branch information
nvaytet committed Nov 23, 2023
1 parent 18fc914 commit bd2151e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions template/requirements/make_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,18 @@ def as_nightly(repo: str) -> str:
all_dependencies = [f"-r {dep}" for dep in glob.glob("*.in")]
path = Path("all.in")
with path.open("w") as f:
f.write("# This file was generated by make_deps.py, DO NOT EDIT MANUALLY!\n")
f.write("#\n")
f.write("# NO ENVIRONMENT SHOULD BE CREATED FROM THIS FILE.\n")
f.write("#\n")
f.write(
"# We want to use the --autoresolve option of pip-compile-multi to make sure "
"we do not run into conflicts across multiple txt files.\n"
)
f.write(
"# This feature works only if the project has a single requirements file that "
"references (directly or indirectly) all other files.\n\n"
"""
# This file was generated by make_deps.py, DO NOT EDIT MANUALLY!
#
# NO ENVIRONMENT SHOULD BE CREATED FROM THIS FILE.
#
# We want to use the --autoresolve option of pip-compile-multi to make sure we
# do not run into conflicts across multiple txt files.
# This feature works only if the project has a single requirements file that
# references (directly or indirectly) all other files.
"""
)
f.write("\n".join(all_dependencies))
f.write("\n")

0 comments on commit bd2151e

Please sign in to comment.