dev-python/uv-build: Bump to 0.9.29

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-02-04 03:26:03 +01:00
parent 39acadb11d
commit 844d3a7dc4
2 changed files with 100 additions and 0 deletions

View File

@@ -8,3 +8,4 @@ DIST uv_build-0.9.24.tar.gz 359788 BLAKE2B 79cd6452e95d99a01e8212d80c7c0b30aeb57
DIST uv_build-0.9.25.tar.gz 359005 BLAKE2B b0c8307919092aa0abbca7da379efd315f54c4d70c066633a3524fb1a78fcff0831e071086050b240536a123d965706337f09c716814e5655c9051cd4d879a19 SHA512 601eea260c615b6102c0e6a766d7c5fd0585c72005fb813a22cdc3f568c2f57042f72d3d16822f1c1773e1f9e8580d1f77b1e73b940a026c0a8e8783ef817f7b
DIST uv_build-0.9.27.tar.gz 359927 BLAKE2B 59b28b510f3d6b00e1cc3d4d7b2513181d2b0b494beeb3bc715e02a88ed42efddd2d5baa76c220dd94128bda9283f80f4bbf4fd7510101d022c9a070a7205cf8 SHA512 9b7ddba6293f6b2b6df8d4d5d5d2ededdea9c2806551d61ca32f1831bd0f073c68463336cbfb75e69a202af0cba2f61a9d03c80e19cf4b1c7e5a314b34c59bd7
DIST uv_build-0.9.28.tar.gz 359476 BLAKE2B 287b5b7ef98e9838c12416d0ff1f0ff938a13acf3858a3062f94d699af3d3c94a00be8f0e95effe76c26aa8930c9679f93baeee16822c1a32b5486a87d3bfa28 SHA512 d12d6850f231535f9f6a4abb2086eee76f527fe396b9e5cb63abf6697353c07e8e24c9479804cdcec64054230fea751525d24ce05c811a8d02e03acc5c96957c
DIST uv_build-0.9.29.tar.gz 360262 BLAKE2B d8d80dbe8d7c0d8f73e6ccc84379a0d410307bb065d74c4020e0ae1a8ca5651cd390408681eb7e10a3bc118e018676fb82d784a5457719a8c20f10252785d1f4 SHA512 ad449f2dcc4b0132f9610124a0ab66145c9f53e81ade24694b4c83f41a0922e6ec1e993898b1c94d2eb872bf8df6313105e6f7d395dbd8f63a6476d199f4f6bb

View File

@@ -0,0 +1,99 @@
# 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=( pypy3_11 python3_{11..14} )
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 ~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}/
uv_build-${PV}/README.md
uv_build-${PV}/pyproject.toml
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
}