commit:     4242d0c3aededcb31284cc55d00372795e2225fd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 30 12:51:49 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 30 14:04:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4242d0c3

dev-python/ruamel-yaml: Bump to 0.18.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/ruamel-yaml/Manifest                   |  1 +
 dev-python/ruamel-yaml/ruamel-yaml-0.18.12.ebuild | 53 +++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest
index 52a21c7fe98f..9ca9f1ef619e 100644
--- a/dev-python/ruamel-yaml/Manifest
+++ b/dev-python/ruamel-yaml/Manifest
@@ -1,2 +1,3 @@
 DIST ruamel.yaml-0.18.10.tar.xz 198860 BLAKE2B 
02b6a1791002e5bd31c321c6307b7239be6f248e9b9186fcf9bdc440b966f15f5e947976a3295a279071a3b1f2853a2eb196851363ad3ed87f943850e40f0909
 SHA512 
089977ba0ac7b2f9cf761b4d94aa647ec431abe88fe21f167011899be3d13b5072b330a4c3f09cd14406692377235ec433db3f15e15df1a56697443cce4027fa
 DIST ruamel.yaml-0.18.11.tar.xz 199288 BLAKE2B 
61570938ce90a7143241d903a6ccb83137aedda3d726b9cce337217f3fc0cf27aadfb7d80510ef19574dd25c71451643bb8fda4d392a8b0c6f8f63595bb65af4
 SHA512 
3858ea80024c94e3e0f685fc93c4a94ffbf967269b3c8c0422590507d7639dbb2b70b86fc5ad536e9d5491d3082e5aeef85f7660837f786bf20acb04f7822c37
+DIST ruamel.yaml-0.18.12.tar.xz 199740 BLAKE2B 
3eb891258980395f66428993c66b13ef79b1d26b91d1f60b7b461d3eb15c5de7afe4bf149dd077d12681fdae78544a919fca8826ba4f0705b6d4873d1850127c
 SHA512 
982d640576a26d72ed1eb66bde9954c2e083c973eecc96a1e006fc904d4681a9a82574ba26a24dd697f503a77f8ab2f936f991e63a61b5e5d89894072404a41c

diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.18.12.ebuild 
b/dev-python/ruamel-yaml/ruamel-yaml-0.18.12.ebuild
new file mode 100644
index 000000000000..f2802290a472
--- /dev/null
+++ b/dev-python/ruamel-yaml/ruamel-yaml-0.18.12.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+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="https://downloads.sourceforge.net/ruamel-dl-tagged-releases/${MY_P}.tar.xz";
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+       dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]
+       !dev-python/namespace-ruamel
+"
+
+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
+}

Reply via email to