(sources_dirname, function_name, docker_execute)
| 110 | return False |
| 111 | |
| 112 | def 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 | |
| 123 | def count_non_empty_strings(array): |
| 124 | count = 0 |
no test coverage detected