public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uv/
Date: Wed, 25 Sep 2024 04:39:30 +0000 (UTC)	[thread overview]
Message-ID: <1727239134.2cff09c50f85ff174149e26c6ec53eb471daed25.mgorny@gentoo> (raw)

commit:     2cff09c50f85ff174149e26c6ec53eb471daed25
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 25 03:54:34 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep 25 04:38:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cff09c5

dev-python/uv: Bump to 0.4.16

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

 dev-python/uv/Manifest         |   2 +
 dev-python/uv/uv-0.4.16.ebuild | 135 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 137 insertions(+)

diff --git a/dev-python/uv/Manifest b/dev-python/uv/Manifest
index fb4906f26e3b..2328c461f78d 100644
--- a/dev-python/uv/Manifest
+++ b/dev-python/uv/Manifest
@@ -8,4 +8,6 @@ DIST uv-0.4.11.gh.tar.gz 2598363 BLAKE2B 44b04001ca796e59aec6b17984d89324de6cbf7
 DIST uv-0.4.14-crates.tar.xz 46101112 BLAKE2B 08db62cb25a53b604f717b971063b1c01b6772442316777d82ca331ae19c685ad2b7b4f2d69a6f5112783f89108cc78a66e116a106e3d4c17dbee7508d3bf27e SHA512 8b8bd02c2e7b8b9bc38161aad144a1a2581491448e9e6b68f99fdaee737c52f80bac70e80cbd57094de621cc08d39c63d5d791635a9b327d260afd61d9de8b6b
 DIST uv-0.4.14.gh.tar.gz 2650440 BLAKE2B bf9329999e2f88932f3d7072ce941fcaed0ccd172737820f9e980de71a6636e4b445387857de5b6649d0d2b512901e0482b37f3634d0e0a30ee4268debc8ff8a SHA512 6f5a92f3900f131917120e0ad0b05ef56f8d9a227275d25d8fc132a1a62a0351c96c332b7f75709b6542600f51fdf0c4f702f90151b62c1f265e159d7e7af648
 DIST uv-0.4.15.gh.tar.gz 2650314 BLAKE2B bc492fab2af297c68666fda239da204ecce9b9169767c2a0a4feb85d0078f57df25c61c4068783042e9977c7698fc2fd6776e106443672beacab932fce3db5f0 SHA512 7b2293e8be56a61fd4288256b462f01a522da5cdcbab8c4ad140f7c0fe9b196f4ce2ecfb23984c0a1d0f7205e85e49dc9eae0b4fbce4778f8f5eb21d4eb77ee3
+DIST uv-0.4.16-crates.tar.xz 46123176 BLAKE2B eeaa189f91742296e48f123f7695b5836e538681b99da1c7e9f7acd9b2cf6b29e570b41fc7436a664ae180e0aff51be03300e03a184a72d986b2a7840f99c3ab SHA512 41eaa866818fa3b58a7451f748f60da6f940865c377405fd999db9eab4bea696aab053be99faf8f8bad2d3a15b84d137607f87cd97c5d7a1884dcbee461f562b
+DIST uv-0.4.16.gh.tar.gz 2685666 BLAKE2B 34159ce43382bcd5b10191b6b9ed763ca831c755dbe5312f8c10493a2c224882b5014c583851f6c0a7ebcdb70591cacd755e1a9b3305a1533986b06706cb6d08 SHA512 e0c25a56b67ac73156f97a0e9d1637ad395a05a6d87dffd7f39ee5c78028a555ce6d5cf97c6a0a11a709fd7f25d179e48a57eea4dbcc7f34b307b02f751a62d8
 DIST uv-0.4.9-crates.tar.xz 46250584 BLAKE2B 6beb0a00885b674f3d8e35c67372d4ba04c6512306f78522fac2ff170d7cc6cb6c0702546da1d1de3dc84397f04258c56558c666b8f935130a0fea1debce01d0 SHA512 676f6a197af92bc9f6716c0e1df1f87d81b1b07dc81c591b94b34b985bbe4a49fb0b319fe8fba7f83d158124af84f64ebefe1ce0119e6238f9ae837e4652c5c0

diff --git a/dev-python/uv/uv-0.4.16.ebuild b/dev-python/uv/uv-0.4.16.ebuild
new file mode 100644
index 000000000000..3ae2d3a44bdd
--- /dev/null
+++ b/dev-python/uv/uv-0.4.16.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+	[async_zip]='https://github.com/charliermarsh/rs-async-zip;011b24604fa7bc223daaad7712c0694bac8f0a87;rs-async-zip-%commit%'
+	[pubgrub]='https://github.com/astral-sh/pubgrub;388685a8711092971930986644cfed152d1a1f6c;pubgrub-%commit%'
+	[reqwest-middleware]='https://github.com/astral-sh/reqwest-middleware;5e3eaf254b5bd481c75d2710eed055f95b756913;reqwest-middleware-%commit%/reqwest-middleware'
+	[reqwest-retry]='https://github.com/astral-sh/reqwest-middleware;5e3eaf254b5bd481c75d2710eed055f95b756913;reqwest-middleware-%commit%/reqwest-retry'
+	[tl]='https://github.com/charliermarsh/tl;6e25b2ee2513d75385101a8ff9f591ef51f314ec;tl-%commit%'
+)
+
+inherit cargo check-reqs
+
+CRATE_PV=0.4.16
+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://dev.gentoo.org/~mgorny/dist/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 ISC MIT
+	MPL-2.0 Unicode-DFS-2016
+"
+# 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/rust-1.80
+	test? (
+		dev-lang/python:3.8
+		dev-lang/python:3.9
+		dev-lang/python:3.10
+		dev-lang/python:3.11
+		dev-lang/python:3.12
+	)
+"
+
+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
+}
+
+src_prepare() {
+	default
+
+	# remove patch.* that breaks GIT_CRATES
+	local reqmw=${GIT_CRATES[reqwest-middleware]}
+	reqmw=${reqmw#*;}
+	reqmw=${reqmw%;*}
+	sed -i -e "/^\[patch/,\$s@^\(reqwest-middleware = \).*@\1 { path = \"${WORKDIR}/reqwest-middleware-${reqmw}/reqwest-middleware\" }@" Cargo.toml || die
+
+	# enable system libraries where supported
+	export ZSTD_SYS_USE_PKG_CONFIG=1
+	sed -i -e 's:"static"::' crates/uv-extract/Cargo.toml || die
+	# 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
+}
+
+src_compile() {
+	cd crates/uv || die
+	cargo_src_compile
+}
+
+src_test() {
+	# work around https://github.com/astral-sh/uv/issues/4376
+	local -x PATH=${BROOT}/usr/lib/python-exec/python3.12:${PATH}
+	local -x COLUMNS=100
+	local -x PYTHONDONTWRITEBYTECODE=
+
+	cd crates/uv || die
+	cargo_src_test --no-fail-fast
+}
+
+src_install() {
+	cd crates/uv || die
+	cargo_src_install
+}


             reply	other threads:[~2024-09-25  4:39 UTC|newest]

Thread overview: 143+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-25  4:39 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 17:02 [gentoo-commits] repo/gentoo:master commit in: dev-python/uv/ Michał Górny
2025-03-08 13:15 Arthur Zamarin
2025-03-08 13:07 Jakov Smolić
2025-03-08 12:58 Arthur Zamarin
2025-03-08 12:10 Sam James
2025-03-08 12:10 Sam James
2025-03-07  4:40 Michał Górny
2025-03-04  6:48 Michał Górny
2025-02-23 17:27 Michał Górny
2025-02-23 16:57 Sam James
2025-02-22 14:43 Arthur Zamarin
2025-02-22  9:48 Arthur Zamarin
2025-02-22  9:48 Arthur Zamarin
2025-02-20  5:06 Michał Górny
2025-02-15  7:01 Michał Górny
2025-02-06 12:44 Michał Górny
2025-02-04  4:28 Michał Górny
2025-02-01 13:19 Michał Górny
2025-02-01 13:19 Michał Górny
2025-02-01 13:12 Arthur Zamarin
2025-02-01 12:17 Arthur Zamarin
2025-02-01 11:35 Arthur Zamarin
2025-02-01 11:35 Arthur Zamarin
2025-02-01 11:35 Arthur Zamarin
2025-01-31  5:40 Michał Górny
2025-01-29  8:48 Michał Górny
2025-01-24  7:21 Michał Górny
2025-01-23  5:39 Michał Górny
2025-01-22 11:45 Arthur Zamarin
2025-01-22  7:21 Michał Górny
2025-01-22  6:27 Sam James
2025-01-22  6:27 Sam James
2025-01-16  5:11 Michał Górny
2025-01-12  3:23 Michał Górny
2025-01-11  6:52 Michał Górny
2025-01-09  5:26 Michał Górny
2025-01-09  5:26 Michał Górny
2025-01-07  5:27 Michał Górny
2025-01-03  5:47 Michał Górny
2024-12-28  7:53 Michał Górny
2024-12-27  5:24 Michał Górny
2024-12-20  8:23 Michał Górny
2024-12-16 14:19 Michał Górny
2024-12-16 14:19 Michał Górny
2024-12-14 19:06 Arthur Zamarin
2024-12-14 12:37 Sam James
2024-12-14 10:30 Arthur Zamarin
2024-12-14  7:36 Michał Górny
2024-12-12  4:15 Michał Górny
2024-12-07  6:33 Michał Górny
2024-12-07  6:33 Michał Górny
2024-12-04  7:46 Michał Górny
2024-11-21  6:01 Michał Górny
2024-11-20  7:56 Michał Górny
2024-11-15 12:55 Michał Górny
2024-11-15  4:59 Michał Górny
2024-11-09 12:01 Michał Górny
2024-11-09 11:02 Michał Górny
2024-11-09  7:03 Michał Górny
2024-11-08  4:52 Michał Górny
2024-11-08  4:52 Michał Górny
2024-11-05  5:53 Michał Górny
2024-10-31 19:19 Michał Górny
2024-10-26  5:31 Michał Górny
2024-10-24  4:14 Michał Górny
2024-10-22  3:10 Michał Górny
2024-10-17 17:03 Michał Górny
2024-10-16  4:54 Michał Górny
2024-10-15  7:00 Michał Górny
2024-10-09  6:31 Michał Górny
2024-10-08  3:00 Michał Górny
2024-10-02 12:12 Michał Górny
2024-09-28  7:42 Michał Górny
2024-09-22  2:23 Michał Górny
2024-09-21  7:41 Michał Górny
2024-09-18 14:03 Michał Górny
2024-09-18 14:03 Michał Górny
2024-09-14  6:03 Michał Górny
2024-09-11  3:09 Michał Górny
2024-09-10  7:06 Michał Górny
2024-09-07  6:23 Michał Górny
2024-09-07  6:23 Michał Górny
2024-09-06  9:25 Michał Górny
2024-09-05  2:21 Michał Górny
2024-09-04  3:13 Michał Górny
2024-09-04  3:13 Michał Górny
2024-09-03  5:23 Michał Górny
2024-09-02  3:02 Michał Górny
2024-08-31  6:55 Michał Górny
2024-08-31  6:55 Michał Górny
2024-08-29  4:21 Michał Górny
2024-08-28  3:43 Michał Górny
2024-08-27  7:39 Michał Górny
2024-08-24  5:52 Michał Górny
2024-08-23 16:44 Michał Górny
2024-08-21  3:14 Michał Górny
2024-08-15 16:01 Michał Górny
2024-07-27  5:52 Michał Górny
2024-07-27  5:52 Michał Górny
2024-07-25  3:12 Michał Górny
2024-07-24  4:24 Michał Górny
2024-07-20  4:51 Michał Górny
2024-07-18  1:33 Michał Górny
2024-07-16  5:30 Michał Górny
2024-07-12 16:10 Michał Górny
2024-07-11  3:25 Michał Górny
2024-07-09  2:10 Michał Górny
2024-07-08  4:41 Michał Górny
2024-07-04  5:13 Michał Górny
2024-07-03  3:44 Michał Górny
2024-06-30  2:52 Michał Górny
2024-06-27  2:53 Michał Górny
2024-06-25  8:01 Michał Górny
2024-06-12  4:57 Michał Górny
2024-06-11  4:20 Michał Górny
2024-06-07  1:59 Michał Górny
2024-06-07  1:59 Michał Górny
2024-06-06  2:02 Michał Górny
2024-06-04  5:19 Michał Górny
2024-05-29  3:48 Michał Górny
2024-05-25  3:50 Michał Górny
2024-05-23  2:11 Michał Górny
2024-05-21  4:14 Michał Górny
2024-05-15  1:40 Michał Górny
2024-05-12 13:05 Michał Górny
2024-05-09  3:50 Michał Górny
2024-05-08  4:57 Michał Górny
2024-04-28  2:24 Michał Górny
2024-04-27 10:43 Michał Górny
2024-04-27  8:47 Michał Górny
2024-04-25  4:43 Michał Górny
2024-04-23  4:32 Michał Górny
2024-04-20  4:29 Michał Górny
2024-04-18  5:34 Michał Górny
2024-04-10  5:36 Michał Górny
2024-04-05  2:45 Michał Górny
2024-03-31 16:48 Jakov Smolić
2024-03-30  8:51 Arthur Zamarin
2024-03-28 17:33 Arthur Zamarin
2024-03-28 17:18 Sam James
2024-03-28 17:18 Sam James
2024-03-21 19:42 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1727239134.2cff09c50f85ff174149e26c6ec53eb471daed25.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox