Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/yq/
Date: Wed, 06 Jul 2022 17:50:13
Message-Id: 1657129803.29f452fd59bc76c479d09ab39c242ea02a5dc2f4.chutzpah@gentoo
1 commit: 29f452fd59bc76c479d09ab39c242ea02a5dc2f4
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 17:50:03 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 6 17:50:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29f452fd
7
8 app-misc/yq: add 3.0.2
9
10 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
11
12 app-misc/yq/Manifest | 1 +
13 app-misc/yq/yq-3.0.2.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/app-misc/yq/Manifest b/app-misc/yq/Manifest
17 index e8fb6586b1d4..633ae691ad4b 100644
18 --- a/app-misc/yq/Manifest
19 +++ b/app-misc/yq/Manifest
20 @@ -1,2 +1,3 @@
21 DIST yq-2.13.0.tar.gz 21695 BLAKE2B e6d75cde2c298c19616647aeb14f1e34b1a68bb4db1b7e6f4e2619166ef10142ebd405d3c21492e4f5880c46a8d42222ce22b08afec492e97102923e6b838e2d SHA512 fd2722450606175b7d6674407c992f1f542b8b2309fcb33d4eb7d6e3dbc6dbc9e04b3dae7c4c649d814fdffaa18cbd50472672f1d1357fc58c5306de082b353a
22 DIST yq-2.14.0.tar.gz 28030 BLAKE2B 07e200524390e938705854c5d1ac4921fbc8f165cdbf8152e36124e52a1c51c70d6d711b67a3dac8c2bbf1f75040466e8d94505aa5f19e388a31bbcdc92e91bd SHA512 77d5d9cefc70fae9f2606434e11c3b14facb68113f6f99017f87acc860684a1b7a94ecf01514e8fa85a6d9cc860df926e13d1ac5bec160e7d057074d758d1d34
23 +DIST yq-3.0.2.tar.gz 28939 BLAKE2B 146fe302064db21ae3d93224875bb49a49a3392e4be3acb9265c6bac98b754f5e75910e03b9ce0c3f5eaa19dbf959144d9443f24ecb5ecec9382cd85d7d03e8f SHA512 228b8390c6429381cefed32327e502d0f975cd4c3bf7918efad7e8119b5a93b4ff1216fd35117eed46b8282ec6a7314ae1a15028deab45aa3fc2cb5b6d86a777
24
25 diff --git a/app-misc/yq/yq-3.0.2.ebuild b/app-misc/yq/yq-3.0.2.ebuild
26 new file mode 100644
27 index 000000000000..1a8f2da5f32d
28 --- /dev/null
29 +++ b/app-misc/yq/yq-3.0.2.ebuild
30 @@ -0,0 +1,50 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +PYTHON_COMPAT=( python3_{9..11} pypy3 )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Command-line YAML processor - jq wrapper for YAML documents"
40 +HOMEPAGE="https://yq.readthedocs.io/ https://github.com/kislyuk/yq/ https://pypi.org/project/yq/"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +LICENSE="Apache-2.0"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +
48 +RDEPEND="
49 + app-misc/jq
50 + dev-python/argcomplete[${PYTHON_USEDEP}]
51 + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
52 + dev-python/toml[${PYTHON_USEDEP}]
53 + dev-python/xmltodict[${PYTHON_USEDEP}]
54 +"
55 +DEPEND="
56 + ${RDEPEND}
57 + test? (
58 + dev-python/wheel[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +PATCHES=(
63 + "${FILESDIR}/yq-2.13.0-tests.patch"
64 +)
65 +
66 +python_prepare_all() {
67 + sed -e 's:unittest.main():unittest.main(verbosity=2):' \
68 + -i test/test.py || die
69 +
70 + sed -r -e 's:[[:space:]]*"coverage",:: ; s:[[:space:]]*"flake8",::' \
71 + -i setup.py || die
72 +
73 + sed -e '/license_file/ d' -i setup.cfg || die
74 +
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_test() {
79 + "${EPYTHON}" test/test.py </dev/null || die "tests failed under ${EPYTHON}"
80 +}