openstack-ansible-repo_build/templates/requirements_absolute_requirements.txt.j2
git-harry cded573fdf 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
2016-03-21 16:25:03 +00:00

4 lines
153 B
Django/Jinja

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