summaryrefslogtreecommitdiff
path: root/dev-python/uv
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-10-02 03:05:03 -0500
committerCrucible <crucible@localhost>2026-10-02 03:05:03 -0500
commitc8cc1214c14d1f5931a1ecb986b940d05cf5145b (patch)
tree688b35f9bd1276715e07d46cf77cc778f6435ee5 /dev-python/uv
parentc387ab5925039957145c01955c824bf9b3c7cafc (diff)
downloadsrcux-c8cc1214c14d1f5931a1ecb986b940d05cf5145b.tar.gz
srcux-c8cc1214c14d1f5931a1ecb986b940d05cf5145b.tar.xz
srcux-c8cc1214c14d1f5931a1ecb986b940d05cf5145b.zip
Publish srcux candidate 0000000551-20261002-030306
Diffstat (limited to 'dev-python/uv')
-rw-r--r--dev-python/uv/Manifest2
-rw-r--r--dev-python/uv/uv-0.12.22.ebuild151
-rw-r--r--dev-python/uv/uv-9999.ebuild3
3 files changed, 155 insertions, 1 deletions
diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest
index 45455dce2ebe..deb00aa20408 100644
--- a/dev-python/uv/Manifest
+++ b/dev-python/uv/Manifest
@@ -22,6 +22,8 @@ DIST uv-0.12.20-crates.tar.xz 44005552 BLAKE2B 15c707de27a4481afd3ff3df15c35363f
DIST uv-0.12.20.gh.tar.gz 8759776 BLAKE2B 420f46145c95c998f34b78888af40f0c90eb398bc49dfc67ab8f879791bf75b4298eebd21c86f6bdc14c4a4e36124bac2a96b1eb637f3a9349e26f20502cfe25 SHA512 2e00c5f0a74b8ee0737d50f53dccb5f15d17e8b061969e518f302525f6fc5afe9fcb43be17a18f2181ca236abeee56a858f9c9604651719b61d4c963fd0079d9
DIST uv-0.12.21-crates.tar.xz 44007208 BLAKE2B 766a66fd6c83249f54559fe32fe010b2e42092f5855b9e5b62e64e39b485569c0a71194b524b9d65c8383545daac137af23a0986391b3727fc26b8ec4d187824 SHA512 71372e3bec222d7537391c06f2f335b5822dabb4e1292c1a67728516cf3d7a47c3273c791990acb446ed206e20dc06012c0fbe3b5a5fe56484dba37d54bb77f3
DIST uv-0.12.21.gh.tar.gz 8769125 BLAKE2B 323a9e5960e6546a02d9d83fc0bf40cb1e62ddf2850e1533a0a1ab4aad7270bcdbd5bd59ef1e4b1756af4e85ad360447f2bf896829d1e414dfc27c382a69ffc1 SHA512 acdd53dc789db22521c9968d7853a57b58dcb92da0daf244adbca7472bdf6dcd531fd5b373e8cffbf0fd6dc09a9f403c64159e875f48093b7eaa6fe4ba54f0db
+DIST uv-0.12.22-crates.tar.xz 43999028 BLAKE2B eab0cb19a8a778ce9bae824851609a3d8bfe82659cf73f9c7a475f0dfa063222eeba26c709985defad2a3c8b9e3d42f0a0755e038263df7fbab23f0b343afcab SHA512 d6f44f045ccdf77b57214614d168cad1fddf94a3ec506364eed9178c17488afbcd2ffb1660de1aeecd5d333bc7249cf093c0f214a14a85c9bbd2955fe1bc4015
+DIST uv-0.12.22.gh.tar.gz 8793875 BLAKE2B b70d02b6412c9e60285e09b00c1157dd5c3b05a04bc0dd7c97224a34ec4412a72abe0cef39b04e23f5e0810ce2b3eef62cba55e499b993aa0c6aad1cd5857c45 SHA512 973f73e63a4c63280116396c147a34f2ff78dcc2db0bc9b6763ba35f0f038215b07a46ef1377e787b067009a265592e037d3c1307a39338dca88ecd6a00ea503
DIST uv-0.12.3-crates.tar.xz 42197452 BLAKE2B 996bb294d37774e0cb5529c34552d20877cd82a3d063b6e4dc1f6feff05a7822a91c44408a970f038d3045312be0edd4c9e8d34f6eebc04d71bd4d2ffa0184ee SHA512 8de33956c5a603fb4aa1bb5ab6db68c537d7523a84f3092057f562b1209bc976b0bc64cc6ed76cbf1b0edb4981b6a41765fa5e2729a487e4e2322052aa08b8a4
DIST uv-0.12.3.gh.tar.gz 7273161 BLAKE2B 706a2297090b13c6f731d25f55ae8c2225e3b9bd820c61814f512c1e04d98d2e46ce5bfac6ec6ea346dbce1663aea644384b37663b53d64a08a90b48217bdb0d SHA512 a4933b9b9b852dee2485800ad82ee3be111a4a5a437ab32d5064cfd4004e124ba733294a546a097379c74cf1fc234d1da0488aec7725037c7b967ec1aa862a71
DIST uv-0.12.7-crates.tar.xz 44143088 BLAKE2B 075113e8cbafd99a1c70c4ce53678f2ceb13ce31dc7cafb5773e32ae9dfa14144390380e0149219912a0c4b92e6d3b9d0a0a0016cdd4c69097bf75adf1b8a716 SHA512 f9dbdad7cbddd3238c7cc9fbcbec4e92fc8c8c66bc7247ccc8159bb186223c199e3bd411ad9148750ec1fa258775dcec1e2bb6bc3287fca7aeb6ffa7ba4d6b44
diff --git a/dev-python/uv/uv-0.12.22.ebuild b/dev-python/uv/uv-0.12.22.ebuild
new file mode 100644
index 000000000000..23228cc55439
--- /dev/null
+++ b/dev-python/uv/uv-0.12.22.ebuild
@@ -0,0 +1,151 @@
+# Copyright 2024-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+RUST_MIN_VER="1.97.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 MIT-0 MPL-2.0 Unicode-3.0
+ Unicode-DFS-2016 ZLIB
+"
+# ring crate
+LICENSE+=" openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~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 tikv-jemalloc-sys?
+
+ # remove unbundled sources, just in case
+ find "${ECARGO_VENDOR}"/zstd-sys-*/ -name '*.c' -delete || die
+}
+
+src_configure() {
+ local myfeatures=(
+ test-git
+ test-pypi
+ test-python
+ )
+
+ cargo_src_configure --no-default-features
+ # otherwise, rustc/llvm runs out of address space
+ use arm && export RUSTFLAGS="${RUSTFLAGS} -Copt-level=0"
+}
+
+src_compile() {
+ cd crates/uv || die
+ cargo_src_compile
+}
+
+src_test() {
+ cd crates/uv || die
+ cargo_src_test --no-fail-fast
+}
+
+src_install() {
+ dobin "$(cargo_target_dir)"/{uv,uvx}
+
+ 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
+}
diff --git a/dev-python/uv/uv-9999.ebuild b/dev-python/uv/uv-9999.ebuild
index 1c1a92fd75d9..41ccbf53c421 100644
--- a/dev-python/uv/uv-9999.ebuild
+++ b/dev-python/uv/uv-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-RUST_MIN_VER="1.95.0"
+RUST_MIN_VER="1.97.0"
inherit cargo check-reqs git-r3
@@ -31,6 +31,7 @@ RDEPEND="
BDEPEND="
virtual/pkgconfig
test? (
+ dev-lang/python:3.9
dev-lang/python:3.10
dev-lang/python:3.11
dev-lang/python:3.12