{# Copyright (C) 2023, CERN This software is distributed under the terms of the MIT licence, copied verbatim in the file "LICENSE". In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as Intergovernmental Organization or submit itself to any jurisdiction. #} {% extends "page.html" %} {% block title %} {{ project.name }} ยท {{ super() }} {% endblock title %} {% macro page_banner() %}

{{ project.name }} {{ version }}


{% if latest_version == version %} pip install {{ project.name }} {% else %} pip install {{ project.name }}=={{ version }} {% endif %}

{% if latest_version == version %}   Latest version {% else %}   Newer version available ({{ latest_version }}) {% endif %}

Released: {% set release_date=file_info.upload_time %} {% if (release_date and release_date.year > 1990) %} {{ release_date.strftime('%b %d, %Y') }} {% else %} Unknown {% endif %}
{% endmacro %} {% block page_content %}
{{ page_banner() }}

Project Links {% set icon_lookup={ "Blog": "fa-blog", "Community": "fa-users", 'Documentation': 'fa-book', "Source": "fa-code-branch", "Github": "fa-code-branch", "Releases": "fa-tags", "Source Code": "fa-code-branch", "Code": "fa-code-branch", "Tracker": "fa-bug", "Issues": "fa-bug", "Bug Tracker": "fa-bug", "Discussions": "fa-comments", "Changelog": "fa-scroll", "Homepage": "fa-home", } %} {% for name, url in file_metadata.project_urls.items() %} {% set fa_icon=icon_lookup.get(name, 'fa-link') %} {% endfor %}

Meta {% if file_metadata.author %}
Author: {{ file_metadata.author }}
{% endif %} {% if file_metadata.maintainer %}
Maintainer: {{ file_metadata.maintainer }}
{% endif %} {% if file_metadata.requires_python %}
Requires Python: {{ file_metadata.requires_python }}
{% endif %}

Classifiers
{% for classifier_header, classifiers in classifiers_by_top_level.items() %}
{{ classifier_header }}
    {% for classifier in classifiers %}
  • {{ classifier.split('::', 1)[1] }}
  • {% endfor %}
{% endfor %}
{{ file_metadata.description|safe or 'Description not available' }}
{% for _version in releases|reverse %}
{{ _version }}
{% endfor %}
{% if not file_metadata.requires_dist %} No dependencies {% else %} Dependencies:
{% for requirement in file_metadata.requires_dist %}
{{ requirement.name }} {% if requirement.__str__() != requirement.name %} ({{ requirement }}) {% endif %}
{% endfor %}
{% endif %}
{% endblock page_content %} {% block extra_footer %} {% endblock extra_footer %}