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