Skip to content

Commit 85b8f94

Browse files
authored
Merge branch 'main' into 866-readme
2 parents 269aa29 + 61480be commit 85b8f94

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

source/tutorials/packaging-projects.rst

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ project's root directory - you will add content to them in the following steps.
5959
Creating a test folder
6060
----------------------
6161

62-
:file:`tests/` is a placeholder for unit test files. Leave it empty for now.
62+
:file:`tests/` is a placeholder for test files. Leave it empty for now.
6363

6464

6565
Creating pyproject.toml
6666
-----------------------
6767

68-
:file:`pyproject.toml` is the file that tells build tools (like ``pip`` 10+ and
68+
:file:`pyproject.toml` is the file that tells build tools (like ``pip`` and
6969
``build``) what system you are using and what is required for building. The
7070
default if this file is missing is to assume a classic setuptools build system,
7171
but it is better to be explicit; if you have a :file:`pyproject.toml` file, you
@@ -157,20 +157,20 @@ an escape hatch when absolutely necessary.
157157
This example package uses a relatively minimal set of metadata:
158158

159159
- ``name`` is the *distribution name* of your package. This can be any name as
160-
long as only contains letters, numbers, ``_`` , and ``-``. It also must not
160+
long as it only contains letters, numbers, ``_`` , and ``-``. It also must not
161161
already be taken on pypi.org. **Be sure to update this with your username,**
162162
as this ensures you won't try to upload a package with the same name as one
163-
which already exists when you upload the package.
163+
which already exists.
164164
- ``version`` is the package version. See :pep:`440` for more details on
165165
versions. You can use ``file:`` or ``attr:`` directives to read from a file or
166-
package attribute (simple attributes do not require import).
166+
package attribute.
167167
- ``author`` and ``author_email`` are used to identify the author of the
168168
package.
169169
- ``description`` is a short, one-sentence summary of the package.
170170
- ``long_description`` is a detailed description of the package. This is
171171
shown on the package detail page on the Python Package Index. In
172-
this case, the long description is loaded from :file:`README.md` which is
173-
a common pattern, using the ``file:`` directive.
172+
this case, the long description is loaded from :file:`README.md` (which is
173+
a common pattern) using the ``file:`` directive.
174174
- ``long_description_content_type`` tells the index what type of markup is
175175
used for the long description. In this case, it's Markdown.
176176
- ``url`` is the URL for the homepage of the project. For many projects, this
@@ -273,18 +273,18 @@ an escape hatch when absolutely necessary.
273273
minimal set:
274274

275275
- ``name`` is the *distribution name* of your package. This can be any name as
276-
long as only contains letters, numbers, ``_`` , and ``-``. It also must not
276+
long as it only contains letters, numbers, ``_`` , and ``-``. It also must not
277277
already be taken on pypi.org. **Be sure to update this with your username,**
278278
as this ensures you won't try to upload a package with the same name as one
279-
which already exists when you upload the package.
280-
- ``version`` is the package version see :pep:`440` for more details on
279+
which already exists.
280+
- ``version`` is the package version. See :pep:`440` for more details on
281281
versions.
282282
- ``author`` and ``author_email`` are used to identify the author of the
283283
package.
284284
- ``description`` is a short, one-sentence summary of the package.
285285
- ``long_description`` is a detailed description of the package. This is
286286
shown on the package detail page on the Python Package Index. In
287-
this case, the long description is loaded from :file:`README.md` which is
287+
this case, the long description is loaded from :file:`README.md`, which is
288288
a common pattern.
289289
- ``long_description_content_type`` tells the index what type of markup is
290290
used for the long description. In this case, it's Markdown.
@@ -379,21 +379,20 @@ The files listed above will be included automatically in your
379379
:term:`source distribution <Source Distribution (or "sdist")>`. If you want to control what goes in this
380380
explicitly, see :ref:`Using MANIFEST.in`.
381381

382-
The final :term:`built distribution <Built Distribution>` will
383-
have the Python files in the
384-
discovered or listed Python packages. If you want to control what goes here,
385-
such as to add data files, see :std:doc:`Including Data Files
386-
<setuptools:userguide/datafiles>` from the :std:doc:`setuptools docs
387-
<setuptools:index>`.
382+
The final :term:`built distribution <Built Distribution>` will have the Python
383+
files in the discovered or listed Python packages. If you want to control what
384+
goes here, such as to add data files, see
385+
:std:doc:`Including Data Files <setuptools:userguide/datafiles>`
386+
from the :std:doc:`setuptools docs <setuptools:index>`.
388387

389388
.. _generating archives:
390389

391390
Generating distribution archives
392391
--------------------------------
393392

394393
The next step is to generate :term:`distribution packages <Distribution
395-
Package>` for the package. These are archives that are uploaded to the Package
396-
Index and can be installed by :ref:`pip`.
394+
Package>` for the package. These are archives that are uploaded to the Python
395+
Package Index and can be installed by :ref:`pip`.
397396

398397
Make sure you have the latest versions of PyPA's ``build`` installed:
399398

@@ -454,8 +453,8 @@ Uploading the distribution archives
454453

455454
Finally, it's time to upload your package to the Python Package Index!
456455

457-
The first thing you'll need to do is register an account on ``Test PyPI``. Test
458-
PyPI is a separate instance of the package index intended for testing and
456+
The first thing you'll need to do is register an account on Test PyPI, which
457+
is a separate instance of the package index intended for testing and
459458
experimentation. It's great for things like this tutorial where we don't
460459
necessarily want to upload to the real index. To register an account, go to
461460
https://test.pypi.org/account/register/ and complete the steps on that page.

0 commit comments

Comments
 (0)