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
This commit is contained in:
git-harry 2016-03-21 15:44:27 +00:00
parent cb3f0ea6f7
commit cded573fdf

View File

@ -1,3 +1,3 @@
{% for item in built_wheels.stdout_lines %}
{{ item.split('-')[0] | lower }}=={{ item.split('-')[1] | lower }}
{% endfor %}
{{ item.split('-')[0] | lower }}=={{ (item.split('-')[1].split('_')) | join('.post') | lower }}
{% endfor %}