Skip to content

Commit 7d1ea01

Browse files
committed
Install *.yaml files from meta-schemas and schemas
The Arch Linux package uses the following commands to build and install the project: $ python -m build --wheel --no-isolation $ python -m installer --destdir="$pkgdir" dist/*.whl The installed output in $pkgdir however does not contain the *.yaml schemas from dtschema/meta-schemas and dtschema/schemas. Add setuptools configuration so the *.yaml files are installed. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
1 parent aa85941 commit 7d1ea01

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ build-backend = "setuptools.build_meta"
55
[tool.setuptools_scm]
66
write_to = "dtschema/version.py"
77

8+
[tool.setuptools.packages.find]
9+
include = ["dtschema"]
10+
11+
[tool.setuptools.package-data]
12+
dtschema = ["meta-schemas/**/*.yaml", "schemas/**/*.yaml"]
13+
814
[project]
915
name = "dtschema"
1016
description = "DeviceTree validation schema and tools"

0 commit comments

Comments
 (0)