Skip to content

Commit f21c3ae

Browse files
committed
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`.
1 parent 84b09d0 commit f21c3ae

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

MANIFEST.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
include AUTHORS.txt
2-
include LICENSE.txt
31
include NEWS.rst
42
include README.rst
53
include SECURITY.md
@@ -12,8 +10,6 @@ include build-project/.python-version
1210

1311
include src/pip/_vendor/README.rst
1412
include src/pip/_vendor/vendor.txt
15-
recursive-include src/pip/_vendor *LICENSE*
16-
recursive-include src/pip/_vendor *COPYING*
1713

1814
include docs/requirements.txt
1915

news/13335.feature.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pip's own licensing metadata now follows PEP 639.
2+
In addition, the licenses of pip's vendored dependencies are now included
3+
in the ``License-File`` metadata field.

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ dynamic = ["version"]
44
name = "pip"
55
description = "The PyPA recommended tool for installing Python packages."
66
readme = "README.rst"
7-
license = {text = "MIT"}
7+
license = "MIT"
8+
license-files = [
9+
"AUTHORS.txt",
10+
"LICENSE.txt",
11+
"src/pip/_vendor/**/*COPYING*",
12+
"src/pip/_vendor/**/*LICENSE*",
13+
]
814
classifiers = [
915
"Development Status :: 5 - Production/Stable",
1016
"Intended Audience :: Developers",
11-
"License :: OSI Approved :: MIT License",
1217
"Topic :: Software Development :: Build Tools",
1318
"Programming Language :: Python",
1419
"Programming Language :: Python :: 3",
@@ -40,8 +45,7 @@ Source = "https://github.com/pypa/pip"
4045
Changelog = "https://pip.pypa.io/en/stable/news/"
4146

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

4751
[tool.setuptools]

0 commit comments

Comments
 (0)