Skip to content

Commit

Permalink
make the doc more accurate
Browse files Browse the repository at this point in the history
close #4856
  • Loading branch information
frostming committed Nov 11, 2021
1 parent 76d6fcc commit 1524315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ Luckily - pipenv will hash your Pipfile *before* expanding environment
variables (and, helpfully, will substitute the environment variables again when
you install from the lock file - so no need to commit any secrets! Woo!)

If your credentials contain a special character, surround the references to the environment variables with quotation marks. For example, if your password contain a double quotation mark, surround the password variable with single quotation marks. Otherwise, you may get a ``ValueError, "No closing quotation"`` error while installing dependencies. ::

[[source]]
url = "https://$USERNAME:'${PASSWORD}'@mypypi.example.com/simple"
If your credentials contain special characters, make sure they are URL-encoded as specified in `rfc3986 <https://datatracker.ietf.org/doc/html/rfc3986>`_.

Environment variables may be specified as ``${MY_ENVAR}`` or ``$MY_ENVAR``.

Expand Down
1 change: 1 addition & 0 deletions news/4856.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the documentation to reflect the fact that special characters must be percent-encoded in the URL.

0 comments on commit 1524315

Please sign in to comment.