Skip to content

Commit

Permalink
Merge pull request #1464 from jeanas/standard-changelogs
Browse files Browse the repository at this point in the history
Consistent changelogs for all specs
  • Loading branch information
pradyunsg authored Dec 22, 2023
2 parents f34c6d1 + c0f078d commit 0b7879f
Show file tree
Hide file tree
Showing 15 changed files with 105 additions and 57 deletions.
9 changes: 3 additions & 6 deletions source/specifications/binary-distribution-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,9 @@ Is it possible to import Python code directly from a wheel file?
History
=======

This specification was originally approved as :pep:`427`.

The following changes were applied since the initial version:

- The rules on escaping in wheel filenames were revised, to bring them
into line with what popular tools actually do (February 2021).
- February 2013: This specification was approved through :pep:`427`.
- February 2021: The rules on escaping in wheel filenames were revised, to bring
them into line with what popular tools actually do.


Appendix
Expand Down
20 changes: 20 additions & 0 deletions source/specifications/core-metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,26 @@ Example::
Obsoletes: Gorgon


History
=======

- March 2001: Core metadata 1.0 was approved through :pep:`241`.
- April 2003: Core metadata 1.1 was approved through :pep:`314`:
- February 2010: Core metadata 1.2 was approved through :pep:`345`.
- February 2018: Core metadata 2.1 was approved through :pep:`566`.

- Added ``Description-Content-Type`` and ``Provides-Extra``.
- Added canonical method for transforming metadata to JSON.
- Restricted the grammar of the ``Name`` field.

- October 2020: Core metadata 2.2 was approved through :pep:`643`.

- Added the ``Dynamic`` field.

- March 2022: Core metadata 2.3 was approved through :pep:`685`.

- Restricted extra names to be normalized.

----

.. [1] reStructuredText markup:
Expand Down
16 changes: 9 additions & 7 deletions source/specifications/dependency-specifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,12 @@ A test program - if the grammar is in a string ``grammar``:
print("%s -> %s" % (test, parsed))
Summary of changes to PEP 508
=============================
History
=======

The following changes were made based on feedback after its initial
implementation:

- The definition of ``python_version`` was changed from
``platform.python_version()[:3]`` to
- November 2015: This specification was approved through :pep:`508`.
- July 2019: The definition of ``python_version`` was `changed
<python-version-change_>`_ from ``platform.python_version()[:3]`` to
``'.'.join(platform.python_version_tuple()[:2])``, to accommodate potential
future versions of Python with 2-digit major and minor versions
(e.g. 3.10). [#future_versions]_
Expand All @@ -497,3 +495,7 @@ References
.. [#future_versions] Future Python versions might be problematic with the
definition of Environment Marker Variable ``python_version``
(https://github.com/python/peps/issues/560)
.. _python-version-change: https://mail.python.org/pipermail/distutils-sig/2018-January/031920.html
13 changes: 9 additions & 4 deletions source/specifications/direct-url-data-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,15 @@ Local directory in editable mode:
}
}
History
=======

- March 2020: this data structure was originally specified as part of the
``direct_url.json`` metadata file in :pep:`610` and is formally documented here.
- January 2023: Added the ``archive_info.hashes`` key
([discussion](https://discuss.python.org/t/22299)).
- March 2020: This specification was approved through :pep:`610`, defining
the ``direct_url.json`` metadata file.
- January 2023: Added the ``archive_info.hashes`` key (`discussion
<archive-info-hashes_>`_).



.. _archive-info-hashes: https://discuss.python.org/t/22299
4 changes: 2 additions & 2 deletions source/specifications/direct-url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Commands that *do not* generate a ``direct_url.json``
* ``pip install app``
* ``pip install app --no-index --find-links https://example.com/``


History
=======

- March 2020: the ``direct_url.json`` metadata file was originally specified in
:pep:`610` and is formally documented here.
- March 2020: This specification was approved through :pep:`610`.
11 changes: 11 additions & 0 deletions source/specifications/entry-points.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,14 @@ which defines where command-line tools are found.
As files are created from the names, and some filesystems are case-insensitive,
packages should avoid using names in these groups which differ only in case.
The behaviour of install tools when names differ only in case is undefined.


History
=======

- October 2017: This specification was written to formalize the existing
entry points feature of setuptools (discussion_).



.. _discussion: https://mail.python.org/pipermail/distutils-sig/2017-October/031585.html
2 changes: 1 addition & 1 deletion source/specifications/externally-managed-environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,4 @@ CC0-1.0-Universal license, whichever is more permissive.
History
=======

This specification was originally approved as :pep:`668`.
- June 2022: This specification was approved through :pep:`668`.
2 changes: 1 addition & 1 deletion source/specifications/inline-script-metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@ the highest available version of Python that is compatible with the script's
History
=======

This specification was originally defined as :pep:`723`.
- October 2023: This specification was conditionally approved through :pep:`723`.
6 changes: 4 additions & 2 deletions source/specifications/name-normalization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ This means that the following names are all equivalent:
History
=======

- `September 2015 <https://mail.python.org/pipermail/distutils-sig/2015-September/026899.html>`_: normalized name was originally specified in :pep:`503#normalized-names`.
- `November 2015 <https://mail.python.org/pipermail/distutils-sig/2015-November/027868.html>`_: valid non-normalized name was originally specified in :pep:`508#names`.
- September 2015: The specification of name normalized was approved through
:pep:`503 <503#normalized-names>`.
- November 2015: The specification of valid names was approved through
:pep:`508 <508#names>`.
19 changes: 12 additions & 7 deletions source/specifications/platform-compatibility-tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ Platform compatibility tags allow build tools to mark distributions as being
compatible with specific platforms, and allows installers to understand which
distributions are compatible with the system they are running on.

The following PEPs contributed to this spec:

1. :pep:`425`
2. :pep:`513`
3. :pep:`571`
4. :pep:`599`
5. :pep:`600`

Overview
========
Expand Down Expand Up @@ -302,3 +295,15 @@ Why is the ABI tag (the second tag) sometimes "none" in the reference implementa
implementation at the time of writing guesses "none". Ideally it
would detect "py27(d|m|u)" analogous to newer versions of Python,
but in the meantime "none" is a good enough way to say "don't know".


History
=======

- February 2013: The original version of this specification was approved through
:pep:`425`.
- January 2016: The ``manylinux1`` tag was approved through :pep:`513`.
- April 2018: The ``manylinux2010`` tag was approved through :pep:`571`.
- July 2019: The ``manylinux2014`` tag was approved through :pep:`599`.
- November 2019: The ``manylinux_x_y`` perennial tag was approved through
:pep:`600`.
8 changes: 6 additions & 2 deletions source/specifications/pyproject-toml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,12 @@ the subtable ``tool.$NAME`` if, and only if, they own the entry for
History
=======

This specification was originally defined in :pep:`518` (``[build-system]``
and ``[tool]`` tables) and :pep:`621` (``[project]`` table).
- May 2016: The initial specification of the ``pyproject.toml`` file, with just
a ``[build-system]`` containing a ``requires`` key and a ``[tool]`` table, was
approved through :pep:`518`.

- November 2020: The specification of the ``[project]`` table was approved
through :pep:`621`.



Expand Down
29 changes: 13 additions & 16 deletions source/specifications/recording-installed-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,6 @@ files in a format specific to Python tooling, it should still record the name
and version of the installed project.


History and change workflow
===========================

The metadata described here was first specified in :pep:`376`, and later
amended in :pep:`627` (and other PEPs).
It was formerly known as *Database of Installed Python Distributions*.
As with other PyPA specifications, editorial amendments with no functional
impact may be made through the GitHub pull request workflow. Proposals for
functional changes that would require amendments to package building and/or
installation tools must be made through the PEP process (see :pep:`1`).

While this document is the normative specification, the PEPs that introduce
changes to it may include additional information such as rationales and
backwards compatibility considerations.


The .dist-info directory
========================

Expand Down Expand Up @@ -262,3 +246,16 @@ ensuring both locations appear on the default Python import path).
In some circumstances, it may be desirable to block even installation of
additional packages via Python-specific tools. For these cases refer to
:ref:`externally-managed-environments`


History
=======

- June 2009: The original version of this specification was approved through
:pep:`376`. At the time, it was known as the *Database of Installed Python
Distributions*.
- March 2020: The specification of the ``direct_url.json`` file was approved
through :pep:`610`. It is only mentioned on this page; see :ref:`direct-url`
for the full definition.
- September 2020: Various amendments and clarifications were approved through
:pep:`627`.
12 changes: 7 additions & 5 deletions source/specifications/source-distribution-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ verification* in ``tarfile`` documentation apply to their tool.
History
=======

* August 2023: Standardized the source distribution archive features (:pep:`721`)
* September 2022: Standardized the filename of a source distribution (:pep:`625`)
* July 2021: Defined what a source tree is
* November 2020: :pep:`643` converted to this specification
* December 2000: Source distributions standardized in :pep:`643`
* November 2020: The original version of this specification was approved through
:pep:`643`.
* July 2021: Defined what a source tree is.
* September 2022: The filename of a source distribution was standardized through
:pep:`625`.
* August 2023: Source distribution archive features were standardized through
:pep:`721`.
5 changes: 1 addition & 4 deletions source/specifications/version-specifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,4 @@ project):
History
=======

This specification was originally approved as :pep:`440`,
addressing several limitations of the previous attempt
at standardized versioning, as described in :pep:`345`
and :pep:`386`.
- August 2014: This specification was approved through :pep:`440`.
6 changes: 6 additions & 0 deletions source/specifications/virtual-environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ Even in the absence of a ``pyvenv.cfg`` file, any approach (e.g.
``sys.prefix`` and ``sys.base_prefix`` having different values, while still
providing a matching default package installation scheme in ``sysconfig``, will
be detected and behave as a Python virtual environment.


History
=======

- May 2012: This specification was approved through :pep:`405`.

0 comments on commit 0b7879f

Please sign in to comment.