Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/yamlpath/
Date: Mon, 06 Dec 2021 23:07:28
Message-Id: 1638832040.bb521d96bb625806db9218e173d45273c11dd7a6.mgorny@gentoo
1 commit: bb521d96bb625806db9218e173d45273c11dd7a6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 6 22:21:36 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 6 23:07:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb521d96
7
8 dev-python/yamlpath: Bump to 3.6.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/yamlpath/Manifest | 1 +
13 dev-python/yamlpath/yamlpath-3.6.4.ebuild | 50 +++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-python/yamlpath/Manifest b/dev-python/yamlpath/Manifest
17 index eed54223b967..852c02355f1e 100644
18 --- a/dev-python/yamlpath/Manifest
19 +++ b/dev-python/yamlpath/Manifest
20 @@ -1,2 +1,3 @@
21 DIST yamlpath-3.6.1.tar.gz 214053 BLAKE2B 5c72ffc4e4307f1a3fea7a697782c432402acc1ee929de34a702188d51287fd7187b688354533163b7101dc17ed394f0e2681a1a194807f00762bf6c71387292 SHA512 8ef8e1931118ed881d52b6d7f589b1c671694c211cb1c988e7e6945b7ff5408163bd402f52c1815b453bf8ccc61e8b8ed5c19a00be076d8e76e0a037461a12e2
22 DIST yamlpath-3.6.3.gh.tar.gz 214734 BLAKE2B fd36d276831771c81272a2bb60a9fe7995c63f1026143925e34167ee397b56725ec9ba5d5afac2a85121512b8f8da3f988fd022dc2378ee80b91567f15d95c1a SHA512 b6c41b550339809e3a0bcbd7dca190956f06799303c1c12bb68eed567c56ccafd2acc2a8a6ab33fb03abde61b3de25673ee2d459f6d66e6782f9325212653ade
23 +DIST yamlpath-3.6.4.gh.tar.gz 216016 BLAKE2B fc6537b7c80ecfb9f69c646970e43935374bb105df007c123cf837eb1de6827ac2cc443294b69500c966ea6bc5d7f56498aec13340238c7660118f17cc6685e5 SHA512 eb1ac0d5861818f4f4b57b07f9fa7f758846982abbb3ac4ec58a1adaca8ec36deba1e21ce3e13916e74a946512f4d66e341a9d45392ef7133d0293e5fd6f66c9
24
25 diff --git a/dev-python/yamlpath/yamlpath-3.6.4.ebuild b/dev-python/yamlpath/yamlpath-3.6.4.ebuild
26 new file mode 100644
27 index 000000000000..aee7c4907046
28 --- /dev/null
29 +++ b/dev-python/yamlpath/yamlpath-3.6.4.ebuild
30 @@ -0,0 +1,50 @@
31 +# Copyright 2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Command-line processors for YAML/JSON/Compatible data."
40 +HOMEPAGE="https://github.com/wwkimball/yamlpath https://github.com/wwkimball/yamlpath/wiki"
41 +SRC_URI="
42 + https://github.com/wwkimball/yamlpath/archive/v${PV}.tar.gz
43 + -> ${P}.gh.tar.gz
44 +"
45 +
46 +LICENSE="ISC"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +
50 +RDEPEND="
51 + dev-python/ruamel-yaml[${PYTHON_USEDEP}]
52 +"
53 +BDEPEND="
54 + test? (
55 + dev-python/pytest-console-scripts[${PYTHON_USEDEP}]
56 + dev-ruby/hiera-eyaml
57 + )
58 +"
59 +
60 +distutils_enable_tests --install pytest
61 +
62 +python_prepare_all() {
63 + sed -e '/ruamel\.yaml/d' \
64 + -e '/pytest-cov/d' \
65 + -e "/find_packages/s/()/(exclude=\['tests'\])/" \
66 + -i setup.py || die
67 +
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_install() {
72 + distutils-r1_python_install
73 +
74 + # install and optimize yamlpath/patches/aliasstyle.py
75 + local sitedir=$(python_get_sitedir)
76 + [[ -d ${D}${sitedir} ]] || die "${D}${sitedir}: No such directory"
77 + insinto "${sitedir}/yamlpath"
78 + doins -r "${S}/yamlpath/patches"
79 + python_optimize "${D}${sitedir}"
80 +}