summaryrefslogtreecommitdiff
path: root/dev-python/yamlpath
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-06-20 01:43:22 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-06-20 01:43:22 +0000
commit0d204f080ccaf949d8e6f66b8b9fd263c6ca0ed9 (patch)
tree0e600a6e38624cfd94617bd10361ccfbb5211f0b /dev-python/yamlpath
parentffe910e129da5362318efdc5cc819064aedbce6d (diff)
downloadbaldeagleos-repo-0d204f080ccaf949d8e6f66b8b9fd263c6ca0ed9.tar.gz
baldeagleos-repo-0d204f080ccaf949d8e6f66b8b9fd263c6ca0ed9.tar.xz
baldeagleos-repo-0d204f080ccaf949d8e6f66b8b9fd263c6ca0ed9.zip
Adding metadata
Diffstat (limited to 'dev-python/yamlpath')
-rw-r--r--dev-python/yamlpath/Manifest1
-rw-r--r--dev-python/yamlpath/metadata.xml15
-rw-r--r--dev-python/yamlpath/yamlpath-3.6.0.ebuild56
3 files changed, 72 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">yamlpath</remote-id>
+ <remote-id type="github">wwkimball/yamlpath</remote-id>
+ <changelog>https://raw.githubusercontent.com/wwkimball/yamlpath/master/CHANGES</changelog>
+ <bugs-to>https://github.com/wwkimball/yamlpath/issues</bugs-to>
+ <doc>https://github.com/wwkimball/yamlpath/wiki</doc>
+ </upstream>
+ <origin>gentoo-staging</origin>
+</pkgmetadata> \ 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
+}