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.18.ebuild | 47 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest index faf79299b0bd..7f04c36fcac5 100644 --- a/dev-python/ruamel-yaml/Manifest +++ b/dev-python/ruamel-yaml/Manifest @@ -1,3 +1,5 @@ DIST ruamel.yaml-0.17.17.tar.xz 184120 BLAKE2B 05bd1dd719677918a49798f377c5e52bd1b8c7e3bd38a416626330baec90f3e7a71509f236151be73b1773e48ae02d25ac01ef970ebe6cf15ccca49a01a996d1 SHA512 72fbdda33c193dfb556367d79b50e148d2aecd4f2b04cf5b48f2dcf4b690e0796b40273995badec655891408bb8ba6a7e84992e6911e55e75ab453403da3397f +DIST ruamel.yaml-0.17.18.tar.xz 184412 BLAKE2B 47fc39b8811b19507a99a88408660ed9eef0182a91cdc86976d04f055361b9cf296e4761433207d47c8343c184c2f6358cb4541af4efce19be6865f492d11939 SHA512 dc11868522904463aba8d7d85e4c44d0d72c6fa84381089647546bde5ab091f733476d04f088611222ad4cac818dbbc7b24c51f721f34d94bdeae82fe0c627ae EBUILD ruamel-yaml-0.17.17.ebuild 1271 BLAKE2B 818ff85d32e69a1d7a1a2c5e381cd9b96b107f29aa728188d6ccc3eff96a4249a69cedfe8b5995dfc5a0913bbfa43a96d19c3717fde1273d3245a1a549a7976e SHA512 d92b25c5406314c3e8fd7d572940262faf5a7fa4100407d6146e10c27611e7561e602c2324039a532409111079118b5eaff2ffd4b7f05cda7b4e958b16dc722e +EBUILD ruamel-yaml-0.17.18.ebuild 1278 BLAKE2B e0646bfd1057d47eff7e9b32471620a10d0688adf4c6b13e05cacae4b145d386a33fa739aa5c75a5f38932f3fb33efcfaff8874075b057f34098c7b96dcdeda5 SHA512 65411e5d043f8a58e2fafa71d5b9e63670f463bc5d6eb050e4a5aa7694f9b726a8c581b6b943b526831cfb75d4e4b6469ce4709f415ca8953f0053aeaefef4c2 MISC metadata.xml 871 BLAKE2B 6564544cff4338a49a824966fba46176125f3318f3a53fd11a1983f3c2f08524dbb9479f3ddd16a58367e4e044aee1d9c14779a425b84a1d80e5e14a59a9eab7 SHA512 9edf1d1c08b976f51e8eae4582d56d99ea1e47a9da29c62e3e3a9402cc616bc587c7d9d8324660485a10f5547d18df270fa3aca21d198d56d886a53978c2ef75 diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild new file mode 100644 index 000000000000..f87789872e5e --- /dev/null +++ b/dev-python/ruamel-yaml/ruamel-yaml-0.17.18.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( pypy3 python3_{8..10} ) +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/p/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 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/namespace-ruamel[${PYTHON_USEDEP}] + dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +# 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. +python_test() { + local deselect=() + + [[ ${EPYTHON} == pypy3 ]] && deselect+=( + _test/test_deprecation.py::test_collections_deprecation + ) + + epytest --ignore _test/lib/ ${deselect[@]/#/--deselect } +} + +python_install() { + distutils-r1_python_install --single-version-externally-managed + find "${ED}" -name '*.pth' -delete || die +} |