From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/yamlpath/
Date: Sat, 19 Jun 2021 22:12:21 +0000 (UTC) [thread overview]
Message-ID: <1624140737.0649fbd7ace6eeb0fbdf5c992129abc33f58f0a6.zmedico@gentoo> (raw)
commit: 0649fbd7ace6eeb0fbdf5c992129abc33f58f0a6
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 19 21:14:57 2021 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> 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 <zmedico <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <bugs-to>https://github.com/wwkimball/yamlpath/issues</bugs-to>
+ <changelog>https://raw.githubusercontent.com/wwkimball/yamlpath/master/CHANGES</changelog>
+ <doc>https://github.com/wwkimball/yamlpath/wiki</doc>
+ <remote-id type="pypi">yamlpath</remote-id>
+ <remote-id type="github">wwkimball/yamlpath</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
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
+}
next reply other threads:[~2021-06-19 22:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-19 22:12 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-09-15 23:19 [gentoo-commits] repo/gentoo:master commit in: dev-python/yamlpath/ Zac Medico
2021-09-15 23:36 Zac Medico
2021-10-28 14:06 Arthur Zamarin
2021-12-06 23:07 Michał Górny
2022-05-16 13:30 Michał Górny
2022-06-05 5:53 Michał Górny
2022-09-19 19:02 Arthur Zamarin
2022-09-19 19:02 Arthur Zamarin
2022-09-27 4:09 Zac Medico
2022-09-28 1:46 Zac Medico
2022-09-28 18:34 Michał Górny
2022-11-03 0:04 Zac Medico
2022-11-05 21:49 Zac Medico
2022-11-05 22:18 Zac Medico
2022-11-14 5:07 Michał Górny
2023-01-16 20:50 Michał Górny
2023-01-27 20:10 Michał Górny
2023-03-31 4:32 Michał Górny
2023-04-08 6:08 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1624140737.0649fbd7ace6eeb0fbdf5c992129abc33f58f0a6.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox