mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/uv-build: Bump to 0.9.22
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -3,3 +3,4 @@ DIST uv_build-0.9.17.tar.gz 356435 BLAKE2B 902d134f83026a68ef8600b21d9ce8bddab28
|
||||
DIST uv_build-0.9.18.tar.gz 356832 BLAKE2B 61df9000eb4eb0dc147b4a18732937a459ff27ecbd6be19e1c4496632b8b79eaedb112dd2599d74ad111899d44070cf0acbdf4bc7b57d864823e202209a2b553 SHA512 093ece50dd3c89c56c7d61f35dbe66319ea23295e21b66b7cdb73ae669956d6a68684a183faad9c59cb96fc2b26747f40609570540b8ff158d1f8f3d32bfd15c
|
||||
DIST uv_build-0.9.20.tar.gz 357132 BLAKE2B eb64c2e9e0029cf8eb8f295e16897911c602f7bc3205188c224748352ec9f3843badb2407103508c2a8703f6141937e0f61d88ceaf8a31a551dad4b500c24731 SHA512 9caa5c33a8d563f4205022c0a978e8d0b1e53aa60c977dee9e83d227935675ab918de7eef96f8f6c3bf4adc4db70dbb99504cee5533cc66412c93f2263246f8b
|
||||
DIST uv_build-0.9.21.tar.gz 357539 BLAKE2B 721e12e0260301d3234f3fbc76d5944c9b15e14b345876d3f231314f64f15c5e6c37c8c7155e24605c928dbe52b12b3b02cd2f0a1373b8d93b017f2c122ddf19 SHA512 1e2885f978fa45e1481a72a35d5734ef80d3ab7da0213fc41cad8c4e49756bf0b172cea570d25a6b0461c6dd13fead8a8fae356b11ec758f8bd7b915faa322c4
|
||||
DIST uv_build-0.9.22.tar.gz 357175 BLAKE2B 684bfc438483ebcb7b818456fa88994c4f677cc550de06dfee0b05c5a55f058e5079b7851b0e5aa88153e50a78aa28efa6216388a0a6cb1c620b12f80400523d SHA512 dbb19e42fae9ba49eae7a5e55395b4c04542142a22a421ced43195eb616eeec53126452b1f716e9d4cb8a528adf54ab72ab1f36236e5ea1a7a0e7da8d28cf36a
|
||||
|
||||
99
dev-python/uv-build/uv-build-0.9.22.ebuild
Normal file
99
dev-python/uv-build/uv-build-0.9.22.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user