From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE73B1382C5 for ; Sat, 19 Jun 2021 22:12:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40817E0828; Sat, 19 Jun 2021 22:12:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 277C3E0828 for ; Sat, 19 Jun 2021 22:12:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 25050335D3E for ; Sat, 19 Jun 2021 22:12:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2DBC7AA for ; Sat, 19 Jun 2021 22:12:21 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1624140737.0649fbd7ace6eeb0fbdf5c992129abc33f58f0a6.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/yamlpath/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/yamlpath/Manifest dev-python/yamlpath/metadata.xml dev-python/yamlpath/yamlpath-3.6.0.ebuild X-VCS-Directories: dev-python/yamlpath/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 0649fbd7ace6eeb0fbdf5c992129abc33f58f0a6 X-VCS-Branch: master Date: Sat, 19 Jun 2021 22:12:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fb60c2f7-5df0-4cab-bbca-5724e466cb1a X-Archives-Hash: 2a3a2017bf4545fafd9182dffcfefe94 commit: 0649fbd7ace6eeb0fbdf5c992129abc33f58f0a6 Author: Zac Medico gentoo org> AuthorDate: Sat Jun 19 21:14:57 2021 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Jun 19 22:12:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0649fbd7 dev-python/yamlpath: Initial import Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico gentoo.org> dev-python/yamlpath/Manifest | 1 + dev-python/yamlpath/metadata.xml | 14 ++++++++ dev-python/yamlpath/yamlpath-3.6.0.ebuild | 56 +++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/dev-python/yamlpath/Manifest b/dev-python/yamlpath/Manifest new file mode 100644 index 00000000000..66b3b1648fb --- /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 00000000000..096a53d7d98 --- /dev/null +++ b/dev-python/yamlpath/metadata.xml @@ -0,0 +1,14 @@ + + + + + https://github.com/wwkimball/yamlpath/issues + https://raw.githubusercontent.com/wwkimball/yamlpath/master/CHANGES + https://github.com/wwkimball/yamlpath/wiki + yamlpath + wwkimball/yamlpath + + + zmedico@gentoo.org + + 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 00000000000..ac88b3e28ff --- /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_{8..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 +}