protobuf-python: fix QA, and backport some test fix

This commit is contained in:
Anton Bolshakov 2024-01-29 14:01:04 +08:00
parent 1761410c29
commit 357fd9c406
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 6 additions and 2 deletions

View file

@ -1 +1 @@
DIST protobuf-21.12.tar.gz 5141166 BLAKE2B 33500612d103afb817062486a741e8e5503f82c42c70054d47d1899e6bb79f3fdde2666cad5b8eff6e1bc539c3b0cdf9f2b125ce7e5d3a459a69e84d67ab535e SHA512 2dc8f552388438268d8b9f7a9e84c6abf1736be3d5031438c789c317410c9f4b5cedd25bf7da6d67b3ba32ca890869f9ddaab2284d6ac0e734a5b135ffbb1346
DIST protobuf-21.12.gh.tar.gz 5141166 BLAKE2B 33500612d103afb817062486a741e8e5503f82c42c70054d47d1899e6bb79f3fdde2666cad5b8eff6e1bc539c3b0cdf9f2b125ce7e5d3a459a69e84d67ab535e SHA512 2dc8f552388438268d8b9f7a9e84c6abf1736be3d5031438c789c317410c9f4b5cedd25bf7da6d67b3ba32ca890869f9ddaab2284d6ac0e734a5b135ffbb1346

View file

@ -22,7 +22,7 @@ if [[ "${PV}" == *9999 ]]; then
else
SRC_URI="
https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz
-> ${PARENT_P}.tar.gz
-> ${PARENT_P}.gh.tar.gz
"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos"
fi
@ -65,6 +65,10 @@ python_prepare_all() {
eapply_user
popd > /dev/null || die
# py3.12
sed -i -e 's:assertRaisesRegexp:assertRaisesRegex:' \
google/protobuf/internal/json_format_test.py || die
distutils-r1_python_prepare_all
}