From f8bd28ac4b37415775818fa2e500dcb4edb6f338 Mon Sep 17 00:00:00 2001 From: Tom Nijhof Date: Sun, 15 Mar 2026 22:34:35 +0100 Subject: [PATCH] Use PEP 639 license metadata for uv itself (#16477) ## Summary In [pep 639](https://peps.python.org/pep-0639/) the classifier for licenses gets deprecated in favor of the license field. The benefits for UV: - Clear that you can pick a license, not have to have both - Clear it is version 2 for the Apache license https://peps.python.org/pep-0639/ ## Test Plan Builds, works. If the license shows up in pypi.org with the SPDX operator, it works --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cd5761d49..130ee35ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,13 +11,13 @@ requires-python = ">=3.8" keywords = [ "uv", "requirements", "packaging" ] +license="MIT OR Apache-2.0" +license-files = ["LICENSE-APACHE", "LICENSE-MIT"] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Operating System :: OS Independent", - "License :: OSI Approved :: MIT License", - "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9",