commit: 94a3e57813444919f5a495fe4b94060c07538dd2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jan 10 07:12:31 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Jan 10 07:40:50 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94a3e578
dev-python/protobuf: Remove old Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/protobuf/Manifest | 1 - dev-python/protobuf/protobuf-5.29.5.ebuild | 156 ----------------------------- dev-python/protobuf/protobuf-6.32.1.ebuild | 155 ---------------------------- 3 files changed, 312 deletions(-) diff --git a/dev-python/protobuf/Manifest b/dev-python/protobuf/Manifest index 567cc43a4e9a..7ad847a4cfdc 100644 --- a/dev-python/protobuf/Manifest +++ b/dev-python/protobuf/Manifest @@ -1,4 +1,3 @@ -DIST protobuf-29.5.gh.tar.gz 9351493 BLAKE2B bb591ebe69cc76830ac84e4af10a3de3cc5c760ffd682a9b9d6bab6f838d4bcb32c361118b41fdc6c6a6e6c3eb00657b0a345d8cc709d95c9635e76dd71494af SHA512 fb35f36145356fbc65a5c9a9501ea9d1e089fc1cd4dd2c8098068b7f10a378efff5b04429bc500347e98cf2b239d49f8c503c60bd35ddaad3d4f6b0a076ebabf DIST protobuf-32.0.gh.tar.gz 9692366 BLAKE2B 37e09bec62a5c35a3ca45d4bd4fd27e719a4f04b95f049b265ca7c231459d8333eafc13cfd1126dda5ccf799ab2e2e9f305fcae5525a64b4b1eb45b1fb3a897b SHA512 89806b219fa2132e46bf01b7a5831c2977ad7ebe06750956d0e17bcdc028498e883704445fca56bb813f4b78e935709f67f8fa1b46b597840c58a843483cdafb DIST protobuf-32.1.gh.tar.gz 9694736 BLAKE2B 37a310799eaa58b14f67c62410f1e150c031b94db5a499ceeda749bd13a1165403a5d4c86ffa45729ae333080697ce0619b29a51d2bc345de012f99a3ce5dd20 SHA512 840239f4fb57450ffe61f2cdc73daf5f1f3ea317b1ab1135a90303783e62722cfa410ff27bb2c5c6d3106be39ccdc95cdfbc5bf271ba79f935ab85f9b8ce3075 DIST protobuf-33.2.gh.tar.gz 6875303 BLAKE2B 74e09134d5a8c524f1c2c11244d41c7b26a075872fbf99a95759878cf8e6a3effaf946b7e1994f3cbdfd8a465218bd1f226278e9e6ac6b1f9a1f7d54a0a366cf SHA512 7b84fee0cb0a3b5de4b59899b12a7cccfe330b588a26bf397ec46c3ac61ce883018116f6a0ef73e621b35e7eacde1d13086317dad5cfa1066aa558c950ef48a2 diff --git a/dev-python/protobuf/protobuf-5.29.5.ebuild b/dev-python/protobuf/protobuf-5.29.5.ebuild deleted file mode 100644 index 4e58ba5a37fb..000000000000 --- a/dev-python/protobuf/protobuf-5.29.5.ebuild +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright 2008-2025 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 ~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}] - dev-python/pytest-forked[${PYTHON_USEDEP}] - ) -" - -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 - google/protobuf/internal/recursive_message_pybind11_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_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/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 - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # pytest-forked prevents segfault on py3.13 - # https://github.com/protocolbuffers/protobuf/issues/22067 - epytest -p pytest_forked --forked -} diff --git a/dev-python/protobuf/protobuf-6.32.1.ebuild b/dev-python/protobuf/protobuf-6.32.1.ebuild deleted file mode 100644 index 2d530e183d63..000000000000 --- a/dev-python/protobuf/protobuf-6.32.1.ebuild +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright 2008-2025 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 ~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=( pytest-forked ) -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 - google/protobuf/internal/recursive_message_pybind11_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_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/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 - - # pytest-forked prevents segfault on py3.13 - # https://github.com/protocolbuffers/protobuf/issues/22067 - epytest --forked -}
