From ea23638561d14582d2c15a5404f6e25bd3f75498 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Thu, 11 Mar 2021 10:23:15 +0000 Subject: dev-python/ruamel-yaml-0.16.13: use different source tarball + instrument tests Mind you, actually running the tests is still restricted because quite a few of them fail due to pytest not finding the fixtures defining names of data files. We'll get there yet, stay tuned. Signed-off-by: Marek Szuba --- dev-python/ruamel-yaml/Manifest | 2 +- .../ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild | 40 ++++++++++++++++++++++ dev-python/ruamel-yaml/ruamel-yaml-0.16.13.ebuild | 28 --------------- 3 files changed, 41 insertions(+), 29 deletions(-) create mode 100644 dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild delete mode 100644 dev-python/ruamel-yaml/ruamel-yaml-0.16.13.ebuild (limited to 'dev-python/ruamel-yaml') diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest index 4edd43dd1f4b..b1b31045d2fd 100644 --- a/dev-python/ruamel-yaml/Manifest +++ b/dev-python/ruamel-yaml/Manifest @@ -1,2 +1,2 @@ +DIST ruamel-yaml-0.16.13.tar.xz 178756 BLAKE2B 19ee4713786a33853f42256e5cd3187e9e19b931ebd83a133365de3f080721c5a6f5fb41ff3079473461df47a0ab149981c5e94d08321da8b3c9eb311c226945 SHA512 1366fc0b3b5ea2699ca324636403576134ccc7c725b13c21a7752d1b16c644c93c7f7d82ddc337087d2c02947f95263d7a3fdd162f552ac3a78fa36f1f17b3f1 DIST ruamel.yaml-0.16.12.tar.gz 147355 BLAKE2B 6e91116029dba57b81580f4ce34a066fc49ec2c6167c2bd6ec2ae940b16bc12ba53cbd4c62f9ae3975664917ce990b050e9f15b434f5ff66f9dece5426049c9d SHA512 21be4d956d01164b84233c3d3945a4e56351a8fc59c35a8e71b1276da84aa43b125e3860f9884e95a1f895bc53e0b85b6d3f0f4b03512d629a892d8664e3ecd6 -DIST ruamel.yaml-0.16.13.tar.gz 149073 BLAKE2B 3def6cd6fad4acb86d1cfd70394a50c7e71fcc7f4ca454794c34dcff5a17fae572002c05f29b7094edcea8fddcb8eade1762a62b7e464c35779d60014cab2994 SHA512 5373f944c852be6d185555b61e2db51f4d0ceb2ad666cd4efa116eace116ad7132e80b41867396491019ded6523ec3de26800c1365f767bbf91c68dda0b56d3c diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild new file mode 100644 index 000000000000..e9ee0a56b9bf --- /dev/null +++ b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7..9} ) + +inherit distutils-r1 + +MY_PN="${PN//-/.}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation" +HOMEPAGE="https://pypi.org/project/ruamel.yaml/ https://sourceforge.net/p/ruamel-yaml" +# PyPI tarballs do not include tests +SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz -> ${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +#RESTRICT="!test? ( test )" +# Running the test suite is broken for now, WIP +RESTRICT="test" + +RDEPEND="dev-python/namespace-ruamel[${PYTHON_USEDEP}] + dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]" +BDEPEND="test? ( + dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}] +)" + +S="${WORKDIR}"/${MY_P} + +distutils_enable_tests pytest + +python_install() { + distutils-r1_python_install --single-version-externally-managed + find "${ED}" -name '*.pth' -delete || die +} diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.16.13.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13.ebuild deleted file mode 100644 index cc1234828b4c..000000000000 --- a/dev-python/ruamel-yaml/ruamel-yaml-0.16.13.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( pypy3 python3_{7..9} ) - -inherit distutils-r1 - -MY_PN="${PN//-/.}" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation" -HOMEPAGE="https://pypi.org/project/ruamel.yaml/ https://sourceforge.net/p/ruamel-yaml" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -RDEPEND="dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]" - -S="${WORKDIR}"/${MY_P} - -python_install() { - distutils-r1_python_install --single-version-externally-managed - find "${ED}" -name '*.pth' -delete || die -} -- cgit v1.2.3-65-gdbad