From 31270c14e30901ae5b178f72c67a83efe070768c Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Tue, 25 Mar 2025 09:48:50 +0545 Subject: [PATCH] pyproject: update license to PEP 639 format (#10709) Requires bumping `setuptools` to 77.0.0 or later. See: - [PEP 639](https://peps.python.org/pep-0639) - [Writing pyproject.toml - license](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license) --- pyproject.toml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 83a78c769..c7804832e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = "setuptools.build_meta" -requires = ["setuptools>=61", "setuptools_scm[toml]>=7"] +requires = ["setuptools>=77", "setuptools_scm[toml]>=7"] [project] name = "dvc" @@ -16,7 +16,8 @@ keywords = [ "machine-learning", "reproducibility", ] -license = { text = "Apache License 2.0" } +license = "Apache-2.0" +license-files = ["LICENSE"] maintainers = [{ name = "Iterative", email = "support@dvc.org" }] authors = [{ name = "Dmitry Petrov", email = "dmitry@dvc.org" }] requires-python = ">=3.9" @@ -149,9 +150,6 @@ dvc = "dvc.fs.dvc_path:DVCPath" hook-dirs = "dvc.__pyinstaller:get_hook_dirs" tests = "dvc.__pyinstaller:get_PyInstaller_tests" -[tool.setuptools] -license-files = ["LICENSE"] - [tool.setuptools.packages.find] exclude = ["tests", "tests.*"] namespaces = false