From c0507f0f70228e679d875be0a0381c3203da38da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 23 Apr 2026 05:42:27 +0200 Subject: [PATCH] dev-python/ensurepip-wheel: Bump to 0.47.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/ensurepip-wheel/Manifest | 2 + .../ensurepip-wheel-0.47.0.ebuild | 61 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 dev-python/ensurepip-wheel/ensurepip-wheel-0.47.0.ebuild diff --git a/dev-python/ensurepip-wheel/Manifest b/dev-python/ensurepip-wheel/Manifest index 0f7fd0879da15..446781ab8d17b 100644 --- a/dev-python/ensurepip-wheel/Manifest +++ b/dev-python/ensurepip-wheel/Manifest @@ -1,2 +1,4 @@ DIST wheel-0.46.3.tar.gz 60605 BLAKE2B f896ffef160915d1a69bfa6dbd5a6cbefdd6b9e4f56867f15c6247d22ff0d6683171c51cf7e0f8808d8ffa536eb6540a1b2cd14ceba4a0e5cb9799d4261964ba SHA512 4bda170a085b00bead5bd5beb1cd865af3699a940774615c087b9e96c86a56a1f3992613df162bc055aebcc84bc0e13df310a38c6102cfc1d5d78e8af33d4e1a DIST wheel-0.46.3.tar.gz.provenance 9316 BLAKE2B dc911d733141cf7f580e924665d08319f031175c96d4b65704484d153f7a24118ac612adcc33795cbfebd48e4a3fb9b59f7b3d04208b8fd27fa5c16e65819de5 SHA512 af6e542cf028921476106f8f7409f6012b3b7687f49fea45374096c428d114409e8494e8769820a3c2a71a2b94395669247ffce1bab25b6cd2f686dd70117e57 +DIST wheel-0.47.0.tar.gz 63854 BLAKE2B 1ff8414476e13bd39a921f007176365c7c38963249a1ee0bbc2e94174ac3280bbe23711f94f84f11958db886e6293f5afe77ef15310a488b6951b472a15d9957 SHA512 cf2010e36c031ba47f6302a233811e57f0187244b06cdeff5ae5d2fb6cc16dfba594facbb3f58f795ec308d71a8a0332d09e610bb8720f2c9e8942a914bf3bc4 +DIST wheel-0.47.0.tar.gz.provenance 9367 BLAKE2B a9047b77f0e8ebe89da557d9af1be2034785673eea4eb1089b80c2604528b52b0486b81624bf4978f9479adafdca3e405ce36ab97235e5449979e9a6c24921dc SHA512 50aaef2cd93d5013d34017ef4d4e0f125cac0405d89d60081e4e43d00971f14d64397f5c358056e146f52a9ffbeeff9dc80e391a94b9c87f5e1fa9aeb3b9f1f2 diff --git a/dev-python/ensurepip-wheel/ensurepip-wheel-0.47.0.ebuild b/dev-python/ensurepip-wheel/ensurepip-wheel-0.47.0.ebuild new file mode 100644 index 0000000000000..8c8d4869e0524 --- /dev/null +++ b/dev-python/ensurepip-wheel/ensurepip-wheel-0.47.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYPI_PN=${PN#ensurepip-} +PYPI_VERIFY_REPO=https://github.com/pypa/wheel +# PYTHON_COMPAT used only for testing +PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Shared wheel wheel for use in pip tests" +HOMEPAGE=" + https://github.com/pypa/wheel/ + https://pypi.org/project/wheel/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/packaging-26.0[${PYTHON_USEDEP}] + ) +" + +# xdist is slightly flaky here +EPYTEST_PLUGINS=( pytest-rerunfailures ) +EPYTEST_RERUNS=5 +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_compile() { + # If we're testing, install for all implementations. + # If we're not, just get one wheel built. + if use test || [[ -z ${DISTUTILS_WHEEL_PATH} ]]; then + distutils-r1_python_compile + fi +} + +python_test() { + local EPYTEST_DESELECT=( + # fails if any setuptools plugin imported the module first + tests/test_bdist_wheel.py::test_deprecated_import + ) + + epytest +} + +src_install() { + if [[ ${DISTUTILS_WHEEL_PATH} != *py3-none-any.whl ]]; then + die "Non-pure wheel produced?! ${DISTUTILS_WHEEL_PATH}" + fi + # TODO: compress it? + insinto /usr/lib/python/ensurepip + doins "${DISTUTILS_WHEEL_PATH}" +}