From 746bd282eca964adaa70f1f2aa322f1e549e91c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 30 Apr 2026 05:58:29 +0200 Subject: [PATCH] dev-python/build: Bump to 1.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/build/Manifest | 1 + dev-python/build/build-1.5.0.ebuild | 76 +++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 dev-python/build/build-1.5.0.ebuild diff --git a/dev-python/build/Manifest b/dev-python/build/Manifest index 6d81dda0a3984..8025982653f59 100644 --- a/dev-python/build/Manifest +++ b/dev-python/build/Manifest @@ -1,2 +1,3 @@ DIST build-1.3.0.gh.tar.gz 50871 BLAKE2B 0ca200c92e3bfa3ee91643cb140e4e6e90b01cdf820576a4b36e828ae5ed981075e22f0882b3ef6e2032a7f3cab3810a12c2b68503fccae89060b7cff8da9164 SHA512 f34450ffc92a434af2614f4341b38c8feed18ce9a799196bff3f735afc52334cacb34d2a831c3264bbfaacda642a5e4defe3842f8010cd687d47e2d018a191d0 DIST build-1.4.4.gh.tar.gz 95523 BLAKE2B f8f9247d4fbc27930a578fb4f0abba1e24af3e546f9b8af4fdef12e1d7c782b78805c917cbad77a9e8d2de9bd3e86613c8dc4a08fd5421e5d46dea948a3b8bdc SHA512 e296ad08b28b29e1233799ef25ad54265a19ced4c1c09db178776907d8ecc81f18d3f6bcc0f2197b250e5791e8c46362ba23a6a2ca455cab9d9dd308e4a8fc59 +DIST build-1.5.0.gh.tar.gz 95863 BLAKE2B 58bd95373d424cc06a4cb32da7d3e58743d0a5b1b59f92887ceb5d432d0f84ca92d3ba1e32c77580161c24b6f245103ddde2c674633e49f3a7a6f742e19e59ed SHA512 25f69c82047698e802feaf162a1ee334d32f83689ace3e2116d2329a10310b3bcfc6f2e42242d875f4781dffb364c95112819eb2bdaaecc0ebd4b9c00a94b99b diff --git a/dev-python/build/build-1.5.0.ebuild b/dev-python/build/build-1.5.0.ebuild new file mode 100644 index 0000000000000..26d7680bf2bc2 --- /dev/null +++ b/dev-python/build/build-1.5.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_TESTED=( python3_{11..14} pypy3_11 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t ) + +inherit distutils-r1 + +MY_P=${P/_p/.post} +DESCRIPTION="A simple, correct PEP517 package builder" +HOMEPAGE=" + https://pypi.org/project/build/ + https://github.com/pypa/build/ +" +SRC_URI=" + https://github.com/pypa/build/archive/${PV/_p/.post}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test test-rust" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/packaging-24.0[${PYTHON_USEDEP}] + dev-python/pyproject-hooks[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-6[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + $(python_gen_cond_dep ' + >=dev-python/filelock-3[${PYTHON_USEDEP}] + >=dev-python/pip-22.3[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-2[${PYTHON_USEDEP}] + >=dev-python/pytest-rerunfailures-9.1[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.34[${PYTHON_USEDEP}] + >=dev-python/setuptools-56.0.0[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.0.35[${PYTHON_USEDEP}] + >=dev-python/wheel-0.36.0[${PYTHON_USEDEP}] + test-rust? ( + !s390? ( !sparc? ( >=dev-python/uv-0.1.18 ) ) + ) + ' "${PYTHON_TESTED[@]}") + ) +" + +python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local EPYTEST_DESELECT=( + # broken by uv being installed outside venv + tests/test_env.py::test_external_uv_detection_success + ) + + if ! has_version "dev-python/uv"; then + EPYTEST_DESELECT+=( + tests/test_env.py::test_uv_impl_install_cmd_well_formed + 'tests/test_env.py::test_venv_creation[uv-venv+uv-None]' + ) + fi + + local EPYTEST_PLUGINS=( pytest-{mock,rerunfailures} ) + local EPYTEST_XDIST=1 + epytest -m "not network" +}