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-build/
Date: Wed, 23 Jul 2025 04:43:12 +0000 (UTC)	[thread overview]
Message-ID: <1753245783.d320d0d8c4c6290cba275f38d30ce61a65c6a54e.mgorny@gentoo> (raw)

commit:     d320d0d8c4c6290cba275f38d30ce61a65c6a54e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 23 03:40:57 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 23 04:43:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d320d0d8

dev-python/uv-build: Bump to 0.8.2

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

 dev-python/uv-build/Manifest              |  1 +
 dev-python/uv-build/uv-build-0.8.2.ebuild | 99 +++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/dev-python/uv-build/Manifest b/dev-python/uv-build/Manifest
index 9ebff1a05ce3..1bb562080751 100644
--- a/dev-python/uv-build/Manifest
+++ b/dev-python/uv-build/Manifest
@@ -1,2 +1,3 @@
 DIST uv_build-0.7.19.tar.gz 311467 BLAKE2B a7e85c3bbaee786ed9729b1331e5506eeb95d4ee875502814555956611449501f6b1c62284945640a2ce95f225a1b1c151b47d17c0d303599fe69bffc4ab8e5c SHA512 c3bc554dd9d86bfdb1e9ebf042d8c00987a790da9d386eb371dcc1bc7cd1c0000ae69a4d1e5f1759ed723d78eed73a461bae26d5047bdb0c0bb75f450fdc009a
 DIST uv_build-0.7.22.tar.gz 314318 BLAKE2B e8118eda79bd6bea375a2b19d87a0d9c2da8e1fe1fb24668ccfe79364b92a01aedcb1e73bc625c9e1d010e7ed4742c3a4add827dc497ee18312664c4343b67be SHA512 185d6b5a9e0440a1354cd9ce638522e9b2a27cc075a5022d95c63fd96b861bf50615156d7f64144b7fb657e2ddb3fe1b0fd8fd38fd6c0adabffacbdc43d6f292
+DIST uv_build-0.8.2.tar.gz 317577 BLAKE2B 0bf4d94fcb8052fa5fc71970cdda92438491bc4f3a0723b1f4565eb7f416058d253b14542adb4ea1883e56cb3c1fcf899840bb8406e133749ad894a181d5c8d7 SHA512 14272a8bf350542d5aaeaaf32542bf70b45724bda3a57eb4d701c8f3c0648244c683f3ea6d011920c5c02d1880e92787ce0758055b78eab2b3e61b20e03eea9c

diff --git a/dev-python/uv-build/uv-build-0.8.2.ebuild b/dev-python/uv-build/uv-build-0.8.2.ebuild
new file mode 100644
index 000000000000..7b6a5ee54e1b
--- /dev/null
+++ b/dev-python/uv-build/uv-build-0.8.2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 2025 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=( pypy3_11 python3_{11..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"
+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}/
+uv_build-${PV}/README.md
+uv_build-${PV}/pyproject.toml
+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
+}


             reply	other threads:[~2025-07-23  4:43 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-23  4:43 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-30  7:20 [gentoo-commits] repo/gentoo:master commit in: dev-python/uv-build/ Sam James
2025-10-30  6:46 Michał Górny
2025-10-19  2:40 Michał Górny
2025-10-19  2:40 Michał Górny
2025-10-19  2:40 Michał Górny
2025-10-15 18:11 Michał Górny
2025-10-11  2:55 Michał Górny
2025-10-10  4:48 Michał Górny
2025-10-09  7:11 Sam James
2025-10-09  7:11 Sam James
2025-10-08  6:26 Michał Górny
2025-10-05  2:47 Michał Górny
2025-09-24  3:27 Michał Górny
2025-09-23  5:55 Michał Górny
2025-09-23  2:30 Jakov Smolić
2025-09-20 12:22 Arthur Zamarin
2025-09-20 12:22 Arthur Zamarin
2025-09-20  6:02 Michał Górny
2025-09-19 17:44 Arthur Zamarin
2025-09-18  6:21 Michał Górny
2025-09-18  6:21 Michał Górny
2025-09-11  4:56 Michał Górny
2025-09-10  6:04 Michał Górny
2025-09-03 18:15 Michał Górny
2025-08-17 13:04 Sam James
2025-08-08  5:15 Michał Górny
2025-08-06  4:40 Michał Górny
2025-07-31  3:43 Michał Górny
2025-07-20 16:11 Michał Górny
2025-07-18  4:39 Michał Górny
2025-07-15  4:49 Michał Górny
2025-07-10  2:37 Michał Górny
2025-07-05 15:44 Michał Górny
2025-07-03  2:28 Michał Górny
2025-07-02  4:55 Michał Górny
2025-06-29 15:01 Michał Górny
2025-06-28  5:08 Michał Górny
2025-06-26  9:41 Michał Górny
2025-06-13  4:16 Michał Górny
2025-06-07  6:13 Michał Górny
2025-06-04  2:07 Michał Górny
2025-05-31  5:17 Michał Górny
2025-05-24  6:11 Michał Górny
2025-05-24  6:11 Michał Górny
2025-05-24  6:11 Michał Górny
2025-05-24  6:11 Michał Górny
2025-04-26  7:03 Michał Górny
2025-04-12 11:49 Michał Górny
2025-04-12 10:44 Michał Górny
2025-04-08  4:45 Michał Górny
2025-04-02  7:06 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=1753245783.d320d0d8c4c6290cba275f38d30ce61a65c6a54e.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