Skip to content

Commit

Permalink
More helpful example text for twine upload command (pypi#14836)
Browse files Browse the repository at this point in the history
* More helpful example text for twine upload command

* Update translations

---------

Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
  • Loading branch information
wimglenn and di authored Nov 1, 2023
1 parent ed97b73 commit e959ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions warehouse/locale/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4578,8 +4578,8 @@ msgstr ""
#: warehouse/templates/manage/account/token.html:113
#, python-format
msgid ""
"You can then use <code>%(command)s</code> to switch to the correct token "
"when uploading to PyPI."
"You can then use <code>%(command)s</code> to use the correct token when "
"uploading to PyPI."
msgstr ""

#: warehouse/templates/manage/account/token.html:119
Expand Down
4 changes: 2 additions & 2 deletions warehouse/templates/manage/account/token.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ <h2>{% trans %}Using this token{% endtrans %}</h2>
username = __token__
password = # {% trans %}a project token{% endtrans %} </pre>
<p>
{% trans command='twine --repository PROJECT_NAME' %}
You can then use <code>{{ command }}</code> to switch to the correct token when uploading to PyPI.
{% trans command='twine upload --repository PROJECT_NAME' %}
You can then use <code>{{ command }}</code> to use the correct token when uploading to PyPI.
{% endtrans %}
</p>
{% endif %}
Expand Down

0 comments on commit e959ed9

Please sign in to comment.