Skip to content

Commit 31270c1

Browse files
authored
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)
1 parent 28b7c8b commit 31270c1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
3-
requires = ["setuptools>=61", "setuptools_scm[toml]>=7"]
3+
requires = ["setuptools>=77", "setuptools_scm[toml]>=7"]
44

55
[project]
66
name = "dvc"
@@ -16,7 +16,8 @@ keywords = [
1616
"machine-learning",
1717
"reproducibility",
1818
]
19-
license = { text = "Apache License 2.0" }
19+
license = "Apache-2.0"
20+
license-files = ["LICENSE"]
2021
maintainers = [{ name = "Iterative", email = "[email protected]" }]
2122
authors = [{ name = "Dmitry Petrov", email = "[email protected]" }]
2223
requires-python = ">=3.9"
@@ -149,9 +150,6 @@ dvc = "dvc.fs.dvc_path:DVCPath"
149150
hook-dirs = "dvc.__pyinstaller:get_hook_dirs"
150151
tests = "dvc.__pyinstaller:get_PyInstaller_tests"
151152

152-
[tool.setuptools]
153-
license-files = ["LICENSE"]
154-
155153
[tool.setuptools.packages.find]
156154
exclude = ["tests", "tests.*"]
157155
namespaces = false

0 commit comments

Comments
 (0)