Skip to content

Commit 947abe0

Browse files
brainwaneJon Wayne Parrott
authored andcommitted
Replace ~ with $HOME in guides, tutorials (pypa#418)
* Replace `~` with `$HOME` in guides, tutorials Be more explicit to help users who aren't as familiar with the tilde. * Fix trailing whitespace
1 parent 4d78705 commit 947abe0

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

source/guides/installing-using-pip-and-virtualenv.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Linux and macOS
4141

4242
Debian and most other distributions include a `python-pip`_ package, if you
4343
want to use the Linux distribution-provided versions of pip see
44-
:doc:`/guides/installing-using-linux-tools`.
44+
:doc:`/guides/installing-using-linux-tools`.
4545

4646
You can also install pip yourself to ensure you have the latest version. It's
4747
recommended to use the system pip to bootstrap a user installation of pip:
@@ -55,7 +55,7 @@ Afterwards, you should have the newest pip installed in your user site:
5555
.. code-block:: bash
5656
5757
python3 -m pip --version
58-
pip 9.0.1 from ~/.local/lib/python3.6/site-packages (python 3.6)
58+
pip 9.0.1 from $HOME/.local/lib/python3.6/site-packages (python 3.6)
5959
6060
.. _python-pip: https://packages.debian.org/stable/python-pip
6161

@@ -102,7 +102,7 @@ virtualenv.
102102

103103
On macOS and Linux:
104104

105-
.. code-block:: bash
105+
.. code-block:: bash
106106
107107
python3 -m virtualenv env
108108
@@ -287,7 +287,7 @@ wheel, or tar file) you can install it directly with pip:
287287

288288
.. code-block:: bash
289289
290-
pip install requests-2.18.4.tar.gz
290+
pip install requests-2.18.4.tar.gz
291291
292292
If you have a directory containing archives of multiple packages, you can tell
293293
pip to look for packages there and not to use the

source/guides/migrating-to-pypi-org.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ included with Python 3.4.6+, Python 3.5.3+, Python 3.6+, and 2.7.13+.
2323
In addition to ensuring you're on a new enough version of the tool for the
2424
tool's default to have switched, you must also make sure that you have not
2525
configured the tool to override its default upload URL. Typically this is
26-
configured in a file located at ``~/.pypirc``. If you see a file like:
26+
configured in a file located at ``$HOME/.pypirc``. If you see a file like:
2727

2828
.. code::
2929
@@ -40,10 +40,10 @@ configured in a file located at ``~/.pypirc``. If you see a file like:
4040
Then simply delete the line starting with ``repository`` and you will use
4141
your upload tool's default URL.
4242

43-
If for some reason you're unable to upgrade the version of your tool to a
44-
version that defaults to using PyPI.org, then you may edit ``~/.pypirc`` and
45-
include the ``repository:`` line, but use the value
46-
``https://upload.pypi.org/legacy/`` instead:
43+
If for some reason you're unable to upgrade the version of your tool
44+
to a version that defaults to using PyPI.org, then you may edit
45+
``$HOME/.pypirc`` and include the ``repository:`` line, but use the
46+
value ``https://upload.pypi.org/legacy/`` instead:
4747

4848
.. code::
4949
@@ -76,7 +76,7 @@ uploading artifacts.
7676
Using TestPyPI
7777
--------------
7878

79-
If you use TestPyPI, you must update your ``~/.pypirc`` to handle
79+
If you use TestPyPI, you must update your ``$HOME/.pypirc`` to handle
8080
TestPyPI's new location, by replacing ``https://testpypi.python.org/pypi``
8181
with ``https://test.pypi.org/legacy/``, for example:
8282

source/guides/using-testpypi.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ Setting up TestPyPI in pypirc
5252
-----------------------------
5353

5454
If you want to avoid entering the TestPyPI url and your username and password
55-
you can configure TestPyPI in your ``~/.pypirc``.
55+
you can configure TestPyPI in your ``$HOME/.pypirc``.
5656

57-
Create or modify ``~/.pypirc`` with the following:
57+
Create or modify ``$HOME/.pypirc`` with the following:
5858

5959
.. code::
6060

source/tutorials/distributing-packages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ can create an account
840840
`using the form on the PyPI website <https://pypi.python.org/pypi?%3Aaction=register_form>`_.
841841

842842
.. Note:: If you want to avoid entering your username and password when
843-
uploading, you can create a ``~/.pypirc`` file with your username and
843+
uploading, you can create a ``$HOME/.pypirc`` file with your username and
844844
password:
845845

846846
.. code-block:: text

0 commit comments

Comments
 (0)