Commit 19177fbd authored by Stéphane Wirtel's avatar Stéphane Wirtel Committed by Ned Deily

bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814)

parent b0565628
...@@ -31,7 +31,7 @@ installing other Python projects, refer to the ...@@ -31,7 +31,7 @@ installing other Python projects, refer to the
Key terms Key terms
========= =========
* the `Python Packaging Index <https://pypi.python.org/pypi>`__ is a public * the `Python Packaging Index <https://pypi.org>`__ is a public
repository of open source licensed packages made available for use by repository of open source licensed packages made available for use by
other Python users other Python users
* the `Python Packaging Authority * the `Python Packaging Authority
......
...@@ -78,7 +78,7 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and ...@@ -78,7 +78,7 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
| | be built | :class:`distutils.core.Extension` | | | be built | :class:`distutils.core.Extension` |
+--------------------+--------------------------------+-------------------------------------------------------------+ +--------------------+--------------------------------+-------------------------------------------------------------+
| *classifiers* | A list of categories for the | a list of strings; valid classifiers are listed on `PyPI | | *classifiers* | A list of categories for the | a list of strings; valid classifiers are listed on `PyPI |
| | package | <https://pypi.python.org/pypi?:action=list_classifiers>`_. | | | package | <https://pypi.org/classifiers>`_. |
+--------------------+--------------------------------+-------------------------------------------------------------+ +--------------------+--------------------------------+-------------------------------------------------------------+
| *distclass* | the :class:`Distribution` | a subclass of | | *distclass* | the :class:`Distribution` | a subclass of |
| | class to use | :class:`distutils.core.Distribution` | | | class to use | :class:`distutils.core.Distribution` |
......
...@@ -250,4 +250,4 @@ without warnings does not guarantee that PyPI will convert the content ...@@ -250,4 +250,4 @@ without warnings does not guarantee that PyPI will convert the content
successfully. successfully.
.. _Python Package Index (PyPI): https://pypi.python.org/pypi .. _Python Package Index (PyPI): https://pypi.org
...@@ -625,7 +625,7 @@ Notes: ...@@ -625,7 +625,7 @@ Notes:
(7) (7)
The valid classifiers are listed on The valid classifiers are listed on
`PyPI <https://pypi.python.org/pypi?:action=list_classifiers>`_. `PyPI <https://pypi.org/classifiers>`_.
(8) (8)
To preserve backward compatibility, this field also accepts a string. If To preserve backward compatibility, this field also accepts a string. If
......
...@@ -117,7 +117,7 @@ programming), software engineering (unit testing, logging, profiling, parsing ...@@ -117,7 +117,7 @@ programming), software engineering (unit testing, logging, profiling, parsing
Python code), and operating system interfaces (system calls, filesystems, TCP/IP Python code), and operating system interfaces (system calls, filesystems, TCP/IP
sockets). Look at the table of contents for :ref:`library-index` to get an idea sockets). Look at the table of contents for :ref:`library-index` to get an idea
of what's available. A wide variety of third-party extensions are also of what's available. A wide variety of third-party extensions are also
available. Consult `the Python Package Index <https://pypi.python.org/pypi>`_ to available. Consult `the Python Package Index <https://pypi.org>`_ to
find packages of interest to you. find packages of interest to you.
......
...@@ -19,7 +19,7 @@ standard library module. (Eventually you'll learn what's in the standard ...@@ -19,7 +19,7 @@ standard library module. (Eventually you'll learn what's in the standard
library and will be able to skip this step.) library and will be able to skip this step.)
For third-party packages, search the `Python Package Index For third-party packages, search the `Python Package Index
<https://pypi.python.org/pypi>`_ or try `Google <https://www.google.com>`_ or <https://pypi.org>`_ or try `Google <https://www.google.com>`_ or
another Web search engine. Searching for "Python" plus a keyword or two for another Web search engine. Searching for "Python" plus a keyword or two for
your topic of interest will usually find something helpful. your topic of interest will usually find something helpful.
...@@ -611,7 +611,7 @@ use ``p.read(n)``. ...@@ -611,7 +611,7 @@ use ``p.read(n)``.
"expect" library. A Python extension that interfaces to expect is called "expect" library. A Python extension that interfaces to expect is called
"expy" and available from http://expectpy.sourceforge.net. A pure Python "expy" and available from http://expectpy.sourceforge.net. A pure Python
solution that works like expect is `pexpect solution that works like expect is `pexpect
<https://pypi.python.org/pypi/pexpect/>`_. <https://pypi.org/project/pexpect/>`_.
How do I access the serial (RS232) port? How do I access the serial (RS232) port?
......
...@@ -41,7 +41,7 @@ appearance---and the curses library will figure out what control codes ...@@ -41,7 +41,7 @@ appearance---and the curses library will figure out what control codes
need to be sent to the terminal to produce the right output. curses need to be sent to the terminal to produce the right output. curses
doesn't provide many user-interface concepts such as buttons, checkboxes, doesn't provide many user-interface concepts such as buttons, checkboxes,
or dialogs; if you need such features, consider a user interface library such as or dialogs; if you need such features, consider a user interface library such as
`Urwid <https://pypi.python.org/pypi/urwid/>`_. `Urwid <https://pypi.org/project/urwid/>`_.
The curses library was originally written for BSD Unix; the later System V The curses library was originally written for BSD Unix; the later System V
versions of Unix from AT&T added many enhancements and new functions. BSD curses versions of Unix from AT&T added many enhancements and new functions. BSD curses
...@@ -55,7 +55,7 @@ everything, though. ...@@ -55,7 +55,7 @@ everything, though.
The Windows version of Python doesn't include the :mod:`curses` The Windows version of Python doesn't include the :mod:`curses`
module. A ported version called `UniCurses module. A ported version called `UniCurses
<https://pypi.python.org/pypi/UniCurses>`_ is available. You could <https://pypi.org/project/UniCurses>`_ is available. You could
also try `the Console module <http://effbot.org/zone/console-index.htm>`_ also try `the Console module <http://effbot.org/zone/console-index.htm>`_
written by Fredrik Lundh, which doesn't written by Fredrik Lundh, which doesn't
use the same API as curses but provides cursor-addressable text output use the same API as curses but provides cursor-addressable text output
...@@ -432,7 +432,7 @@ User Input ...@@ -432,7 +432,7 @@ User Input
The C curses library offers only very simple input mechanisms. Python's The C curses library offers only very simple input mechanisms. Python's
:mod:`curses` module adds a basic text-input widget. (Other libraries :mod:`curses` module adds a basic text-input widget. (Other libraries
such as `Urwid <https://pypi.python.org/pypi/urwid/>`_ have more extensive such as `Urwid <https://pypi.org/project/urwid/>`_ have more extensive
collections of widgets.) collections of widgets.)
There are two methods for getting input from a window: There are two methods for getting input from a window:
......
...@@ -427,25 +427,25 @@ to make sure everything functions as expected in both versions of Python. ...@@ -427,25 +427,25 @@ to make sure everything functions as expected in both versions of Python.
.. _2to3: https://docs.python.org/3/library/2to3.html .. _2to3: https://docs.python.org/3/library/2to3.html
.. _caniusepython3: https://pypi.python.org/pypi/caniusepython3 .. _caniusepython3: https://pypi.org/project/caniusepython3
.. _cheat sheet: http://python-future.org/compatible_idioms.html .. _cheat sheet: http://python-future.org/compatible_idioms.html
.. _coverage.py: https://pypi.python.org/pypi/coverage .. _coverage.py: https://pypi.org/project/coverage
.. _Futurize: http://python-future.org/automatic_conversion.html .. _Futurize: http://python-future.org/automatic_conversion.html
.. _importlib: https://docs.python.org/3/library/importlib.html#module-importlib .. _importlib: https://docs.python.org/3/library/importlib.html#module-importlib
.. _importlib2: https://pypi.python.org/pypi/importlib2 .. _importlib2: https://pypi.org/project/importlib2
.. _Modernize: https://python-modernize.readthedocs.io/ .. _Modernize: https://python-modernize.readthedocs.io/
.. _mypy: http://mypy-lang.org/ .. _mypy: http://mypy-lang.org/
.. _Porting to Python 3: http://python3porting.com/ .. _Porting to Python 3: http://python3porting.com/
.. _Pylint: https://pypi.python.org/pypi/pylint .. _Pylint: https://pypi.org/project/pylint
.. _Python 3 Q & A: https://ncoghlan-devs-python-notes.readthedocs.io/en/latest/python3/questions_and_answers.html .. _Python 3 Q & A: https://ncoghlan-devs-python-notes.readthedocs.io/en/latest/python3/questions_and_answers.html
.. _pytype: https://github.com/google/pytype .. _pytype: https://github.com/google/pytype
.. _python-future: http://python-future.org/ .. _python-future: http://python-future.org/
.. _python-porting: https://mail.python.org/mailman/listinfo/python-porting .. _python-porting: https://mail.python.org/mailman/listinfo/python-porting
.. _six: https://pypi.python.org/pypi/six .. _six: https://pypi.org/project/six
.. _tox: https://pypi.python.org/pypi/tox .. _tox: https://pypi.org/project/tox
.. _trove classifier: https://pypi.python.org/pypi?%3Aaction=list_classifiers .. _trove classifier: https://pypi.org/classifiers
.. _"What's New": https://docs.python.org/3/whatsnew/index.html .. _"What's New": https://docs.python.org/3/whatsnew/index.html
......
...@@ -44,7 +44,7 @@ Key terms ...@@ -44,7 +44,7 @@ Key terms
``venv``. It allows virtual environments to be used on versions of ``venv``. It allows virtual environments to be used on versions of
Python prior to 3.4, which either don't provide ``venv`` at all, or Python prior to 3.4, which either don't provide ``venv`` at all, or
aren't able to automatically install ``pip`` into created environments. aren't able to automatically install ``pip`` into created environments.
* The `Python Packaging Index <https://pypi.python.org/pypi>`__ is a public * The `Python Packaging Index <https://pypi.org>`__ is a public
repository of open source licensed packages made available for use by repository of open source licensed packages made available for use by
other Python users. other Python users.
* the `Python Packaging Authority * the `Python Packaging Authority
......
...@@ -4,7 +4,7 @@ Software Packaging and Distribution ...@@ -4,7 +4,7 @@ Software Packaging and Distribution
These libraries help you with publishing and installing Python software. These libraries help you with publishing and installing Python software.
While these modules are designed to work in conjunction with the While these modules are designed to work in conjunction with the
`Python Package Index <https://pypi.python.org/pypi>`__, they can also be used `Python Package Index <https://pypi.org>`__, they can also be used
with a local index server, or without any index server at all. with a local index server, or without any index server at all.
.. toctree:: .. toctree::
......
...@@ -30,7 +30,7 @@ optional components. ...@@ -30,7 +30,7 @@ optional components.
In addition to the standard library, there is a growing collection of In addition to the standard library, there is a growing collection of
several thousand components (from individual programs and modules to several thousand components (from individual programs and modules to
packages and entire application development frameworks), available from packages and entire application development frameworks), available from
the `Python Package Index <https://pypi.python.org/pypi>`_. the `Python Package Index <https://pypi.org>`_.
.. toctree:: .. toctree::
......
...@@ -212,12 +212,12 @@ Example ...@@ -212,12 +212,12 @@ Example
------- -------
To demonstrate several uses of the :func:`pprint` function and its parameters, To demonstrate several uses of the :func:`pprint` function and its parameters,
let's fetch information about a project from `PyPI <https://pypi.python.org/pypi>`_:: let's fetch information about a project from `PyPI <https://pypi.org>`_::
>>> import json >>> import json
>>> import pprint >>> import pprint
>>> from urllib.request import urlopen >>> from urllib.request import urlopen
>>> with urlopen('http://pypi.python.org/pypi/Twisted/json') as url: >>> with urlopen('http://pypi.org/project/Twisted/json') as url:
... http_info = url.info() ... http_info = url.info()
... raw_data = url.read().decode(http_info.get_content_charset()) ... raw_data = url.read().decode(http_info.get_content_charset())
>>> project_info = json.loads(raw_data) >>> project_info = json.loads(raw_data)
...@@ -248,9 +248,9 @@ In its basic form, :func:`pprint` shows the whole object:: ...@@ -248,9 +248,9 @@ In its basic form, :func:`pprint` shows the whole object::
'maintainer': '', 'maintainer': '',
'maintainer_email': '', 'maintainer_email': '',
'name': 'Twisted', 'name': 'Twisted',
'package_url': 'http://pypi.python.org/pypi/Twisted', 'package_url': 'http://pypi.org/project/Twisted',
'platform': 'UNKNOWN', 'platform': 'UNKNOWN',
'release_url': 'http://pypi.python.org/pypi/Twisted/12.3.0', 'release_url': 'http://pypi.org/project/Twisted/12.3.0',
'requires_python': None, 'requires_python': None,
'stable_version': None, 'stable_version': None,
'summary': 'An asynchronous networking framework written in Python', 'summary': 'An asynchronous networking framework written in Python',
...@@ -264,7 +264,7 @@ In its basic form, :func:`pprint` shows the whole object:: ...@@ -264,7 +264,7 @@ In its basic form, :func:`pprint` shows the whole object::
'python_version': 'source', 'python_version': 'source',
'size': 2615733, 'size': 2615733,
'upload_time': '2012-12-26T12:47:03', 'upload_time': '2012-12-26T12:47:03',
'url': 'https://pypi.python.org/packages/source/T/Twisted/Twisted-12.3.0.tar.bz2'}, 'url': 'https://pypi.org/packages/source/T/Twisted/Twisted-12.3.0.tar.bz2'},
{'comment_text': '', {'comment_text': '',
'downloads': 5224, 'downloads': 5224,
'filename': 'Twisted-12.3.0.win32-py2.7.msi', 'filename': 'Twisted-12.3.0.win32-py2.7.msi',
...@@ -274,7 +274,7 @@ In its basic form, :func:`pprint` shows the whole object:: ...@@ -274,7 +274,7 @@ In its basic form, :func:`pprint` shows the whole object::
'python_version': '2.7', 'python_version': '2.7',
'size': 2916352, 'size': 2916352,
'upload_time': '2012-12-26T12:48:15', 'upload_time': '2012-12-26T12:48:15',
'url': 'https://pypi.python.org/packages/2.7/T/Twisted/Twisted-12.3.0.win32-py2.7.msi'}]} 'url': 'https://pypi.org/packages/2.7/T/Twisted/Twisted-12.3.0.win32-py2.7.msi'}]}
The result can be limited to a certain *depth* (ellipsis is used for deeper The result can be limited to a certain *depth* (ellipsis is used for deeper
contents):: contents)::
...@@ -301,9 +301,9 @@ contents):: ...@@ -301,9 +301,9 @@ contents)::
'maintainer': '', 'maintainer': '',
'maintainer_email': '', 'maintainer_email': '',
'name': 'Twisted', 'name': 'Twisted',
'package_url': 'http://pypi.python.org/pypi/Twisted', 'package_url': 'http://pypi.org/project/Twisted',
'platform': 'UNKNOWN', 'platform': 'UNKNOWN',
'release_url': 'http://pypi.python.org/pypi/Twisted/12.3.0', 'release_url': 'http://pypi.org/project/Twisted/12.3.0',
'requires_python': None, 'requires_python': None,
'stable_version': None, 'stable_version': None,
'summary': 'An asynchronous networking framework written in Python', 'summary': 'An asynchronous networking framework written in Python',
...@@ -339,9 +339,9 @@ cannot be split, the specified width will be exceeded:: ...@@ -339,9 +339,9 @@ cannot be split, the specified width will be exceeded::
'maintainer': '', 'maintainer': '',
'maintainer_email': '', 'maintainer_email': '',
'name': 'Twisted', 'name': 'Twisted',
'package_url': 'http://pypi.python.org/pypi/Twisted', 'package_url': 'http://pypi.org/project/Twisted',
'platform': 'UNKNOWN', 'platform': 'UNKNOWN',
'release_url': 'http://pypi.python.org/pypi/Twisted/12.3.0', 'release_url': 'http://pypi.org/project/Twisted/12.3.0',
'requires_python': None, 'requires_python': None,
'stable_version': None, 'stable_version': None,
'summary': 'An asynchronous networking ' 'summary': 'An asynchronous networking '
......
...@@ -45,7 +45,7 @@ fine-tuning parameters. ...@@ -45,7 +45,7 @@ fine-tuning parameters.
.. seealso:: .. seealso::
The third-party `regex <https://pypi.python.org/pypi/regex/>`_ module, The third-party `regex <https://pypi.org/project/regex/>`_ module,
which has an API compatible with the standard library :mod:`re` module, which has an API compatible with the standard library :mod:`re` module,
but offers additional functionality and a more thorough Unicode support. but offers additional functionality and a more thorough Unicode support.
......
...@@ -2158,9 +2158,9 @@ Visual inspection shows that the certificate does identify the desired service ...@@ -2158,9 +2158,9 @@ Visual inspection shows that the certificate does identify the desired service
(('commonName', 'www.python.org'),)), (('commonName', 'www.python.org'),)),
'subjectAltName': (('DNS', 'www.python.org'), 'subjectAltName': (('DNS', 'www.python.org'),
('DNS', 'python.org'), ('DNS', 'python.org'),
('DNS', 'pypi.python.org'), ('DNS', 'pypi.org'),
('DNS', 'docs.python.org'), ('DNS', 'docs.python.org'),
('DNS', 'testpypi.python.org'), ('DNS', 'testpypi.org'),
('DNS', 'bugs.python.org'), ('DNS', 'bugs.python.org'),
('DNS', 'wiki.python.org'), ('DNS', 'wiki.python.org'),
('DNS', 'hg.python.org'), ('DNS', 'hg.python.org'),
......
...@@ -35,7 +35,7 @@ is based on the 'action -> assertion' pattern instead of 'record -> replay' ...@@ -35,7 +35,7 @@ is based on the 'action -> assertion' pattern instead of 'record -> replay'
used by many mocking frameworks. used by many mocking frameworks.
There is a backport of :mod:`unittest.mock` for earlier versions of Python, There is a backport of :mod:`unittest.mock` for earlier versions of Python,
available as `mock on PyPI <https://pypi.python.org/pypi/mock>`_. available as `mock on PyPI <https://pypi.org/project/mock>`_.
Quick Guide Quick Guide
...@@ -2085,7 +2085,7 @@ mock_open ...@@ -2085,7 +2085,7 @@ mock_open
the start. If you need more control over the data that you are feeding to the start. If you need more control over the data that you are feeding to
the tested code you will need to customize this mock for yourself. When that the tested code you will need to customize this mock for yourself. When that
is insufficient, one of the in-memory filesystem packages on `PyPI is insufficient, one of the in-memory filesystem packages on `PyPI
<https://pypi.python.org/pypi>`_ can offer a realistic filesystem for testing. <https://pypi.org>`_ can offer a realistic filesystem for testing.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Added :meth:`~io.IOBase.readline` and :meth:`~io.IOBase.readlines` support. Added :meth:`~io.IOBase.readline` and :meth:`~io.IOBase.readlines` support.
......
...@@ -130,8 +130,8 @@ but will not be included in any bugfix releases of ...@@ -130,8 +130,8 @@ but will not be included in any bugfix releases of
Python because they break backward compatibility. Python because they break backward compatibility.
.. _defusedxml: https://pypi.python.org/pypi/defusedxml/ .. _defusedxml: https://pypi.org/project/defusedxml/
.. _defusedexpat: https://pypi.python.org/pypi/defusedexpat/ .. _defusedexpat: https://pypi.org/project/defusedexpat/
.. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs .. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs
.. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb .. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
.. _DTD: https://en.wikipedia.org/wiki/Document_type_definition .. _DTD: https://en.wikipedia.org/wiki/Document_type_definition
...@@ -88,7 +88,7 @@ Managing Packages with pip ...@@ -88,7 +88,7 @@ Managing Packages with pip
You can install, upgrade, and remove packages using a program called You can install, upgrade, and remove packages using a program called
:program:`pip`. By default ``pip`` will install packages from the Python :program:`pip`. By default ``pip`` will install packages from the Python
Package Index, <https://pypi.python.org/pypi>. You can browse the Python Package Index, <https://pypi.org>. You can browse the Python
Package Index by going to it in your web browser, or you can use ``pip``'s Package Index by going to it in your web browser, or you can use ``pip``'s
limited search feature: limited search feature:
......
...@@ -38,7 +38,7 @@ More Python resources: ...@@ -38,7 +38,7 @@ More Python resources:
* https://docs.python.org: Fast access to Python's documentation. * https://docs.python.org: Fast access to Python's documentation.
* https://pypi.python.org/pypi: The Python Package Index, previously also nicknamed * https://pypi.org: The Python Package Index, previously also nicknamed
the Cheese Shop, is an index of user-created Python modules that are available the Cheese Shop, is an index of user-created Python modules that are available
for download. Once you begin releasing code, you can register it here so that for download. Once you begin releasing code, you can register it here so that
others can find it. others can find it.
......
...@@ -848,7 +848,7 @@ The Windows-specific standard modules are documented in ...@@ -848,7 +848,7 @@ The Windows-specific standard modules are documented in
PyWin32 PyWin32
------- -------
The `PyWin32 <https://pypi.python.org/pypi/pywin32>`_ module by Mark Hammond The `PyWin32 <https://pypi.org/project/pywin32>`_ module by Mark Hammond
is a collection of modules for advanced Windows-specific support. This includes is a collection of modules for advanced Windows-specific support. This includes
utilities for: utilities for:
......
...@@ -659,7 +659,7 @@ The heart of the catalog is the new Distutils :command:`register` command. ...@@ -659,7 +659,7 @@ The heart of the catalog is the new Distutils :command:`register` command.
Running ``python setup.py register`` will collect the metadata describing a Running ``python setup.py register`` will collect the metadata describing a
package, such as its name, version, maintainer, description, &c., and send it to package, such as its name, version, maintainer, description, &c., and send it to
a central catalog server. The resulting catalog is available from a central catalog server. The resulting catalog is available from
https://pypi.python.org/pypi. https://pypi.org.
To make the catalog a bit more useful, a new optional *classifiers* keyword To make the catalog a bit more useful, a new optional *classifiers* keyword
argument has been added to the Distutils :func:`setup` function. A list of argument has been added to the Distutils :func:`setup` function. A list of
......
...@@ -229,7 +229,7 @@ required packages. :: ...@@ -229,7 +229,7 @@ required packages. ::
) )
Another new enhancement to the Python package index at Another new enhancement to the Python package index at
https://pypi.python.org is storing source and binary archives for a https://pypi.org is storing source and binary archives for a
package. The new :command:`upload` Distutils command will upload a package to package. The new :command:`upload` Distutils command will upload a package to
the repository. the repository.
......
...@@ -1828,7 +1828,7 @@ new features were added. Most of these features were implemented ...@@ -1828,7 +1828,7 @@ new features were added. Most of these features were implemented
by Michael Foord, unless otherwise noted. The enhanced version of by Michael Foord, unless otherwise noted. The enhanced version of
the module is downloadable separately for use with Python versions 2.4 to 2.6, the module is downloadable separately for use with Python versions 2.4 to 2.6,
packaged as the :mod:`unittest2` package, from packaged as the :mod:`unittest2` package, from
https://pypi.python.org/pypi/unittest2. https://pypi.org/project/unittest2.
When used from the command line, the module can automatically discover When used from the command line, the module can automatically discover
tests. It's not as fancy as `py.test <http://pytest.org>`__ or tests. It's not as fancy as `py.test <http://pytest.org>`__ or
......
...@@ -951,7 +951,7 @@ New :class:`~collections.abc.Awaitable`, :class:`~collections.abc.Coroutine`, ...@@ -951,7 +951,7 @@ New :class:`~collections.abc.Awaitable`, :class:`~collections.abc.Coroutine`,
(Contributed by Yury Selivanov in :issue:`24184`.) (Contributed by Yury Selivanov in :issue:`24184`.)
For earlier Python versions, a backport of the new ABCs is available in an For earlier Python versions, a backport of the new ABCs is available in an
external `PyPI package <https://pypi.python.org/pypi/backports_abc>`_. external `PyPI package <https://pypi.org/project/backports_abc>`_.
compileall compileall
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment