MCPcopy Create free account
hub / github.com/catid/supercharger / install_container_requirements

Function install_container_requirements

codegen/codegen.py:112–121  ·  view source on GitHub ↗
(sources_dirname, function_name, docker_execute)

Source from the content-addressed store, hash-verified

110 return False
111
112def install_container_requirements(sources_dirname, function_name, docker_execute):
113 #logging.info("Installing container requirements.txt...")
114
115 project_path = os.path.join(sources_dirname, function_name)
116 success = generate_requirements(project_path, output_file=os.path.join(project_path, f"requirements.txt"))
117
118 if success:
119 exit_code, logs = docker_execute.execute(command=f"pip install -r {function_name}/requirements.txt")
120 if exit_code != 0:
121 logging.info(f"An error occurred while installing requirements.txt: exit_code={exit_code} logs={logs}")
122
123def count_non_empty_strings(array):
124 count = 0

Callers 2

handle_codeMethod · 0.85
handle_testMethod · 0.85

Calls 2

generate_requirementsFunction · 0.85
executeMethod · 0.80

Tested by

no test coverage detected