diff options
Diffstat (limited to 'dev-python/ruamel-yaml')
-rw-r--r-- | dev-python/ruamel-yaml/Manifest | 2 | ||||
-rw-r--r-- | dev-python/ruamel-yaml/ruamel-yaml-0.17.33.ebuild | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest index a431e1db91be..5b315ab99c5e 100644 --- a/dev-python/ruamel-yaml/Manifest +++ b/dev-python/ruamel-yaml/Manifest @@ -1,3 +1,5 @@ DIST ruamel.yaml-0.17.32.tar.xz 190144 BLAKE2B fe58904cacff21bd64eb7e9cc4ea613ae0ad8e6718f568f64876385b70b6c2ce2bc6137537ddf9d3c7e9c08c66a1112f78527080c025fb5655ddce2b73a4f477 SHA512 e78ae975c3a7281d69ca965604fbc7f014cf8aaec9e51e27c795caefc5708019c57629f54044b12833bca0c846a8005fc0b95e64f75b2da226cdca2fefbcd8ae +DIST ruamel.yaml-0.17.33.tar.xz 190420 BLAKE2B 93a91f1ad6e17bf0a4f6d90e782786aafe959f298c4bf109c62450fbb42df79908f9037b8e7535dbcb33eacbef0680fec72a800918045c01b427eba07bb32090 SHA512 75b13e920298b729ce9ac764162864eaf8492795b3ae3bad7dfe1ad4e5cc92e84ae5063859ae694d6334bb3e9660ba68cbf56888674f98ac787ff10266373e15 EBUILD ruamel-yaml-0.17.32.ebuild 1423 BLAKE2B ac245790e464a3adcc237f79aa0c7c3c2a1cebeed02ae5baf7cecab10e7b1288b16d7e89698696acee6c1e8baeb95ce4382338070535532436f8f0abf66fbb03 SHA512 1c5a462810dee1dc6e2702f1c7ab4a2a7deb1291be8e51ac60d7765ec1ce602e4052552acc8c822443b557efba5d7b18739c61ecbd9e6b1b8aa701e9dd798921 +EBUILD ruamel-yaml-0.17.33.ebuild 1431 BLAKE2B 7bd7d97b61c6bf340f3ede09866015551ea50a2c87bb28babd9430a23b7b28abf23fca908ca2f1ed54faa1107c7558473e03d6380b6c78ecd217cabf3af0ab51 SHA512 a426551ff55a3402079a64328185aab0a8d79aad45c596e4d750714f5aae4285e617857b8fa757c7ffadef003b61b7606b9e0ac295a4e5b5fd1b8bb381ca6485 MISC metadata.xml 759 BLAKE2B ce5ec2429c5fe84587d1b5e7744055e1e8e91eae8dec780a4654cab405df46350d1c8175827351948364255b8fcd62ea234239260c01b8ce23b8db182e6514e6 SHA512 faa587083ffa9af40108e2ca9cfb7a4e2c3e19a731b39241a7ec62d6fca051ace92bcff3fa9896a343fdc196a04fe1d132bcbb7bfa3fd96401ac996b76bba4ee diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.17.33.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.17.33.ebuild new file mode 100644 index 000000000000..128dbc52c0bb --- /dev/null +++ b/dev-python/ruamel-yaml/ruamel-yaml-0.17.33.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 +} |