{% extends "moneta/base_package.html" %}{% load staticfiles i18n moneta %} {% block extrahead %} {% endblock %} {% block repo_content %}

{% trans 'Available pip indexes' %}

{% with view=repo|moneta_url:'simple' %}
{% for tab_info in tab_infos %}
{% trans 'Modifiy your $HOME/.pip/pip.conf file to use pip:' %}
[global]
extra-index-url = {{ absolute_url }}{{ tab_info.0 }}{% if use_https %}
cert = {% trans '/Path/to/your/ROOT/CA.pem' %}{% endif %}
{% trans 'Modifiy your $HOME/.pydistutils.cfg file to use easy_install:' %}
[easy_install]
find_links = {{ absolute_url }}{{ tab_info.0 }}
{% trans 'If you already uses an extra Python mirror, update your $HOME/.pip/pip.conf in this way:' %}
[global]
extra-index-url = http://…/simple\
    {{ absolute_url }}{{ tab_info.0 }}
{% trans '… and your $HOME/.pydistutils.cfg:' %}
[easy_install]
find_links = http://…/simple\
    {{ absolute_url }}{{ tab_info.0 }}
{% if use_https %}

{% trans 'Before using easy_install, you probably need to add your root certificate to the first existing file among:' %}

{% endif %} {% if upload_allowed %}

{% trans 'Add a package' %}

{% trans 'In order to add a new package, please run the following command:' %}
FILENAME=filename-version(.tar.gz|.tar.bz2|.tar.xz|.whl|.zip|.egg)
{% curl %} --data-binary @$FILENAME {{ absolute_url }}{% url 'moneta.views.add_element_post' rid=repo.id %}\?filename=$FILENAME{% for state in tab_info.1 %}\&states={{ state }}{% endfor %}
{% endif %}
{% endfor %}
{% endwith %} {% include 'moneta/add_signature.html' %} {% endblock %}