Fix: requirements.txt was not written to the disk

While the Python packages requirements are correctly detected and saved
into the json task file, requirements.txt was always empty. Since it was
trying to get packages with the wrong key, packages were always empty
when writing in requirements.txt
This commit is contained in:
Arnaud Gelas 2024-01-13 15:14:38 +01:00
parent da87e6aa8c
commit 1238c48451

View file

@ -100,7 +100,7 @@ class WriteTasks(Action):
@staticmethod
async def _update_requirements(doc):
m = json.loads(doc.content)
packages = set(m.get("Required Python third-party packages", set()))
packages = set(m.get("Required Python packages", set()))
file_repo = CONFIG.git_repo.new_file_repository()
requirement_doc = await file_repo.get(filename=PACKAGE_REQUIREMENTS_FILENAME)
if not requirement_doc: