2c58a8ceed
Support an api_token argument. Accounts that have two-factor auth will at some point require using API tokens to upload. Change-Id: Id0c47d088d6e8febbae3c96caecc81ebe247754e
11 lines
336 B
Django/Jinja
11 lines
336 B
Django/Jinja
[distutils]
|
|
index-servers=
|
|
{{ pypi_repository }}
|
|
|
|
[{{ pypi_repository }}]
|
|
{% if pypi_repository_url %}
|
|
repository:{{ pypi_repository_url }}
|
|
{% endif %}
|
|
username:{{ '__token__' if (pypi_info.api_token is defined) else pypi_info.username }}
|
|
password:{{ pypi_info.api_token if (pypi_info.api_token is defined) else pypi_info.password }}
|