Skip to content

Commit d20878e

Browse files
committed
Recommend permissions for .pypirc
Inspired by "Securing The .pypirc File" at https://truveris.github.io/articles/configuring-pypirc/
1 parent 86c0641 commit d20878e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/specifications/pypirc.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ Each section describing a repository defines three fields:
4444
consider an alternative like `keyring`_, setting environment variables, or
4545
providing the password on the command line.
4646

47+
Otherwise, set the permissions on :file:`.pypirc` so that only you can view
48+
or modify it. For example, on Linux or macOS, run:
49+
50+
.. code-block:: bash
51+
52+
chmod 600 ~/.pypirc
53+
4754
.. _keyring: https://pypi.org/project/keyring/
4855

4956
Common configurations

0 commit comments

Comments
 (0)