From 0d204f080ccaf949d8e6f66b8b9fd263c6ca0ed9 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sun, 20 Jun 2021 01:43:22 +0000 Subject: Adding metadata --- dev-python/yamlpath/Manifest | 1 + dev-python/yamlpath/metadata.xml | 15 +++++++++ dev-python/yamlpath/yamlpath-3.6.0.ebuild | 56 +++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 dev-python/yamlpath/Manifest create mode 100644 dev-python/yamlpath/metadata.xml create mode 100644 dev-python/yamlpath/yamlpath-3.6.0.ebuild (limited to 'dev-python/yamlpath') diff --git a/dev-python/yamlpath/Manifest b/dev-python/yamlpath/Manifest new file mode 100644 index 000000000000..66b3b1648fbe --- /dev/null +++ b/dev-python/yamlpath/Manifest @@ -0,0 +1 @@ +DIST yamlpath-3.6.0.tar.gz 214052 BLAKE2B 6b969a8c6e63f879e9c9f17f4542a48e55987835f99f10867577d93107813b684cfa0bf647f6d11b8ef8f02438e7e72f847eb0a29761a169950f8a5c6ee0ec5b SHA512 377cd281b4e7df251bbb298977c258e1a547ce4726ad321e5bf500242884049d3e052b83b83b72d477111fe121bd483d5122427498a5ebf784ab6d86d92d6ed6 diff --git a/dev-python/yamlpath/metadata.xml b/dev-python/yamlpath/metadata.xml new file mode 100644 index 000000000000..1030a6e652ce --- /dev/null +++ b/dev-python/yamlpath/metadata.xml @@ -0,0 +1,15 @@ + + + + + zmedico@gentoo.org + + + yamlpath + wwkimball/yamlpath + https://raw.githubusercontent.com/wwkimball/yamlpath/master/CHANGES + https://github.com/wwkimball/yamlpath/issues + https://github.com/wwkimball/yamlpath/wiki + + gentoo-staging + \ No newline at end of file diff --git a/dev-python/yamlpath/yamlpath-3.6.0.ebuild b/dev-python/yamlpath/yamlpath-3.6.0.ebuild new file mode 100644 index 000000000000..8e5362e754d8 --- /dev/null +++ b/dev-python/yamlpath/yamlpath-3.6.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Command-line processors for YAML/JSON/Compatible data." +HOMEPAGE="https://github.com/wwkimball/yamlpath https://github.com/wwkimball/yamlpath/wiki" +SRC_URI="https://github.com/wwkimball/yamlpath/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="test" +RDEPEND=" + dev-python/ruamel-yaml[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" + +python_prepare_all() { + local sed_args + + sed_args=( + -e 's|\("ruamel\.yaml\)[^"]*|\1|' + -e '/pytest-cov/d' + -e '/pytest-console-scripts/d' + ) + sed "${sed_args[@]}" -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + PYTHONPATH="${S}" py.test -v tests || die "Tests failed under ${EPYTHON}" +} + +yamlpath_post_src_install() { + local sitedir=$(python_get_sitedir) + [[ -d ${D}${sitedir} ]] || die "${D}${sitedir}: No such directory" + insinto "${sitedir}/yamlpath" + doins -r "${S}/yamlpath/patches" + python_optimize "${D}${sitedir}" || die +} + +src_install() { + find "${WORKDIR}" -name tests -print0 | xargs -0 rm -rf || die + distutils-r1_src_install + + python_foreach_impl yamlpath_post_src_install +} -- cgit v1.3