mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
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:
committed by
Tianling Shen
parent
ac191fb6f4
commit
f872c8970e
18
lang/python/python-docker/patches/pyproject.patch
Normal file
18
lang/python/python-docker/patches/pyproject.patch
Normal 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" },
|
||||
Reference in New Issue
Block a user