Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Switch license metadata to the PEP 639 format
Also, include all license files for the vendored dependencies inside the wheel,
and in the `License-File` package metadata field.

License files are included in distributions automatically, so remove them from
`MANIFEST.in`.
  • Loading branch information
SpecLad committed Apr 20, 2025
commit c2cee964456819aec136e5a6fa58baf84aa3e60b
4 changes: 0 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include AUTHORS.txt
include LICENSE.txt
include NEWS.rst
include README.rst
include SECURITY.md
Expand All @@ -12,8 +10,6 @@ include build-project/.python-version

include src/pip/_vendor/README.rst
include src/pip/_vendor/vendor.txt
recursive-include src/pip/_vendor *LICENSE*
recursive-include src/pip/_vendor *COPYING*

include docs/requirements.txt

Expand Down
3 changes: 3 additions & 0 deletions news/13335.process.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip's own licensing metadata now follows PEP 639.
In addition, the licenses of pip's vendored dependencies are now included
in the ``License-File`` metadata field and in the wheel.
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ dynamic = ["version"]
name = "pip"
description = "The PyPA recommended tool for installing Python packages."
readme = "README.rst"
license = {text = "MIT"}
license = "MIT"
license-files = [
"AUTHORS.txt",
"LICENSE.txt",
"src/pip/_vendor/**/*COPYING*",
"src/pip/_vendor/**/*LICENSE*",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down Expand Up @@ -40,8 +45,7 @@ Source = "https://github.com/pypa/pip"
Changelog = "https://pip.pypa.io/en/stable/news/"

[build-system]
# The lower bound is for <https://github.com/pypa/setuptools/issues/3865>.
requires = ["setuptools>=67.6.1"]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
Expand Down