commit: 485062dfb87d5acc325e53e611db924cd1dbf025
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 30 17:49:06 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 30 18:04:40 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=485062df
dev-python/ruamel-yaml: Bump to 0.18.3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/ruamel-yaml/Manifest | 1 +
dev-python/ruamel-yaml/ruamel-yaml-0.18.3.ebuild | 58 ++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest
index c4b01e16a8c5..cae801aa1003 100644
--- a/dev-python/ruamel-yaml/Manifest
+++ b/dev-python/ruamel-yaml/Manifest
@@ -7,3 +7,4 @@ DIST ruamel.yaml-0.17.39.tar.xz 192916 BLAKE2B
23553af89c3083837a54805097c2c59eb
DIST ruamel.yaml-0.17.40.tar.xz 193424 BLAKE2B
80405ef0c85af476ef0e996b1da5aba1a116e8c181d18f40fb4fd86093a512c09cf0da30d52d85946c524e86e10379cb11154cb08a7ea7b054ba9379996de4f4
SHA512
848af49430b9c028a6676a159915c66e29f4290374ba0863e4fd87527f3178bb303a80f4ba97139fc8cbcd01f7f7782a4b3112325237a39659e227afda61fcb8
DIST ruamel.yaml-0.18.0.tar.xz 194448 BLAKE2B
5a8c0e1a8cdfcec743d7e9084d7a2df54b79fbca174a7d46629d64a4cea33bc15ec320813b6f4206fb04de8383e34b73a2c615f3e10afebe600f3c0bc02f5639
SHA512
99c84d7c8b66cd3db5a030b81449b0790df54912af1c01dfbae575f495b22c662f4a7187ba41554802bd760782a70554c6359fcc640a12b2f85b37755d4af32d
DIST ruamel.yaml-0.18.2.tar.xz 194700 BLAKE2B
90eab45df1ae69b5089d953829350a2e580220dfe01cd5ef1bde3c13892bbf7998daab9326810dbe41645beca808c1557a8a35be52e4db600ecd9cc8372086e1
SHA512
9718a0a17f9a57ad4d99f9079dbd6257c647ba07a24d368507ea8c66ef35fbec5db97fc2944672cc94217b610508c210f5fe926e80d47b40f2b4270aa6b81fde
+DIST ruamel.yaml-0.18.3.tar.xz 195928 BLAKE2B
e0986dfdf45b67baab83a49f5380f43a87c388a5b6ebe06ee0518013630e9577cbf06dc9457b53a10a74af13b3e976593fae08d19fb2ff242e35ca6238aaecc9
SHA512
80d9032cb67a434633b61fb321b82dd39403058c8bcab4480ddca7053801722d5763765de426f68fcd5a2ef923f98ca29c4efdd4f749a52872ef10ddf7a8cd6e
diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.18.3.ebuild
b/dev-python/ruamel-yaml/ruamel-yaml-0.18.3.ebuild
new file mode 100644
index 000000000000..128dbc52c0bb
--- /dev/null
+++ b/dev-python/ruamel-yaml/ruamel-yaml-0.18.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1
+
+MY_P="${P/-/.}"
+DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
+HOMEPAGE="
+ https://pypi.org/project/ruamel.yaml/
+ https://sourceforge.net/projects/ruamel-yaml/
+"
+# PyPI tarballs do not include tests
+SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+ dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]
+ !dev-python/namespace-ruamel
+"
+BDEPEND="
+ test? (
+ dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_compile() {
+ distutils-r1_python_compile
+ find "${BUILD_DIR}" -name '*.pth' -delete || die
+}
+
+python_test() {
+ local EPYTEST_DESELECT=()
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
+ _test/test_deprecation.py::test_collections_deprecation
+ )
+ local EPYTEST_IGNORE=(
+ # Old PyYAML tests from lib/ require special set-up and are
+ # invoked indirectly via test_z_olddata, tell pytest itself
+ # to leave the subdir alone.
+ _test/lib/
+ )
+
+ # this is needed to keep the tests working while
+ # dev-python/namespace-ruamel is still installed
+ distutils_write_namespace ruamel
+ epytest
+}