Skip to content

Commit 75c4acc

Browse files
committed
Merge branch 'master' into pep643
2 parents 7cc7fac + 8c1f843 commit 75c4acc

20 files changed

Lines changed: 410 additions & 45 deletions

source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@
196196

197197
# Custom sidebar templates, filenames relative to this file.
198198
html_sidebars = {
199-
'**': ['localtoc.html', 'relations.html'],
200-
'index': ['localtoc.html']
199+
'**': ['globaltoc.html', 'relations.html'],
200+
'index': ['globaltoc.html']
201201
}
202202

203203
# Additional templates that should be rendered to pages, maps page names to

source/discussions/pip-vs-easy-install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ pip vs easy_install
66
===================
77

88

9-
`easy_install` was released in 2004, as part of :ref:`setuptools`. It was
9+
:ref:`easy_install <easy_install>` was released in 2004, as part of :ref:`setuptools`. It was
1010
notable at the time for installing :term:`packages <Distribution Package>` from
1111
:term:`PyPI <Python Package Index (PyPI)>` using requirement specifiers, and
1212
automatically installing dependencies.
1313

14-
:ref:`pip` came later in 2008, as alternative to `easy_install`, although still
14+
:ref:`pip` came later in 2008, as alternative to :ref:`easy_install <easy_install>`, although still
1515
largely built on top of :ref:`setuptools` components. It was notable at the
1616
time for *not* installing packages as :term:`Eggs <Egg>` or from :term:`Eggs <Egg>` (but
1717
rather simply as 'flat' packages from :term:`sdists <Source Distribution (or

source/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Glossary
4444
A :term:`Built Distribution` format introduced by :ref:`setuptools`,
4545
which is being replaced by :term:`Wheel`. For details, see `The
4646
Internal Structure of Python Eggs
47-
<https://setuptools.readthedocs.io/en/latest/formats.html>`_ and
47+
<https://setuptools.readthedocs.io/en/latest/deprecated/python_eggs.html>`_ and
4848
`Python Eggs <http://peak.telecommunity.com/DevCenter/PythonEggs>`_
4949

5050
Extension Module

source/guides/analyzing-pypi-package-downloads.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The following query counts the total number of downloads for the project
113113
-- Only query the last 30 days of history
114114
AND DATE(timestamp)
115115
BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
116-
AND CURRENT_DATE())
116+
AND CURRENT_DATE()
117117

118118
+---------------+
119119
| num_downloads |
@@ -134,7 +134,7 @@ column.
134134
-- Only query the last 30 days of history
135135
AND DATE(timestamp)
136136
BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
137-
AND CURRENT_DATE())
137+
AND CURRENT_DATE()
138138

139139
+---------------+
140140
| num_downloads |

source/guides/distributing-packages-using-setuptools.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,8 @@ entry_points
508508
Use this keyword to specify any plugins that your project provides for any named
509509
entry points that may be defined by your project or others that you depend on.
510510

511-
For more information, see the section on `Dynamic Discovery of Services and
512-
Plugins
513-
<https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins>`_
511+
For more information, see the section on `Advertising Behavior
512+
<https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html#dynamic-discovery-of-services-and-plugins>`_
514513
from the :ref:`setuptools` docs.
515514

516515
The most commonly used entry point is "console_scripts" (see below).

source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ jobs:
1313
uses: actions/setup-python@v1
1414
with:
1515
python-version: 3.7
16-
- name: Install pep517
16+
- name: Install pypa/build
1717
run: >-
1818
python -m
1919
pip install
20-
pep517
20+
build
2121
--user
2222
- name: Build a binary wheel and a source tarball
2323
run: >-
2424
python -m
25-
pep517.build
26-
--source
27-
--binary
28-
--out-dir dist/
25+
build
26+
--sdist
27+
--wheel
28+
--outdir dist/
2929
.
3030
# Actually publish to PyPI/TestPyPI
3131
- name: Publish distribution 📦 to Test PyPI
3232
uses: pypa/gh-action-pypi-publish@master
3333
with:
34-
password: ${{ secrets.test_pypi_password }}
34+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
3535
repository_url: https://test.pypi.org/legacy/
3636
- name: Publish distribution 📦 to PyPI
3737
if: startsWith(github.ref, 'refs/tags')
3838
uses: pypa/gh-action-pypi-publish@master
3939
with:
40-
password: ${{ secrets.pypi_password }}
40+
password: ${{ secrets.PYPI_API_TOKEN }}

source/guides/index.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@ introduction to packaging, see :doc:`/tutorials/index`.
77

88
.. toctree::
99
:maxdepth: 1
10+
:caption: Installing Packages:
1011

11-
tool-recommendations
1212
installing-using-pip-and-virtual-environments
1313
installing-stand-alone-command-line-tools
1414
installing-using-linux-tools
1515
installing-scientific-packages
1616
multi-version-installs
17+
index-mirrors-and-caches
18+
hosting-your-own-index
19+
20+
.. toctree::
21+
:maxdepth: 1
22+
:caption: Building and Publishing Projects:
23+
1724
distributing-packages-using-setuptools
1825
using-manifest-in
1926
single-sourcing-package-version
@@ -23,10 +30,14 @@ introduction to packaging, see :doc:`/tutorials/index`.
2330
supporting-windows-using-appveyor
2431
packaging-namespace-packages
2532
creating-and-discovering-plugins
26-
analyzing-pypi-package-downloads
27-
index-mirrors-and-caches
28-
hosting-your-own-index
2933
migrating-to-pypi-org
3034
using-testpypi
3135
making-a-pypi-friendly-readme
3236
publishing-package-distribution-releases-using-github-actions-ci-cd-workflows
37+
38+
.. toctree::
39+
:maxdepth: 1
40+
:caption: Miscellaneous:
41+
42+
tool-recommendations
43+
analyzing-pypi-package-downloads

source/guides/installing-using-linux-tools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ To install pip, wheel, and setuptools, in a parallel, non-system environment
9898
(using yum) then there are two options:
9999

100100

101-
1. Use the "Sofware Collections" feature to enable a parallel collection that
101+
1. Use the "Software Collections" feature to enable a parallel collection that
102102
includes pip, setuptools, and wheel.
103103

104104
* For Redhat, see here:

source/guides/installing-using-pip-and-virtual-environments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ for Python 2. These are the lowest-level tools for managing Python
77
packages and are recommended if higher-level tools do not suit your needs.
88

99
.. note:: This doc uses the term **package** to refer to a
10-
:term:`Distribution Package` which is different from a :term:`Import
10+
:term:`Distribution Package` which is different from an :term:`Import
1111
Package` that which is used to import modules in your Python source code.
1212

1313

source/guides/multi-version-installs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This can be worked around by setting all dependencies in
3232
``__main__.__requires__`` before importing ``pkg_resources`` for the first
3333
time, but that approach does mean that standard command line invocations of
3434
the affected tools can't be used - it's necessary to write a custom
35-
wrapper script or use ``python -c '<commmand>'`` to invoke the application's
35+
wrapper script or use ``python -c '<command>'`` to invoke the application's
3636
main entry point directly.
3737

3838
Refer to the `pkg_resources documentation

0 commit comments

Comments
 (0)