blob: 00fcbc12ff8ad13bf8ab88879176eb5a70b07fca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# 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"
)
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
}
|