python-docker: fix pyproject.toml issues

* Getting build dependencies for wheel...

ERROR Missing dependencies:
   hatch-vcs

File "./staging_dir/hostpkg/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 51, in validate
raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one definition (2 matches found):

- keys:
    'file': {type: string}
  required: ['file']
- keys:
    'text': {type: string}
  required: ['text']

Signed-off-by: Javier Marcet <javier@marcet.info>
This commit is contained in:
Javier Marcet
2024-06-24 21:29:56 +02:00
committed by Tianling Shen
parent ac191fb6f4
commit f872c8970e

View File

@@ -0,0 +1,18 @@
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
-requires = ["hatchling", "hatch-vcs"]
+requires = []
build-backend = "hatchling.build"
[project]
@@ -7,7 +7,7 @@ name = "docker"
dynamic = ["version"]
description = "A Python library for the Docker Engine API."
readme = "README.md"
-license = "Apache-2.0"
+license = { text = "Apache-2.0" }
requires-python = ">=3.8"
maintainers = [
{ name = "Docker Inc.", email = "no-reply@docker.com" },