Skip to content

Commit ad65d09

Browse files
matrixisened-deily
authored andcommitted
[2.7] bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814). (GH-6905)
(cherry picked from commit 19177fb) Co-authored-by: Stéphane Wirtel <[email protected]>
1 parent 861d384 commit ad65d09

26 files changed

+35
-36
lines changed

Doc/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Building the docs
1515

1616
You need to have Sphinx <http://sphinx-doc.org/> installed; it is the toolset
1717
used to build the docs. It is not included in this tree, but maintained
18-
separately and available from PyPI <https://pypi.python.org/pypi/Sphinx>.
18+
separately and available from PyPI <https://pypi.org/project/Sphinx>.
1919

2020

2121
Using make

Doc/distributing/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ installing other Python projects, refer to the
3131
Key terms
3232
=========
3333

34-
* the `Python Packaging Index <https://pypi.python.org/pypi>`__ is a public
34+
* the `Python Packaging Index <https://pypi.org>`__ is a public
3535
repository of open source licensed packages made available for use by
3636
other Python users
3737
* the `Python Packaging Authority

Doc/distutils/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
7878
| | be built | :class:`distutils.core.Extension` |
7979
+--------------------+--------------------------------+-------------------------------------------------------------+
8080
| *classifiers* | A list of categories for the | a list of strings; valid classifiers are listed on `PyPI |
81-
| | package | <https://pypi.python.org/pypi?:action=list_classifiers>`_. |
81+
| | package | <https://pypi.org/classifiers>`_. |
8282
+--------------------+--------------------------------+-------------------------------------------------------------+
8383
| *distclass* | the :class:`Distribution` | a subclass of |
8484
| | class to use | :class:`distutils.core.Distribution` |

Doc/distutils/packageindex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,4 @@ without warnings does not guarantee that PyPI will convert the content
248248
successfully.
249249

250250

251-
.. _Python Package Index (PyPI): https://pypi.python.org/pypi
251+
.. _Python Package Index (PyPI): https://pypi.org

Doc/distutils/setupscript.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ Notes:
606606
(4)
607607
These fields should not be used if your package is to be compatible with Python
608608
versions prior to 2.2.3 or 2.3. The list is available from the `PyPI website
609-
<https://pypi.python.org/pypi>`_.
609+
<https://pypi.org>`_.
610610

611611
(5)
612612
The ``long_description`` field is used by PyPI when you are

Doc/faq/general.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ programming), software engineering (unit testing, logging, profiling, parsing
117117
Python code), and operating system interfaces (system calls, filesystems, TCP/IP
118118
sockets). Look at the table of contents for :ref:`library-index` to get an idea
119119
of what's available. A wide variety of third-party extensions are also
120-
available. Consult `the Python Package Index <https://pypi.python.org/pypi>`_ to
120+
available. Consult `the Python Package Index <https://pypi.org>`_ to
121121
find packages of interest to you.
122122

123123

Doc/faq/library.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ standard library module. (Eventually you'll learn what's in the standard
1919
library and will be able to skip this step.)
2020

2121
For third-party packages, search the `Python Package Index
22-
<https://pypi.python.org/pypi>`_ or try `Google <https://www.google.com>`_ or
22+
<https://pypi.org>`_ or try `Google <https://www.google.com>`_ or
2323
another Web search engine. Searching for "Python" plus a keyword or two for
2424
your topic of interest will usually find something helpful.
2525

@@ -585,7 +585,7 @@ substituted for standard input and output. You will have to use pseudo ttys
585585
("ptys") instead of pipes. Or you can use a Python interface to Don Libes'
586586
"expect" library. A Python extension that interfaces to expect is called "expy"
587587
and available from http://expectpy.sourceforge.net. A pure Python solution that
588-
works like expect is `pexpect <https://pypi.python.org/pypi/pexpect/>`_.
588+
works like expect is `pexpect <https://pypi.org/project/pexpect/>`_.
589589

590590

591591
How do I access the serial (RS232) port?

Doc/howto/pyporting.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,25 +427,25 @@ to make sure everything functions as expected in both versions of Python.
427427

428428

429429
.. _2to3: https://docs.python.org/3/library/2to3.html
430-
.. _caniusepython3: https://pypi.python.org/pypi/caniusepython3
430+
.. _caniusepython3: https://pypi.org/project/caniusepython3
431431
.. _cheat sheet: http://python-future.org/compatible_idioms.html
432-
.. _coverage.py: https://pypi.python.org/pypi/coverage
432+
.. _coverage.py: https://pypi.org/project/coverage
433433
.. _Futurize: http://python-future.org/automatic_conversion.html
434434
.. _importlib: https://docs.python.org/3/library/importlib.html#module-importlib
435-
.. _importlib2: https://pypi.python.org/pypi/importlib2
435+
.. _importlib2: https://pypi.org/project/importlib2
436436
.. _Modernize: https://python-modernize.readthedocs.org/en/latest/
437437
.. _mypy: http://mypy-lang.org/
438438
.. _Porting to Python 3: http://python3porting.com/
439-
.. _Pylint: https://pypi.python.org/pypi/pylint
439+
.. _Pylint: https://pypi.org/project/pylint
440440

441441
.. _Python 3 Q & A: https://ncoghlan-devs-python-notes.readthedocs.org/en/latest/python3/questions_and_answers.html
442442

443443
.. _pytype: https://github.com/google/pytype
444444
.. _python-future: http://python-future.org/
445445
.. _python-porting: https://mail.python.org/mailman/listinfo/python-porting
446-
.. _six: https://pypi.python.org/pypi/six
447-
.. _tox: https://pypi.python.org/pypi/tox
448-
.. _trove classifier: https://pypi.python.org/pypi?%3Aaction=list_classifiers
446+
.. _six: https://pypi.org/project/six
447+
.. _tox: https://pypi.org/project/tox
448+
.. _trove classifier: https://pypi.org/classifiers
449449

450450
.. _"What's New": https://docs.python.org/3/whatsnew/index.html
451451

Doc/howto/webservers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ following WSGI-application::
301301
WSGIServer(app).run()
302302

303303
This is a simple WSGI application, but you need to install `flup
304-
<https://pypi.python.org/pypi/flup/1.0>`_ first, as flup handles the low level
304+
<https://pypi.org/project/flup/1.0>`_ first, as flup handles the low level
305305
FastCGI access.
306306

307307
.. seealso::
@@ -583,7 +583,7 @@ alternate storage mechanism.
583583
helps with choosing a method for saving data
584584

585585
* `SQLAlchemy <http://www.sqlalchemy.org/>`_, the most powerful OR-Mapper
586-
for Python, and `Elixir <https://pypi.python.org/pypi/Elixir>`_, which makes
586+
for Python, and `Elixir <https://pypi.org/project/Elixir>`_, which makes
587587
SQLAlchemy easier to use
588588

589589
* `SQLObject <http://www.sqlobject.org/>`_, another popular OR-Mapper

Doc/installing/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ Key terms
3939
being installed system wide
4040
* ``virtualenv`` is a third party tools for creating virtual environments, it
4141
is defaults to installing ``pip`` into all created virtual environments.
42-
* the `Python Packaging Index <https://pypi.python.org/pypi>`__ is a public
43-
repository of open source licensed packages made available for use by
44-
other Python users
42+
* the `Python Packaging Index <https://pypi.org>`__ is a public repository of
43+
open source licensed packages made available for use by other Python users
4544
* the `Python Packaging Authority
4645
<https://www.pypa.io/en/latest/>`__ are the group of
4746
developers and documentation authors responsible for the maintenance and

Doc/library/bz2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Handling of compressed files is offered by the :class:`BZ2File` class.
7474
input file, only the first stream will be accessible. If you require
7575
support for multi-stream files, consider using the third-party
7676
:mod:`bz2file` module (available from
77-
`PyPI <https://pypi.python.org/pypi/bz2file>`_). This module provides a
77+
`PyPI <https://pypi.org/project/bz2file>`_). This module provides a
7878
backport of Python 3.3's :class:`BZ2File` class, which does support
7979
multi-stream files.
8080

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
15661566

15671567
.. seealso::
15681568

1569-
`pytz <https://pypi.python.org/pypi/pytz/>`_
1569+
`pytz <https://pypi.org/project/pytz/>`_
15701570
The standard library has no :class:`tzinfo` instances, but
15711571
there exists a third-party library which brings the *IANA timezone
15721572
database* (also known as the Olson database) to Python: *pytz*.

Doc/library/distribution.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Software Packaging and Distribution
44

55
These libraries help you with publishing and installing Python software.
66
While these modules are designed to work in conjunction with the
7-
`Python Package Index <https://pypi.python.org>`__, they can also be used
7+
`Python Package Index <https://pypi.org>`__, they can also be used
88
with a local index server, or without any index server at all.
99

1010
.. toctree::

Doc/library/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ optional components.
3030
In addition to the standard library, there is a growing collection of
3131
several thousand components (from individual programs and modules to
3232
packages and entire application development frameworks), available from
33-
the `Python Package Index <https://pypi.python.org/pypi>`_.
33+
the `Python Package Index <https://pypi.org>`_.
3434

3535

3636
.. toctree::

Doc/library/pprint.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,3 @@ parameters.
234234
['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
235235
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'],
236236
['cccccccccccccccccccc', 'dddddddddddddddddddd']]
237-

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fine-tuning parameters.
3535

3636
.. seealso::
3737

38-
The third-party `regex <https://pypi.python.org/pypi/regex/>`_ module,
38+
The third-party `regex <https://pypi.org/project/regex/>`_ module,
3939
which has an API compatible with the standard library :mod:`re` module,
4040
but offers additional functionality and a more thorough Unicode support.
4141

Doc/library/ssl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ Visual inspection shows that the certificate does identify the desired service
15861586
(('commonName', 'www.python.org'),)),
15871587
'subjectAltName': (('DNS', 'www.python.org'),
15881588
('DNS', 'python.org'),
1589-
('DNS', 'pypi.python.org'),
1589+
('DNS', 'pypi.org'),
15901590
('DNS', 'docs.python.org'),
15911591
('DNS', 'testpypi.python.org'),
15921592
('DNS', 'bugs.python.org'),

Doc/library/subprocess.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ functions can be found in the subprocess-replacements_ section.
3232

3333
:pep:`324` -- PEP proposing the subprocess module
3434

35-
.. _subprocess32: https://pypi.python.org/pypi/subprocess32/
35+
.. _subprocess32: https://pypi.org/project/subprocess32/
3636

3737
Using the :mod:`subprocess` Module
3838
----------------------------------

Doc/library/unittest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ need to derive from a specific class.
7878
Module :mod:`doctest`
7979
Another test-support module with a very different flavor.
8080

81-
`unittest2: A backport of new unittest features for Python 2.4-2.6 <https://pypi.python.org/pypi/unittest2>`_
81+
`unittest2: A backport of new unittest features for Python 2.4-2.6 <https://pypi.org/project/unittest2>`_
8282
Many new features were added to unittest in Python 2.7, including test
8383
discovery. unittest2 allows you to use these features with earlier
8484
versions of Python.

Doc/library/xml.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ break backward compatibility. After all inline DTD and entity expansion are
129129
well-defined XML features.
130130

131131

132-
.. _defusedxml: https://pypi.python.org/pypi/defusedxml/
133-
.. _defusedexpat: https://pypi.python.org/pypi/defusedexpat/
132+
.. _defusedxml: https://pypi.org/project/defusedxml/
133+
.. _defusedexpat: https://pypi.org/project/defusedexpat/
134134
.. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs
135135
.. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
136136
.. _DTD: https://en.wikipedia.org/wiki/Document_type_definition

Doc/tutorial/whatnow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ More Python resources:
3838

3939
* https://docs.python.org: Fast access to Python's documentation.
4040

41-
* https://pypi.python.org/pypi: The Python Package Index, previously also nicknamed
41+
* https://pypi.org: The Python Package Index, previously also nicknamed
4242
the Cheese Shop, is an index of user-created Python modules that are available
4343
for download. Once you begin releasing code, you can register it here so that
4444
others can find it.

Doc/using/windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ The Windows-specific standard modules are documented in
242242
PyWin32
243243
-------
244244

245-
The `PyWin32 <https://pypi.python.org/pypi/pywin32>`_ module by Mark Hammond
245+
The `PyWin32 <https://pypi.org/project/pywin32>`_ module by Mark Hammond
246246
is a collection of modules for advanced Windows-specific support. This includes
247247
utilities for:
248248

Doc/whatsnew/2.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ The heart of the catalog is the new Distutils :command:`register` command.
659659
Running ``python setup.py register`` will collect the metadata describing a
660660
package, such as its name, version, maintainer, description, &c., and send it to
661661
a central catalog server. The resulting catalog is available from
662-
https://pypi.python.org/pypi.
662+
https://pypi.org.
663663

664664
To make the catalog a bit more useful, a new optional *classifiers* keyword
665665
argument has been added to the Distutils :func:`setup` function. A list of

Doc/whatsnew/2.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ required packages. ::
229229
)
230230

231231
Another new enhancement to the Python package index at
232-
https://pypi.python.org is storing source and binary archives for a
232+
https://pypi.org is storing source and binary archives for a
233233
package. The new :command:`upload` Distutils command will upload a package to
234234
the repository.
235235

Doc/whatsnew/2.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ new features were added. Most of these features were implemented
18091809
by Michael Foord, unless otherwise noted. The enhanced version of
18101810
the module is downloadable separately for use with Python versions 2.4 to 2.6,
18111811
packaged as the :mod:`unittest2` package, from
1812-
https://pypi.python.org/pypi/unittest2.
1812+
https://pypi.org/project/unittest2.
18131813

18141814
When used from the command line, the module can automatically discover
18151815
tests. It's not as fancy as `py.test <http://pytest.org>`__ or
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix broken pypi link

0 commit comments

Comments
 (0)