From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 228081581C1 for ; Tue, 9 Jul 2024 12:52:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CBA9E2A35; Tue, 9 Jul 2024 12:52:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E5EEE2A35 for ; Tue, 9 Jul 2024 12:52:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4EAFD34302F for ; Tue, 9 Jul 2024 12:52:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 998DD1DFF for ; Tue, 9 Jul 2024 12:52:34 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1720529485.ea43d63d1245912a9bf8e259b70f3e2cdf51d204.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/protobuf-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/protobuf-python/protobuf-python-5.27.2.ebuild dev-python/protobuf-python/protobuf-python-9999.ebuild X-VCS-Directories: dev-python/protobuf-python/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ea43d63d1245912a9bf8e259b70f3e2cdf51d204 X-VCS-Branch: master Date: Tue, 9 Jul 2024 12:52:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8d1d8666-69d3-46d2-9601-1e89d6718862 X-Archives-Hash: 8c120c369dfec408e06f7916a91fa1c5 commit: ea43d63d1245912a9bf8e259b70f3e2cdf51d204 Author: Paul Zander gmail com> AuthorDate: Sun Jul 7 20:01:48 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jul 9 12:51:25 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea43d63d dev-python/protobuf-python: update 5.27.2, drop 9999 protobuf-python can no longer be build from github archives. https://github.com/protocolbuffers/protobuf/blob/main/python/README.md#building-from-setuppy Closes: https://bugs.gentoo.org/920646 Closes: https://bugs.gentoo.org/933068 Closes: https://bugs.gentoo.org/927521 Closes: https://github.com/gentoo/gentoo/pull/36885 Signed-off-by: Paul Zander gmail.com> Signed-off-by: Sam James gentoo.org> .../protobuf-python/protobuf-python-5.27.2.ebuild | 74 ++++---------------- .../protobuf-python/protobuf-python-9999.ebuild | 79 ---------------------- 2 files changed, 13 insertions(+), 140 deletions(-) diff --git a/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild b/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild index 8f12c5727960..b0d4a3ec76a7 100644 --- a/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild +++ b/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild @@ -3,76 +3,28 @@ 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_{10..13} ) +PYPI_PN="protobuf" -inherit distutils-r1 - -PARENT_PN="${PN/-python/}" -PARENT_PV="$(ver_cut 2-)" - -[[ "${PV}" == *9999 ]] && PARENT_PV="28.0" - -PARENT_P="${PARENT_PN}-${PARENT_PV}" +inherit distutils-r1 pypi DESCRIPTION="Google's Protocol Buffers - Python bindings" HOMEPAGE=" - https://developers.google.com/protocol-buffers/ + https://protobuf.dev/ https://pypi.org/project/protobuf/ " -if [[ "${PV}" == *9999 ]]; then - inherit git-r3 - - EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git" - EGIT_SUBMODULES=() - EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" -else - SRC_URI=" - https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz - -> ${PARENT_P}.gh.tar.gz - " - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" -fi - -S="${WORKDIR}/${PARENT_P}/python" - -LICENSE="BSD" -SLOT="0/${PARENT_PV}.0" - -DEPEND="${PYTHON_DEPS} +# Rename sdist to avoid conflicts with dev-libs/protobuf +SRC_URI=" + $(pypi_sdist_url) + -> ${P}.tar.gz " -RDEPEND=" - dev-libs/protobuf:0/${PARENT_PV}.0 -" - -distutils_enable_tests setup.py - -# Same than PATCHES but from repository's root directory, -# please see function `python_prepare_all` below. -# Simplier for users IMHO. -PARENT_PATCHES=( -) - -# Here for patches within "python/" subdirectory. -PATCHES=( -) -python_prepare_all() { - pushd "${WORKDIR}/${PARENT_P}" > /dev/null || die - [[ -n "${PARENT_PATCHES[*]}" ]] && eapply "${PARENT_PATCHES[@]}" - eapply_user - popd > /dev/null || die - - distutils-r1_python_prepare_all -} - -src_configure() { - DISTUTILS_ARGS=( --cpp_implementation ) -} - -python_compile() { - distutils-r1_python_compile - find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die -} +LICENSE="BSD" +SLOT="0/$(ver_cut 1-3)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" diff --git a/dev-python/protobuf-python/protobuf-python-9999.ebuild b/dev-python/protobuf-python/protobuf-python-9999.ebuild deleted file mode 100644 index c8a33b8666b2..000000000000 --- a/dev-python/protobuf-python/protobuf-python-9999.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2008-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) - -inherit distutils-r1 - -PARENT_PN="${PN/-python/}" -PARENT_PV="$(ver_cut 2-)" -PARENT_P="${PARENT_PN}-${PARENT_PV}" - -if [[ "${PV}" == *9999 ]]; then - inherit git-r3 - - EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git" - EGIT_SUBMODULES=() - EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" -else - SRC_URI=" - https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz - -> ${PARENT_P}.tar.gz - " - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" -fi - -DESCRIPTION="Google's Protocol Buffers - Python bindings" -HOMEPAGE=" - https://developers.google.com/protocol-buffers/ - https://pypi.org/project/protobuf/ -" - -LICENSE="BSD" -SLOT="0/23.3.0" - -S="${WORKDIR}/${PARENT_P}/python" - -BDEPEND=" -" -DEPEND=" - ${PYTHON_DEPS} -" -RDEPEND=" - ${BDEPEND} - dev-libs/protobuf:${SLOT} -" - -distutils_enable_tests setup.py - -# Same than PATCHES but from repository's root directory, -# please see function `python_prepare_all` below. -# Simplier for users IMHO. -PARENT_PATCHES=( -) - -# Here for patches within "python/" subdirectory. -PATCHES=( -) - -python_prepare_all() { - pushd "${WORKDIR}/${PARENT_P}" > /dev/null || die - [[ -n "${PARENT_PATCHES[@]}" ]] && eapply "${PARENT_PATCHES[@]}" - eapply_user - popd > /dev/null || die - - distutils-r1_python_prepare_all -} - -src_configure() { - DISTUTILS_ARGS=( --cpp_implementation ) -} - -python_compile() { - distutils-r1_python_compile - find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die -}