dev-python/protobuf: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-07-28 08:40:45 +02:00
parent 56d686fe43
commit a0451ce564
2 changed files with 0 additions and 159 deletions

View File

@@ -1,7 +1,6 @@
DIST protobuf-33.6.gh.tar.gz 6890866 BLAKE2B 318a24f478084c8c0e97f4fe14677b86f1c01e4bdc148564fd1fda997e8fecf39c2dba4903784d10733ebcf4671bd4ba67f739f54218074e9c3dd883bae717c3 SHA512 16f8689ec7aba47d29f27c2360c33c78d6e11ae9f29e815f792e6b943713395e680f0ab6d48f9395e8bec1df44c4afdc212ad4e4fc3629b820e7b3ac82e132e9
DIST protobuf-34.1.gh.tar.gz 7037923 BLAKE2B 38e0717361f8130f404217c7d8feba1984fc18424245a471be70eeb34bdab6c50f3b8d1cce5e0914065d1ebf607c022cae58fbcebe3e0495ee7279e011b17553 SHA512 87820e7792dc42e20dc084174f096031e2173d68a8fcf8c5deb8e91c25396d6ce423da2019b8757f27c9adbc030b7cfd9b3efcb41e18ac19b2f36c995953b8b7
DIST protobuf-34.2.gh.tar.gz 7039262 BLAKE2B f4164b583b0cb9b4fd6f42795f3061c78dc4f55c23bbc47013c9f4ec216978f3abaa0e2e890f39750ffe0f10f478fa2675ae963f787eb53dad08e1f28b5288d5 SHA512 680a03ee2a9fdb32010762ff9e5dd877f6e723a593277a4dd76e15db795e6b2b5c6c2dee1c27c1a645e2d8d304634bd65ca322778e03f3df77571df8d8623361
DIST protobuf-35.0.gh.tar.gz 7153471 BLAKE2B 1deed56c80be6613ed8d67a8b28b4a62c0ccae2ba89b44b886c5030377b495c1d0d8e0f15786e69aae928067e2eb8877503e14a64946a20901a4872470ca989a SHA512 0d97b06f4e40b631cf5498bdb895846fd98943eeb97abe7993ee23a200c4956d34bc3c8c1436e5ac8413d217b49ba8689b3a58908a8e4ab5283864d678950aaf
DIST protobuf-35.1.gh.tar.gz 7153431 BLAKE2B b4e14b64b43140bf8a018dd7754c2578d66f09717094d590a2145768e37f45feffae7c8fa9036d2c16f75ff6db767fa00099b0e18fe021c4ea5b7b0c75c0e495 SHA512 e718c23d3c1f9fb4f2a438dec13cb3f3f09d6ffcaaab71c0059426cc5e130525ad2d7a231ec436d1d910b44837c585a401feebb806a2f28945e26fd96c0451cc
DIST protobuf-5.29.6.py.tar.gz 425623 BLAKE2B 113d56d001efde5d432437b0740c92255d7178a6900bf7b8266cece0d9c99815f12029034697f7363566d7500b853fc0825c5b3c01d8104b483323fcdbbcbb07 SHA512 42cb4c9b69dec89f001e6b70e35a25ddc94708e2977076ecd7d0e414b9547b2d1a044a1e8bfbf7eb7bebe6395888056f30cfb4c29608d86c9d0fcb7733c2b69a
DIST protobuf-6.31.1.gh.tar.gz 9602805 BLAKE2B 349a528acaad6bae8c39be2888fcfe855dc71605d2b52e20c24e63b3171a855b0f16c60e4fa8a69bcad8b484edd46232132e7b0256634f420aea2dd207da129e SHA512 9138ac1b1c248246ed9840ab3879a6e18da60c709454ede2cb8e45e66e949998ab6e2c8aba557f0bb0b650ec430caeb546695b23387321ced5bc288866e04ad7
@@ -9,5 +8,4 @@ DIST protobuf-6.31.1.py.tar.gz 441797 BLAKE2B 867ee81473a733020098f76c2ccf22161a
DIST protobuf-6.33.6.py.tar.gz 444531 BLAKE2B cdb81c0a64ee24937677bd34731b816854d2479bc9ab09092ff72d318951252b029efed8c8b25a331bc83719141e1a62aff1a398472f9f39e005cc9d9daaffc5 SHA512 074d035d5894dd8b7cab0ad8603f88a4e346034c07896ac0be2f207e3785c6c1b35f094c5a8d48920ce3c8e10232c571135f08215c8526ecf50ac3ebe1547b80
DIST protobuf-7.34.1.py.tar.gz 454708 BLAKE2B 47c069501355a0a19b075e01c661d4bb0cdd2d35b4a4d574320649136e3cfded8ef2a16c70c2c8633723c09efc74fab22d636fcde54813ebb7cffe8d489f85a7 SHA512 9ad533b9bb72c7d490578e63afd704b1ec50b5b1689cfe4da8c7897ec523b7286f690e4952646fa95e65bac9c6a9722e55df41f42116e163bfec89e84d251b7f
DIST protobuf-7.34.2.py.tar.gz 454776 BLAKE2B 64fe4ca16baa6d26afc16055cfa0e593d2d4b518ec7171532bdca41069a42e714b847fbf1a195c39a480bdfdc257b8ac6385c5c6b2446c458a94c50231dc0766 SHA512 d0d619c2c459f2172a5b0f0d5235e89789738ad1c4fca4d93c71e89e9641de426c2919db69fd967c0070307b4cd88d86c1fdb8dfd39162202e1634043c437db2
DIST protobuf-7.35.0.py.tar.gz 458677 BLAKE2B a98b765cb4291b5f9abaf7302052857b8b7c8256690921f4f18012a74747b234ff091b8b160fc616693a5b5c8f5f0fb5e8b40c11ae892ed42d0114528c06efe5 SHA512 009307d9d19139ec219f7d3f05db1f9d2894bcd8029c7ba12c367ea7f08a2393af2008baf92ae86b6ebbf1ab51f9578b842a124d2d8203a5d9ce6f2fbdb5ef2e
DIST protobuf-7.35.1.py.tar.gz 458717 BLAKE2B 70d0ff4a320d5d246e77df8e5284f7a0712feb73bf20a0e0ccd8155bc9674bb1ff8b0717c4c573fa612562cfb16eca93e9415266b0e58dba2cbf1b6fe923a776 SHA512 f732067c69921340aaf295e2b55c21d244e60f59430379c0dbda3657bcd104a094c8747f64bbc692ce6d2e2ee6593c587f04d42369d11f97cc2fd27d03864a1d

View File

@@ -1,157 +0,0 @@
# Copyright 2008-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Default implementation currently is upb, which doesn't match dev-libs/protobuf
# https://github.com/protocolbuffers/protobuf/blob/main/python/README.md#implementation-backends
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 pypi
GH_PV=$(ver_cut 2-3)
GH_P=${PN}-${GH_PV}
DESCRIPTION="Google's Protocol Buffers - Python bindings"
HOMEPAGE="
https://protobuf.dev/
https://pypi.org/project/protobuf/
"
# Rename sdist to avoid conflicts with dev-libs/protobuf
SRC_URI="
$(pypi_sdist_url) -> ${P}.py.tar.gz
test? (
https://github.com/protocolbuffers/protobuf/archive/v${GH_PV}.tar.gz
-> ${GH_P}.gh.tar.gz
)
"
LICENSE="BSD"
SLOT="0/$(ver_cut 1-3)"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
# need protobuf compiler
BDEPEND="
test? (
dev-libs/protobuf[protoc(+)]
dev-python/absl-py[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_unpack() {
unpack "${P}.py.tar.gz"
if use test; then
mkdir "${WORKDIR}/test" || die
cd "${WORKDIR}/test" || die
unpack "${GH_P}.gh.tar.gz"
fi
}
src_prepare() {
distutils-r1_src_prepare
# strip old-style namespace
rm google/__init__.py || die
}
python_test() {
local EPYTEST_DESELECT=()
local EPYTEST_IGNORE=(
# TODO: figure out how to build the pybind11 test extension
# (NB: upstream actually ignores these tests...)
google/protobuf/internal/recursive_message_pybind11_test.py
google/protobuf/internal/proto_api_test.py
)
case ${EPYTHON} in
python3.11)
EPYTEST_IGNORE+=(
# syntax error...
google/protobuf/internal/json_format_test.py
)
;;
python3.14*)
EPYTEST_DESELECT+=(
# exception message mismatch
google/protobuf/internal/json_format_test.py::JsonFormatTest::testInvalidTimestamp
google/protobuf/internal/well_known_types_test.py::TimeUtilTest::testInvalidTimestamp
)
;;
esac
cp -r "${BUILD_DIR}"/{install,test} || die
local -x PATH="${BUILD_DIR}/test${EPREFIX}/usr/bin:${PATH}"
cd "${BUILD_DIR}/test$(python_get_sitedir)" || die
# copy test files from the source tree
cp -r "${WORKDIR}/test/${GH_P}/python/google/protobuf/internal/." \
google/protobuf/internal/ || die
# link the test data for text_format_test.py
# (it traverses directories upwards until to finds src/google...)
ln -s "${WORKDIR}/test/${GH_P}/src" ../src || die
# compile test-related protobufs
local test_protos=(
# from src
any_test.proto
map_proto2_unittest.proto
map_unittest.proto
unittest.proto
unittest_custom_options.proto
unittest_delimited.proto
unittest_delimited_import.proto
unittest_features.proto
unittest_import.proto
unittest_import_option.proto
unittest_import_public.proto
unittest_legacy_features.proto
unittest_mset.proto
unittest_mset_wire_format.proto
unittest_no_field_presence.proto
unittest_no_generic_services.proto
unittest_proto3.proto
unittest_proto3_arena.proto
unittest_proto3_extensions.proto
unittest_retention.proto
util/json_format.proto
util/json_format_proto3.proto
# from python
internal/descriptor_pool_test1.proto
internal/descriptor_pool_test2.proto
internal/factory_test1.proto
internal/factory_test2.proto
internal/file_options_test.proto
internal/import_test_package/import_public.proto
internal/import_test_package/import_public_nested.proto
internal/import_test_package/inner.proto
internal/import_test_package/outer.proto
internal/message_set_extensions.proto
internal/missing_enum_values.proto
internal/more_extensions.proto
internal/more_messages.proto
internal/no_package.proto
internal/packed_field_test.proto
internal/packed_field_test.proto
internal/self_recursive.proto
internal/test_bad_identifiers.proto
internal/test_proto2.proto
internal/test_proto3_optional.proto
internal/well_known_types_test.proto
)
local proto
for proto in "${test_protos[@]}"; do
protoc --python_out=. -I"${WORKDIR}/test/${GH_P}/src" -I. \
"google/protobuf/${proto}" || die
done
epytest
}