From ea5a4dd9b7568114dc0af628508bee5e83befd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Thu, 4 May 2023 11:44:44 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=97=84=20fix:=20dont=20output=20other?= =?UTF-8?q?=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/options/generate/templates_user.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/options/generate/templates_user.py b/src/options/generate/templates_user.py index 12f34e7..fa2ab9c 100644 --- a/src/options/generate/templates_user.py +++ b/src/options/generate/templates_user.py @@ -280,18 +280,14 @@ Output the apt-get packages that need to be placed at {{apt_get_packages}} as js ```json {{"packages": ["", ""]}} ``` -Example for the following requirements.txt file: -**requirements.txt** -``` -numpy==1.19.5 -fitz -``` -The output would be: +Example: +Error is about missing package `libgl1-mesa-glx`. +The output is: **apt-get-packages.json** ```json -{{"packages": []}} +{{"packages": [libgl1-mesa-glx]}} ``` -Note that you must not output any other files. Only output the apt-get-packages.json file. +Note that you must not output the content of any other files. Only output the apt-get-packages.json file. ''' ) From 36cb8169b4e3ea16c536302e3276c94c993cfbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Thu, 4 May 2023 12:13:50 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=97=84=20fix:=20dont=20output=20other?= =?UTF-8?q?=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/options/generate/templates_user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/options/generate/templates_user.py b/src/options/generate/templates_user.py index fa2ab9c..267e6cf 100644 --- a/src/options/generate/templates_user.py +++ b/src/options/generate/templates_user.py @@ -287,7 +287,8 @@ The output is: ```json {{"packages": [libgl1-mesa-glx]}} ``` -Note that you must not output the content of any other files. Only output the apt-get-packages.json file. +Note that you must not output the content of any other files like the Dockerfile or requirements.txt. +Only output the apt-get-packages.json file. ''' )