From cded573fdf17e011d7684e2e3d94e7471fb3da20 Mon Sep 17 00:00:00 2001 From: git-harry Date: Mon, 21 Mar 2016 15:44:27 +0000 Subject: [PATCH] Fix version output of absolute requirements Fix the requirements_absolute_requirements.txt.j2 template so that the versions are correctly translated for Pip. Prior to this version a Pip version ending with '.postx' is incorrectly added to the file, e.g Without this patch the following is added, that is not valid: functools32==3.2.3_2 With this patch the same version would be output as: functools32==3.2.3.post2 Change-Id: I57321f71b0e04de76ec1e15d0e82d2fc03b83830 --- templates/requirements_absolute_requirements.txt.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/requirements_absolute_requirements.txt.j2 b/templates/requirements_absolute_requirements.txt.j2 index 9183186..23f9b70 100644 --- a/templates/requirements_absolute_requirements.txt.j2 +++ b/templates/requirements_absolute_requirements.txt.j2 @@ -1,3 +1,3 @@ {% for item in built_wheels.stdout_lines %} -{{ item.split('-')[0] | lower }}=={{ item.split('-')[1] | lower }} -{% endfor %} \ No newline at end of file +{{ item.split('-')[0] | lower }}=={{ (item.split('-')[1].split('_')) | join('.post') | lower }} +{% endfor %}