dev-python/uv-build: Bump to 0.12.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-01 07:26:52 +02:00
parent d91ddcabbc
commit b7a76a4d68
2 changed files with 101 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ DIST uv_build-0.11.29.tar.gz 411484 BLAKE2B 4a9250bd8ecb4967c222f5ed0842c6415963
DIST uv_build-0.11.32.tar.gz 413653 BLAKE2B 8951cd4ddc44655a177c6cccbf81fe871306f1096161ea46cec8bf52b56de713b4d91c469e44913c140229ae61595cbdcbd5b2e0cbb7c791f7937c9fc9db898c SHA512 3732f141b2ffeaed8f08dadadb2b5e72c2d60e0cb9a13c7d6b7360471606afbaae88d841db655b79ca2753ef4e2e18dbb51464e6669c57aed98ee19219fa5b56
DIST uv_build-0.11.33.tar.gz 413871 BLAKE2B 8a662d0a80fc32cc22b4fa4df5bf38338e715eaddc6316348ac56cb5411b2433e5b36fad545f90719d4a83e989bc29e55be2cfc40ecd60c4fc94d91fb7b0bc4b SHA512 30001c3c49959ae09243a947d9c02bc46e391bd2e055476ce89c489b15cde789091f2461fffea8ac298805fd944c98c60aabbb804b6e13875569e659c0d8c28b
DIST uv_build-0.12.0.tar.gz 411983 BLAKE2B 3c6f6f32fa096d03426c63e001c86eed2d17b5a130fbc02a96271ca9073432393c4f9d14baa1c6d7993adadda88f0d45fd32e7c54d50669b3d54ef79c95314ff SHA512 719a2f6ae6c257a72d09e8f850cd217458e57162329adcbe7efcf59a0a62f83a6310e9da27d80ec9caf6bdf280eaee652b3267bd01955b9d22b7308f194c16d2
DIST uv_build-0.12.1.tar.gz 412371 BLAKE2B b5eb43ce1af6d78dbb68b2445329b90520ac6e9269ff6711270763d43d09cdd3a66ac9cbeab4f52964feea3b0d08559c133cd2510f65403dbf678d7bae3e5588 SHA512 5dda5acdf4a665cbc59a24c657921c81a6a5622fef463da255df2372d48186aed56806311824ede70337f64e8dde797b82386fa4aa2ed11b82fb11047ec2ec67

View File

@@ -0,0 +1,100 @@
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Maturin compiles uv-build executable for every impl, we do not want
# that, so we use another backend. And since we use another backend,
# why not dogfood it in the first place?
DISTUTILS_USE_PEP517=standalone
PYTHON_COMPAT=( python3_{12..15} )
inherit distutils-r1 pypi
DESCRIPTION="PEP517 uv build backend"
HOMEPAGE="
https://github.com/astral-sh/uv/
https://pypi.org/project/uv-build/
"
LICENSE="|| ( Apache-2.0 MIT )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/uv-${PV}
"
BDEPEND="
test? (
app-arch/unzip
dev-python/build[${PYTHON_USEDEP}]
)
"
src_prepare() {
distutils-r1_src_prepare
# use the executable from dev-python/uv instead of building
# a largely overlapping uv-build executable (at least for now)
sed -i -e '/USE_UV_EXECUTABLE/s:False:True:' python/uv_build/__init__.py || die
# replace the build-system section
sed -i -e '/\[build-system\]/,$d' pyproject.toml || die
cat >> pyproject.toml <<-EOF || die
[build-system]
requires = ["uv_build<9999"]
build-backend = "uv_build"
backend-path = ["src"]
EOF
# rename to make uv-build find it
mv python src || die
}
python_test() {
"${EPYTHON}" -m build -n || die "Self-build failed with ${EPYTHON}"
local zip_result=$(
unzip -t "dist/uv_build-${PV}-py3-none-any.whl" || die
)
local zip_expected="\
Archive: dist/uv_build-${PV}-py3-none-any.whl
testing: uv_build/ OK
testing: uv_build/__init__.py OK
testing: uv_build/__main__.py OK
testing: uv_build/py.typed OK
testing: uv_build-${PV}.dist-info/ OK
testing: uv_build-${PV}.dist-info/WHEEL OK
testing: uv_build-${PV}.dist-info/METADATA OK
testing: uv_build-${PV}.dist-info/RECORD OK
No errors detected in compressed data of dist/uv_build-${PV}-py3-none-any.whl.\
"
if [[ ${zip_result} != ${zip_expected} ]]; then
eerror ".zip result:\n${zip_result}"
eerror ".zip expected:\n${zip_expected}"
die ".whl result mismatch"
fi
local tar_result=$(
tar -tf "dist/uv_build-${PV}.tar.gz" || die
)
local tar_expected="\
uv_build-${PV}/PKG-INFO
uv_build-${PV}/pyproject.toml
uv_build-${PV}/pyproject.toml.orig
uv_build-${PV}/
uv_build-${PV}/README.md
uv_build-${PV}/src
uv_build-${PV}/src/uv_build
uv_build-${PV}/src/uv_build/__init__.py
uv_build-${PV}/src/uv_build/__main__.py
uv_build-${PV}/src/uv_build/py.typed\
"
if [[ ${tar_result} != ${tar_expected} ]]; then
eerror ".tar.gz result:\n${tar_result}"
eerror ".tar.gz expected:\n${tar_expected}"
die ".tar.gz result mismatch"
fi
}