commit:     b3f8bdf221542385e82171db2e1090bd6285c982
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 28 05:42:12 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 28 06:38:12 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3f8bdf2

dev-python/uv: Bump to 0.10.7

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

 dev-python/uv/Manifest         |   2 +
 dev-python/uv/uv-0.10.7.ebuild | 164 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 166 insertions(+)

diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest
index a6473b26b423..700201f24c36 100644
--- a/dev-python/uv/Manifest
+++ b/dev-python/uv/Manifest
@@ -10,6 +10,8 @@ DIST uv-0.10.5-crates.tar.xz 41620476 BLAKE2B 
a8391e50bede2a9472f9449e95c179c502
 DIST uv-0.10.5.gh.tar.gz 4964729 BLAKE2B 
10e13b772f2a175e066a49c0819531d332f716dfb608a81d38e31a7651bfc3e1da23cd4b89147484538dba891bf2161e927f6d19c0992ff83a12a723a0ca7e1a
 SHA512 
7a01860e173f386f7feef10a33f9c49958e872a52df85627aadf7c09a54d4f8b01e429e91a83d96bcf7ac14ff9de01c2406fe7cb45b0128836328cd4a79895f9
 DIST uv-0.10.6-crates.tar.xz 41620476 BLAKE2B 
a8391e50bede2a9472f9449e95c179c502456da1030995eda3d5c2cdb922c7d45f95e95665233ef944380b19cf2360e1cf1ca43e851b898a3305f9e9f541e232
 SHA512 
bd78dc089160da67e4f503fd8307ed07d33255545f3cd226f6085919c1e6867c1b3cbdb2dc93dd1e854e5da549228db74ea595199fa87460b84b11596d53c3e7
 DIST uv-0.10.6.gh.tar.gz 4969125 BLAKE2B 
e820fd59458e890ba847d0334efdc3e3cdc0692e06d820fae742f2a8f801f96559de75d9f2fdfc8bb1bff9e644fb1af3f83de4b5b960304b247d8f485b7d4a1a
 SHA512 
5237b6961677d981af3320bb53958712c43f95de17af1d172015ba2ea80e02189b5ff9ea35d594211a4341bcaf8f55858a68ca5625c5d3dc7d17e5acaf39837d
+DIST uv-0.10.7-crates.tar.xz 41627264 BLAKE2B 
59f9c7cf092da54748ba38d6bea9c841d533e28db66f6fd3ac6017cf8729c069663ca683890419078cec8bd484bafdaad3d1753ff5e3dfbcec541decf2b53277
 SHA512 
ae1fe88cf1db2bcb9e360b1cfc804da49976e73748cb0910737857464993a0eddfe63b974488df0415af577dfb7ac0de4db39dce6e732996099d5971e99b5349
+DIST uv-0.10.7.gh.tar.gz 4970310 BLAKE2B 
f8e807cdb5e5f16a84f9d53afb3da1cc5c5953567b3de48398d41ed4deb12f260a853a5a3150cdc8a9a714a1bddbd969e744cc3302af3522503c79d570c506d9
 SHA512 
9a3c6fa356c655afad15c5b454efac9c7db4a4b4870903232a7a75bfdd778a18b7d5a59aa88a561445e5898d0b2c76e33c87081b113283c8bbd43f15645d404f
 DIST uv-0.9.15-crates.tar.xz 46539408 BLAKE2B 
57e582f56e12858292d1dfaec10292eb58fb118051618875eab0d2dcd4f55aa89de6f788b3aa5013ce5e03068bb404ef04faae633d5c208f382366ac5ddf70df
 SHA512 
4db7549d6902682db7af385e5099e74bbd82e54aaf45a44fe64416fda91e065f4bf978b9db55ab72f2872f9e8933b49020102b959c1d2bcef4b9a9877ac1e789
 DIST uv-0.9.15.gh.tar.gz 4887603 BLAKE2B 
422a3c004abdf052438b145400675010b1adfc8cb8d49979367544e2d381389594188276fe603ffa983f5926be624f5d863053bd79342eeee10caf1260b2a479
 SHA512 
2605e2e7d5f6fdbb5ec4839363f65c8e71559944ec003cb9c69040be08094eb5c041831151b669e2dbbcf1799e862f484a21a592090524f79686469eac0e3381
 DIST uv-0.9.21-crates.tar.xz 48642776 BLAKE2B 
4ce225a3639d02ea05014c2132a7fd8baf53f3bd0bf3cafc6ebde144f2cea982426835f91bcb587e8dba122afe381c5a0ffa654667d4677f0b0b18b4b63a2f2e
 SHA512 
db391109602bf1afbe868740ee977e76f92911136f61a9db8918ca89bcabdad02b75f1892cef200a370ea91829e177fd6c775aff9522f72fb90f2fc9d3acb22a

diff --git a/dev-python/uv/uv-0.10.7.ebuild b/dev-python/uv/uv-0.10.7.ebuild
new file mode 100644
index 000000000000..73993f9a17fd
--- /dev/null
+++ b/dev-python/uv/uv-0.10.7.ebuild
@@ -0,0 +1,164 @@
+# Copyright 2024-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+RUST_MIN_VER="1.91.0"
+
+inherit cargo check-reqs
+
+CRATE_PV=${PV}
+DESCRIPTION="A Python package installer and resolver, written in Rust"
+HOMEPAGE="
+       https://github.com/astral-sh/uv/
+       https://pypi.org/project/uv/
+"
+# pypi sdist misses scripts/, needed for tests
+SRC_URI="
+       https://github.com/astral-sh/uv/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+       ${CARGO_CRATE_URIS}
+"
+if [[ ${PKGBUMPING} != ${PVR} ]]; then
+       SRC_URI+="
+               
https://github.com/gentoo-crate-dist/uv/releases/download/${CRATE_PV}/uv-${CRATE_PV}-crates.tar.xz
+       "
+fi
+
+# most of the code
+LICENSE="|| ( Apache-2.0 MIT )"
+# crates/pep508-rs is || ( Apache-2.0 BSD-2 ) which is covered below
+# Dependent crate licenses
+LICENSE+="
+       0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0
+       CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016
+       ZLIB BZIP2
+"
+# ring crate
+LICENSE+=" openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="test"
+RESTRICT="test"
+PROPERTIES="test_network"
+
+DEPEND="
+       app-arch/bzip2:=
+       app-arch/xz-utils:=
+       app-arch/zstd:=
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       virtual/pkgconfig
+       test? (
+               dev-lang/python:3.9
+               dev-lang/python:3.10
+               dev-lang/python:3.11
+               dev-lang/python:3.12
+               dev-lang/python:3.13
+               !!~dev-python/uv-0.5.0
+       )
+"
+
+QA_FLAGS_IGNORED="usr/bin/.*"
+
+check_space() {
+       local CHECKREQS_DISK_BUILD=3G
+       use debug && CHECKREQS_DISK_BUILD=9G
+       check-reqs_pkg_setup
+}
+
+pkg_pretend() {
+       check_space
+}
+
+pkg_setup() {
+       check_space
+       rust_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       # force thin lto, makes build much faster and less memory hungry
+       # (i.e. makes it possible to actually build uv on 32-bit PPC)
+       sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
+
+       # enable system libraries where supported
+       export ZSTD_SYS_USE_PKG_CONFIG=1
+       # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?
+
+       # remove unbundled sources, just in case
+       find "${ECARGO_VENDOR}"/{bzip2,lzma,zstd}-sys-*/ -name '*.c' -delete || 
die
+
+       # bzip2-sys requires a pkg-config file
+       # https://github.com/alexcrichton/bzip2-rs/issues/104
+       mkdir "${T}/pkg-config" || die
+       export 
PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
+       cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
+               Name: bzip2
+               Version: 9999
+               Description:
+               Libs: -lbz2
+       EOF
+
+       # uv is now forcing bundled liblzma, sigh
+       sed -i -e '/xz/s:"static"::' Cargo.toml || die
+}
+
+src_configure() {
+       local myfeatures=(
+               test-git
+               test-pypi
+               test-python
+       )
+
+       cargo_src_configure --no-default-features
+}
+
+src_compile() {
+       cd crates/uv || die
+       cargo_src_compile
+}
+
+src_test() {
+       cd crates/uv || die
+       cargo_src_test --no-fail-fast
+}
+
+src_install() {
+       cd crates/uv || die
+       cargo_src_install
+
+       insinto /etc/xdg/uv
+       newins - uv.toml <<-EOF || die
+               # These defaults match Fedora, see:
+               # https://src.fedoraproject.org/rpms/uv/pull-request/18
+
+               # By default ("automatic"), uv downloads missing Python versions
+               # automatically and keeps them in the user's home directory.
+               # Disable that to make downloading opt-in, and especially
+               # to avoid unnecessarily fetching custom Python when the distro
+               # package would be preferable.  Python builds can still be
+               # downloaded manually via "uv python install".
+               #
+               # https://docs.astral.sh/uv/reference/settings/#python-downloads
+               python-downloads = "manual"
+
+               # By default ("managed"), uv always prefers self-installed
+               # Python versions over the system Python, independently
+               # of versions.  Since we generally expect users to use that
+               # to install old Python versions not in ::gentoo anymore,
+               # this effectively means that uv would end up preferring very
+               # old Python versions over the newer ones that are provided
+               # by the system.  Default to using the system versions to avoid
+               # this counter-intuitive behavior.
+               #
+               # 
https://docs.astral.sh/uv/reference/settings/#python-preference
+               python-preference = "system"
+       EOF
+}

Reply via email to