Skip to content

Commit 9955d7f

Browse files
committed
doc: Re-add "Setting up environment" section to "How to Make a Release"
This section was inadvertently removed in 8a0bf81
1 parent 46c7833 commit 9955d7f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/source/make_a_release.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@ Commands to evaluate starts with a dollar sign. For example::
3333

3434
means that ``echo "Hello"`` should be copied and evaluated in the terminal.
3535

36+
----------------------
37+
Setting up environment
38+
----------------------
39+
40+
1. First, `register for an account on PyPI <https://pypi.org>`_.
41+
42+
43+
2. If not already the case, ask to be added as a ``Package Index Maintainer``.
44+
45+
46+
3. Create a ``~/.pypirc`` file with your login credentials::
47+
48+
[distutils]
49+
index-servers =
50+
pypi
51+
pypitest
52+
53+
[pypi]
54+
username=<your-username>
55+
password=<your-password>
56+
57+
[pypitest]
58+
repository=https://test.pypi.org/legacy/
59+
username=<your-username>
60+
password=<your-password>
61+
62+
where ``<your-username>`` and ``<your-password>`` correspond to your PyPI account.
63+
3664

3765
------------------
3866
PyPI: Step-by-step

0 commit comments

Comments
 (0)