public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/yamlpath/
Date: Thu, 28 Oct 2021 14:06:23 +0000 (UTC)	[thread overview]
Message-ID: <1635429955.01907897a63513a9a112097800e1dbbf97bde8da.arthurzam@gentoo> (raw)

commit:     01907897a63513a9a112097800e1dbbf97bde8da
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 28 14:04:20 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 28 14:05:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01907897

dev-python/yamlpath: add 3.6.3, EAPI=8, clean ebuild

- use d_e_t for tests
- tests need dev-ruby/hiera-eyaml
- use exclude in find_packages instead of removing after install
- move the installing of yamlpath/patches/aliasstyle.py into
  python_install

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/yamlpath/Manifest              |  1 +
 dev-python/yamlpath/yamlpath-3.6.3.ebuild | 50 +++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-python/yamlpath/Manifest b/dev-python/yamlpath/Manifest
index 4fb29dcb8eb..eed54223b96 100644
--- a/dev-python/yamlpath/Manifest
+++ b/dev-python/yamlpath/Manifest
@@ -1 +1,2 @@
 DIST yamlpath-3.6.1.tar.gz 214053 BLAKE2B 5c72ffc4e4307f1a3fea7a697782c432402acc1ee929de34a702188d51287fd7187b688354533163b7101dc17ed394f0e2681a1a194807f00762bf6c71387292 SHA512 8ef8e1931118ed881d52b6d7f589b1c671694c211cb1c988e7e6945b7ff5408163bd402f52c1815b453bf8ccc61e8b8ed5c19a00be076d8e76e0a037461a12e2
+DIST yamlpath-3.6.3.gh.tar.gz 214734 BLAKE2B fd36d276831771c81272a2bb60a9fe7995c63f1026143925e34167ee397b56725ec9ba5d5afac2a85121512b8f8da3f988fd022dc2378ee80b91567f15d95c1a SHA512 b6c41b550339809e3a0bcbd7dca190956f06799303c1c12bb68eed567c56ccafd2acc2a8a6ab33fb03abde61b3de25673ee2d459f6d66e6782f9325212653ade

diff --git a/dev-python/yamlpath/yamlpath-3.6.3.ebuild b/dev-python/yamlpath/yamlpath-3.6.3.ebuild
new file mode 100644
index 00000000000..aee7c490704
--- /dev/null
+++ b/dev-python/yamlpath/yamlpath-3.6.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+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/v${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+	dev-python/ruamel-yaml[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	test? (
+		dev-python/pytest-console-scripts[${PYTHON_USEDEP}]
+		dev-ruby/hiera-eyaml
+	)
+"
+
+distutils_enable_tests --install pytest
+
+python_prepare_all() {
+	sed -e '/ruamel\.yaml/d' \
+		-e '/pytest-cov/d' \
+		-e "/find_packages/s/()/(exclude=\['tests'\])/" \
+		-i setup.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_install() {
+	distutils-r1_python_install
+
+	# install and optimize yamlpath/patches/aliasstyle.py
+	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}"
+}


             reply	other threads:[~2021-10-28 14:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-28 14:06 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-08  6:08 [gentoo-commits] repo/gentoo:master commit in: dev-python/yamlpath/ Michał Górny
2023-03-31  4:32 Michał Górny
2023-01-27 20:10 Michał Górny
2023-01-16 20:50 Michał Górny
2022-11-14  5:07 Michał Górny
2022-11-05 22:18 Zac Medico
2022-11-05 21:49 Zac Medico
2022-11-03  0:04 Zac Medico
2022-09-28 18:34 Michał Górny
2022-09-28  1:46 Zac Medico
2022-09-27  4:09 Zac Medico
2022-09-19 19:02 Arthur Zamarin
2022-09-19 19:02 Arthur Zamarin
2022-06-05  5:53 Michał Górny
2022-05-16 13:30 Michał Górny
2021-12-06 23:07 Michał Górny
2021-09-15 23:36 Zac Medico
2021-09-15 23:19 Zac Medico
2021-06-19 22:12 Zac Medico

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=1635429955.01907897a63513a9a112097800e1dbbf97bde8da.arthurzam@gentoo \
    --to=arthurzam@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