cli: update CAT -> RUN in the dockerfile (#816)

This commit is contained in:
Vadym Barda
2024-06-26 13:43:34 -04:00
committed by GitHub
parent 72ac58d1c2
commit b7580abf45
2 changed files with 81 additions and 70 deletions
+9 -7
View File
@@ -223,13 +223,15 @@ def config_to_docker(config_path: pathlib.Path, config: Config, base_image: str)
# https://til.simonwillison.net/python/pyproject
faux_pkgs_str = f"{os.linesep}{os.linesep}".join(
f"""ADD {relpath} {destpath}
COPY <<EOF /deps/__outer_{fullpath.name}/pyproject.toml
[project]
name = "{fullpath.name}"
version = "0.1"
[tool.setuptools.package-data]
"*" = ["**/*"]
EOF"""
RUN set -ex && \\
for line in '[project]' \\
'name = "{fullpath.name}"' \\
'version = "0.1"' \\
'[tool.setuptools.package-data]' \\
'"*" = ["**/*"]'; do \\
echo "$line" >> /deps/__outer_{fullpath.name}/pyproject.toml; \\
done
"""
for fullpath, (relpath, destpath) in local_deps.faux_pkgs.items()
)
local_pkgs_str = os.linesep.join(