dev-util/find-work: add 0.990.0, drop 0.91.1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-11-20 19:57:38 +05:00
parent 0c514a20ce
commit 0c514483f6
3 changed files with 56 additions and 5 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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() {