{% macro package_type_pill(filename) %} {% if filename.endswith(".whl") %} Wheel {% elif filename.endswith(".egg") %} Egg {% else %} Source distribution {% endif %} {% endmacro %} {# vim: ft=jinja #}