From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/find-work/
Date: Wed, 20 Nov 2024 15:47:06 +0000 (UTC) [thread overview]
Message-ID: <1732115569.0c514483f6d4b81fe7176d0b2e30c2fe3db48234.davidroman@gentoo> (raw)
commit: 0c514483f6d4b81fe7176d0b2e30c2fe3db48234
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Nov 20 14:57:38 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Nov 20 15:12:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0c514483
dev-util/find-work: add 0.990.0, drop 0.91.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-util/find-work/Manifest | 2 +-
...work-0.91.1.ebuild => find-work-0.990.0.ebuild} | 40 ++++++++++++++++++++--
dev-util/find-work/find-work-9999.ebuild | 19 ++++++++--
3 files changed, 56 insertions(+), 5 deletions(-)
diff --git a/dev-util/find-work/Manifest b/dev-util/find-work/Manifest
index 5dae8eb17..e7094eb51 100644
--- a/dev-util/find-work/Manifest
+++ b/dev-util/find-work/Manifest
@@ -1,2 +1,2 @@
-DIST find_work-0.91.1.tar.gz 20087 BLAKE2B 35e4104a164ab0d5869ee075e978de77b797fba2e93b9d0d50bea796dea12021a42af9f11a043732c41ff40baaa5e3a243d0858a320d3a753d4ce903dd338b3e SHA512 5a08a3643b0e04ba75b58e86665b23b0eda64fe52206043a2a0e9d71f70c252b50926348350860e0798b3a88274e34b0ae0712e5bd8b76947018b427ee486e49
DIST find_work-0.91.2.tar.gz 20782 BLAKE2B 1e2253dced05e27511585a5db96685783155248fa6e32105aa0cac91b19cc9deba81a48e2693931de40ff47c44cebeda3b122d9c3d0e2eeeed9f06580a336769 SHA512 4c7172aa0ff35d91447aa6191bec737aa62a929a2f43220b97ba3ae94bd392a84cb4612fa6ec2cea4215bf7d13994c2bb3248ef23c0c2d2c6a5398d6622b0cfa
+DIST find_work-0.990.0.tar.gz 24665 BLAKE2B 3cf63d272a7fc863f731532afb86501cf9156ddd35e32d74d78b041592946e37b102a11de3dbeb42530a1cf427e4723f069d45babf3575dd4602cf018886e9fe SHA512 ffb25e8e0c22fd3e1e84043ec9e55a7f156a18694598e9ee29d4d4e26e1460715ce8883bed33c3b7b25d55d89f6d92995e108f2d7e25c34bf6e553dad50cbfe3
diff --git a/dev-util/find-work/find-work-0.91.1.ebuild b/dev-util/find-work/find-work-0.990.0.ebuild
similarity index 64%
rename from dev-util/find-work/find-work-0.91.1.ebuild
rename to dev-util/find-work/find-work-0.990.0.ebuild
index 9d5eefbba..d487006d1 100644
--- a/dev-util/find-work/find-work-0.91.1.ebuild
+++ b/dev-util/find-work/find-work-0.990.0.ebuild
@@ -3,9 +3,9 @@
EAPI=8
-PYTHON_COMPAT=( python3_{11..12} )
+PYTHON_COMPAT=( python3_{11..13} )
DISTUTILS_USE_PEP517=hatchling
-inherit distutils-r1
+inherit distutils-r1 shell-completion
DESCRIPTION="Personal advice utility for Gentoo package maintainers"
HOMEPAGE="
@@ -39,6 +39,9 @@ RDEPEND="
<dev-python/pydantic-3[${PYTHON_USEDEP}]
>=dev-python/requests-2[${PYTHON_USEDEP}]
<dev-python/requests-3[${PYTHON_USEDEP}]
+ !minimal? (
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ )
"
BDEPEND="
test? (
@@ -65,3 +68,36 @@ distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/insipid-sphinx-theme \
dev-python/sphinx-prompt
+
+python_compile_all() {
+ # copy-pasted from distutils_write_namespace
+ local path="${BUILD_DIR}/install$(python_get_sitedir)/find_work/__init__.py"
+ cat > "${path}" <<-EOF || die
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
+ EOF
+
+ emake completions BIN="${BUILD_DIR}/install${EPREFIX}/usr/bin/find-work"
+ sphinx_compile_all
+
+ rm "${path}" || die
+}
+
+python_test() {
+ distutils_write_namespace find_work
+ distutils-r1_python_test
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ local mymakeargs=(
+ DESTDIR="${D}"
+ PREFIX="${EPREFIX}"/usr
+
+ BASHCOMPDIR="$(get_bashcompdir)"
+ ZSHCOMPDIR="$(get_zshcompdir)"
+ FISHCOMPDIR="$(get_fishcompdir)"
+ )
+
+ emake "${mymakeargs[@]}" install-data
+}
diff --git a/dev-util/find-work/find-work-9999.ebuild b/dev-util/find-work/find-work-9999.ebuild
index 8d08c3a6e..d487006d1 100644
--- a/dev-util/find-work/find-work-9999.ebuild
+++ b/dev-util/find-work/find-work-9999.ebuild
@@ -39,6 +39,9 @@ RDEPEND="
<dev-python/pydantic-3[${PYTHON_USEDEP}]
>=dev-python/requests-2[${PYTHON_USEDEP}]
<dev-python/requests-3[${PYTHON_USEDEP}]
+ !minimal? (
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ )
"
BDEPEND="
test? (
@@ -66,10 +69,22 @@ distutils_enable_sphinx docs \
dev-python/insipid-sphinx-theme \
dev-python/sphinx-prompt
-python_compile() {
- distutils-r1_python_compile
+python_compile_all() {
+ # copy-pasted from distutils_write_namespace
+ local path="${BUILD_DIR}/install$(python_get_sitedir)/find_work/__init__.py"
+ cat > "${path}" <<-EOF || die
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
+ EOF
emake completions BIN="${BUILD_DIR}/install${EPREFIX}/usr/bin/find-work"
+ sphinx_compile_all
+
+ rm "${path}" || die
+}
+
+python_test() {
+ distutils_write_namespace find_work
+ distutils-r1_python_test
}
src_install() {
next reply other threads:[~2024-11-20 15:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-20 15:47 David Roman [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-27 14:34 [gentoo-commits] repo/proj/guru:master commit in: dev-util/find-work/ David Roman
2024-11-21 10:47 David Roman
2024-08-20 20:46 David Roman
2024-08-09 12:46 David Roman
2024-04-29 21:27 David Roman
2024-04-19 19:11 Julien Roy
2024-02-09 0:30 David Roman
2024-02-09 0:30 David Roman
2024-01-15 15:46 David Roman
2024-01-15 15:46 David Roman
2024-01-09 12:03 David Roman
2024-01-08 7:22 Viorel Munteanu
2024-01-07 23:46 David Roman
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=1732115569.0c514483f6d4b81fe7176d0b2e30c2fe3db48234.davidroman@gentoo \
--to=davidroman96@gmail.com \
--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