mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-python/grpc-stubs: treeclean
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
DIST grpc-stubs-1.53.0.3.gh.tar.gz 14667 BLAKE2B 58f1ff46f6e4ad96fafa7583158e8a3be1ac5fc991f50dde34899fad919fbfb46afe5da8846aa7ef98cdc4de34609ee93a06d137630d505460d34ecaa3a47837 SHA512 dbcf9882b4ad986bcf17ed613c233cfd889d46340b91534d9ef33a11e1ce25db5e81a747c57b55a1e174012c81da94d29769706a1b3932ca13b020506235ccbd
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Tests should fail if mypy fails to find the stubs that are to be tested.
|
|
||||||
--- a/setup.cfg
|
|
||||||
+++ b/setup.cfg
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
[mypy]
|
|
||||||
check_untyped_defs = True
|
|
||||||
ignore_errors = False
|
|
||||||
-ignore_missing_imports = True
|
|
||||||
+ignore_missing_imports = False
|
|
||||||
strict_optional = True
|
|
||||||
no_error_summary = True
|
|
||||||
no_color_output = True
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
# Copyright 2023-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{11..12} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="gRPC typing stubs for Python"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://pypi.org/project/grpc-stubs/
|
|
||||||
https://github.com/shabbyrobe/grpc-stubs/
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI="https://github.com/shabbyrobe/grpc-stubs/archive/refs/tags/${PV}.tar.gz
|
|
||||||
-> ${P}.gh.tar.gz"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
RDEPEND="dev-python/types-protobuf[${PYTHON_USEDEP}]"
|
|
||||||
BDEPEND="test? (
|
|
||||||
dev-python/pytest-mypy-plugins[${PYTHON_USEDEP}]
|
|
||||||
${RDEPEND}
|
|
||||||
)"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
PATCHES="${FILESDIR}/"${P}-die-on-missing-import.patch
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# Gentoo's PEP 517 mode runs tests in a venv-like environment.
|
|
||||||
# Pytest-mypy-plugins checks the PATH for mypy, we provide a venv-aware
|
|
||||||
# variant.
|
|
||||||
printf "#!/bin/bash\n $(which python) -m mypy \$@" > \
|
|
||||||
"${BUILD_DIR}"/install/usr/bin/mypy || die
|
|
||||||
chmod +x "${BUILD_DIR}"/install/usr/bin/mypy || die
|
|
||||||
epytest --mypy-ini-file=setup.cfg
|
|
||||||
rm "${BUILD_DIR}"/install/usr/bin/mypy || die
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>watermanpaint@posteo.net</email>
|
|
||||||
<name>Lucio Sauer</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">shabbyrobe/grpc-stubs</remote-id>
|
|
||||||
<remote-id type="pypi">grpc-stubs</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
||||||
@@ -55,12 +55,6 @@ sys-kernel/usermode-kernel
|
|||||||
# Removal on 2025-08-29, Bug #960098
|
# Removal on 2025-08-29, Bug #960098
|
||||||
gui-apps/paperde
|
gui-apps/paperde
|
||||||
|
|
||||||
# Lucio Sauer <watermanpaint@posteo.net> (2025-07-28)
|
|
||||||
# Outdated downstream and archived upstream; no revdeps.
|
|
||||||
# Superseded by types-grpcio* on PyPi.
|
|
||||||
# Removal on 2025-08-28
|
|
||||||
dev-python/grpc-stubs
|
|
||||||
|
|
||||||
# Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> (2025-07-27)
|
# Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> (2025-07-27)
|
||||||
# Vulnerable to a cross-site scripting attack.
|
# Vulnerable to a cross-site scripting attack.
|
||||||
# https://github.com/TecharoHQ/anubis/security/advisories/GHSA-jhjj-2g64-px7c
|
# https://github.com/TecharoHQ/anubis/security/advisories/GHSA-jhjj-2g64-px7c
|
||||||
|
|||||||
Reference in New Issue
Block a user