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/ruamel-yaml/
Date: Fri, 24 Dec 2021 22:52:47
Message-Id: 1640386358.456a84e69ddf7bfd0ee53ef976ff8af877f074aa.mgorny@gentoo
1 commit: 456a84e69ddf7bfd0ee53ef976ff8af877f074aa
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 24 21:43:17 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 24 22:52:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=456a84e6
7
8 dev-python/ruamel-yaml: Bump to 0.17.18
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ruamel-yaml/Manifest | 1 +
13 dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild | 47 +++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest
17 index 22f7476f8743..8eece641589b 100644
18 --- a/dev-python/ruamel-yaml/Manifest
19 +++ b/dev-python/ruamel-yaml/Manifest
20 @@ -1 +1,2 @@
21 DIST ruamel.yaml-0.17.17.tar.xz 184120 BLAKE2B 05bd1dd719677918a49798f377c5e52bd1b8c7e3bd38a416626330baec90f3e7a71509f236151be73b1773e48ae02d25ac01ef970ebe6cf15ccca49a01a996d1 SHA512 72fbdda33c193dfb556367d79b50e148d2aecd4f2b04cf5b48f2dcf4b690e0796b40273995badec655891408bb8ba6a7e84992e6911e55e75ab453403da3397f
22 +DIST ruamel.yaml-0.17.18.tar.xz 184412 BLAKE2B 47fc39b8811b19507a99a88408660ed9eef0182a91cdc86976d04f055361b9cf296e4761433207d47c8343c184c2f6358cb4541af4efce19be6865f492d11939 SHA512 dc11868522904463aba8d7d85e4c44d0d72c6fa84381089647546bde5ab091f733476d04f088611222ad4cac818dbbc7b24c51f721f34d94bdeae82fe0c627ae
23
24 diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild
25 new file mode 100644
26 index 000000000000..f87789872e5e
27 --- /dev/null
28 +++ b/dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( pypy3 python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +MY_P="${P/-/.}"
39 +DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
40 +HOMEPAGE="
41 + https://pypi.org/project/ruamel.yaml/
42 + https://sourceforge.net/p/ruamel-yaml/"
43 +# PyPI tarballs do not include tests
44 +SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz"
45 +S="${WORKDIR}"/${MY_P}
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
50 +
51 +RDEPEND="
52 + dev-python/namespace-ruamel[${PYTHON_USEDEP}]
53 + dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]"
54 +BDEPEND="
55 + test? (
56 + dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
57 + )"
58 +
59 +distutils_enable_tests pytest
60 +
61 +# Old PyYAML tests from lib/ require special set-up and are invoked indirectly
62 +# via test_z_olddata, tell pytest itself to leave the subdir alone.
63 +python_test() {
64 + local deselect=()
65 +
66 + [[ ${EPYTHON} == pypy3 ]] && deselect+=(
67 + _test/test_deprecation.py::test_collections_deprecation
68 + )
69 +
70 + epytest --ignore _test/lib/ ${deselect[@]/#/--deselect }
71 +}
72 +
73 +python_install() {
74 + distutils-r1_python_install --single-version-externally-managed
75 + find "${ED}" -name '*.pth' -delete || die
76 +}