dev-build/kas: add 5.1

Signed-off-by: David Roman <droman@ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/44300
Closes: https://github.com/gentoo/gentoo/pull/44300
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
David Roman 2025-10-23 17:10:16 +02:00 committed by Joonas Niilola
parent 0d4a073eff
commit 1f18c16cb0
No known key found for this signature in database
GPG Key ID: 7383942B8DC06962
2 changed files with 88 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST kas-4.5.gh.tar.gz 102079 BLAKE2B d856385fc60bcbeaad8a5847ead88eac9a84a8ef8b0d4cd1247a58096f89a9f8d8348ff0842980285e3fb6f6cb9e5175e5f6bd80155bc57fe00d45b270607e6a SHA512 5625f1a8759f1cd0e3ae3ce0aaf51159dfe48f047b4217f74508ef10e0b27e24faaa8b6cf38d4eaec58c5a3faefc8df1d2a429e5f39808dfb47cbba7e78f6b30
DIST kas-4.8.2.gh.tar.gz 134665 BLAKE2B 2c81e31437424a0d03a0247819e54573e45e90e7ceae84b42348fef4584e75415b766389df9fe75868a52f0a3fcfec4b1d2218c2b59c62ee93bc11c1dac27a76 SHA512 09ee32f756ac90c229d1942f4191a4e24bef70ac042c5958a8599e2238a1e01bc280c26b021da49fc4f3f4566cc6b6aa4f33a04be3a10bf1ec0e5876600465f3
DIST kas-5.1.gh.tar.gz 141260 BLAKE2B 1168202fa2ff6d6b72fcde049add8030d963f9b4d25ea882f1d0fea62f6a7624a2de449d13f8925ddaa82b743ec9fac68cc8bc1f73b84feead6c83740940d9bf SHA512 a399f248eb9a1d39a95c525ae43f642db1096a57b2caf94397af80e99cbb218a905186661b850d72b1f3997b7b10782a53980cac793f7859ee95d633f355e583

View File

@ -0,0 +1,87 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 optfeature
DESCRIPTION="Setup tool for bitbake based projects"
HOMEPAGE="
https://github.com/siemens/kas
https://kas.readthedocs.io/en/latest/
https://pypi.org/project/kas/
"
# pypi does not package tests
SRC_URI="
https://github.com/siemens/kas/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/pyyaml-3.0.0[${PYTHON_USEDEP}]
>=dev-python/distro-1.0.0[${PYTHON_USEDEP}]
>=dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
>=dev-python/kconfiglib-14.1.0[${PYTHON_USEDEP}]
>=dev-python/gitpython-3.1.0[${PYTHON_USEDEP}]
dev-libs/newt[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
test? (
dev-python/python-gnupg[${PYTHON_USEDEP}]
dev-vcs/git
dev-vcs/mercurial
)
"
distutils_enable_tests pytest
EPYTEST_DESELECT=(
"tests/test_build.py::test_provenance"
"tests/test_commands.py::test_for_all_repos"
"tests/test_commands.py::test_checkout_with_ci_rewrite"
"tests/test_commands.py::test_checkout_create_refs[noenv]"
"tests/test_commands.py::test_checkout_shallow[noenv]"
"tests/test_commands.py::test_checkout[noenv]"
"tests/test_commands.py::test_repo_includes[noenv]"
"tests/test_commands.py::test_repo_includes"
"tests/test_commands.py::test_shallow_updates[noenv]"
"tests/test_refspec.py::test_refspec_switch[noenv]"
"tests/test_refspec.py::test_refspec_absolute[noenv]"
"tests/test_refspec.py::test_tag_commit_do_not_match[noenv] "
"tests/test_refspec.py::test_unsafe_tag_warning[noenv]"
"tests/test_refspec.py::test_tag_branch_same_name[noenv]"
"tests/test_refspec.py::test_refspec_warning[noenv]"
"tests/test_refspec.py::test_branch_and_tag[noenv]"
"tests/test_refspec.py::test_commit_expand[noenv]"
"tests/test_refspec.py::test_tag_commit_do_not_match[noenv]"
"tests/test_signature_verify.py::test_signed_gpg_invalid[noenv]"
"tests/test_signature_verify.py::test_signed_gpg_remove_key[noenv]"
"tests/test_signature_verify.py::test_signed_gpg_local_key"
"tests/test_commands.py::test_dump[noenv]"
"tests/test_commands.py::test_diff"
"tests/test_commands.py::test_lockfile"
"tests/test_environment_variables.py::test_env_section_export_bb_extra_white"
"tests/test_environment_variables.py::test_env_section_export_bb_env_passthrough_additions"
"tests/test_environment_variables.py::test_ssh_agent_setup"
)
EPYTEST_IGNORE=(
"tests/test_layers.py"
"tests/test_menu.py"
"tests/test_patch.py"
)
pkg_postinst() {
optfeature_header "Install optional tools to clone repositories:"
optfeature "git repository support" dev-vcs/git
optfeature "mercurial repository support" dev-vcs/mercurial
}