commit:     37de15b0460e4e2314365f2f9429c0dd84326b52
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 26 04:30:36 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 26 07:02:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37de15b0

dev-python/uv-build: Bump to 0.6.17

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/uv-build/Manifest               |  1 +
 dev-python/uv-build/uv-build-0.6.17.ebuild | 39 ++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-python/uv-build/Manifest b/dev-python/uv-build/Manifest
index a9d910e2a745..c9fdbfa95e3e 100644
--- a/dev-python/uv-build/Manifest
+++ b/dev-python/uv-build/Manifest
@@ -1,2 +1,3 @@
 DIST uv_build-0.6.13.tar.gz 292732 BLAKE2B 
af5eeeb12c572fb11c95e85a342cdad91b9bb7bb1970351b75d38e94846b9f2049729691e9d125b2a7818a8d48eb668e4d3ffdf4dcc58ec18f9a790fb990e836
 SHA512 
a00af900bdde243a11de9a8d2c837229fa9ee7b9296b2a6d79c67580b9548a9fd1ef99dd5d77d680c147d69def2bb21852e6cba572946195b7b682cbc3e60799
 DIST uv_build-0.6.14.tar.gz 293296 BLAKE2B 
2c6a747a3099f3bac647b1d3bcfc62b66fe56f1a3a35da19b1d1c8945bca6a23bfa4e15a4c36c1ab29279b86de74959ec1b6da631c1f6594ec385e98800353ef
 SHA512 
6443abbfa04223a9483d521576caf2a27dc46abd6e6dfe1ed09637069a9f147e83953048f54ee4f7a34f58bb53b766b14340d6a50ac9331b821a2887dd682f73
+DIST uv_build-0.6.17.tar.gz 300696 BLAKE2B 
3f15068232e20b4b70ef319f90a258efc0d38be668bc438c91354b5ede4cb03235abc912292e2747249eab5c54c1fbc3cfa91ab1335881b975fce9677340c54e
 SHA512 
2827629a11a9775661554f3eae4f3c6018637203c18f739ce728973ee0e7f905bef7c9fcc200f95393e2e13c167e31fdf0ab8dced59c028c3c600d47ba373752

diff --git a/dev-python/uv-build/uv-build-0.6.17.ebuild 
b/dev-python/uv-build/uv-build-0.6.17.ebuild
new file mode 100644
index 000000000000..fdbaa6b65e0a
--- /dev/null
+++ b/dev-python/uv-build/uv-build-0.6.17.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+# maturin compiles uv-build executable for every impl, we do not want
+# that, so we hack hatchling into installing the Python module instead.
+DISTUTILS_UPSTREAM_PEP517=maturin
+PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} )
+
+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"
+
+RDEPEND="
+       >=dev-python/uv-${PV}
+"
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       cat >> pyproject.toml <<-EOF || die
+               [tool.hatch.build.targets.wheel]
+               packages = ["python/uv_build"]
+       EOF
+
+       # 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
+}

Reply via email to