summaryrefslogtreecommitdiff
path: root/dev-python/uv-build
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-07-30 03:04:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-07-30 03:04:49 -0500
commit0fb86e044f244e00302b1878b3e15e0db0e4b7e5 (patch)
tree01eeaaaafa24d9c759103aa30b91c5999ae52a1d /dev-python/uv-build
parent8087a9548fbac1dade3245660600d025f43d6732 (diff)
downloadbaldeagleos-repo-0fb86e044f244e00302b1878b3e15e0db0e4b7e5.tar.gz
baldeagleos-repo-0fb86e044f244e00302b1878b3e15e0db0e4b7e5.tar.xz
baldeagleos-repo-0fb86e044f244e00302b1878b3e15e0db0e4b7e5.zip
Adding metadata
Diffstat (limited to 'dev-python/uv-build')
-rw-r--r--dev-python/uv-build/Manifest1
-rw-r--r--dev-python/uv-build/uv-build-0.12.0.ebuild100
2 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/uv-build/Manifest b/dev-python/uv-build/Manifest
index adf54c749045..560a85ef53b4 100644
--- a/dev-python/uv-build/Manifest
+++ b/dev-python/uv-build/Manifest
@@ -4,3 +4,4 @@ DIST uv_build-0.11.25.tar.gz 404894 BLAKE2B 6922a5e91c5c657ca5ed90edb0250cbd7192
DIST uv_build-0.11.29.tar.gz 411484 BLAKE2B 4a9250bd8ecb4967c222f5ed0842c6415963a3423b593f59dfb87a2fa343839abb0d77f1cb1f90d69ac45c54722cde8ff68e3e567478f54a0b21ba74fd4d55fd SHA512 c9722cb2575d9d0b50ba36b53b8cb2eae35f18e2da92ea7eab74743354e8b17034172f2c932e381cf158d2d748103d9bcb97ba383e465f7770efc2dc11ae2dc6
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
diff --git a/dev-python/uv-build/uv-build-0.12.0.ebuild b/dev-python/uv-build/uv-build-0.12.0.ebuild
new file mode 100644
index 000000000000..65d94f2051ae
--- /dev/null
+++ b/dev-python/uv-build/uv-build-0.12.0.ebuild
@@ -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_{13..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 ~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
+}