public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/uv] f43: Use the provisional pyproject declarative buildsystem
Date: Wed, 22 Jul 2026 07:28:24 GMT [thread overview]
Message-ID: <178470530448.1.1657145081515039019.rpms-uv-958b78c7977e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/uv
Branch : f43
Commit : 958b78c7977e19902abda38e660fc073d74a5655
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-22T07:24:40+01:00
Stats : +8/-15 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/uv/c/958b78c7977e19902abda38e660fc073d74a5655?branch=f43
Log:
Use the provisional pyproject declarative buildsystem
---
diff --git a/uv.spec b/uv.spec
index 39ea520..331ca44 100644
--- a/uv.spec
+++ b/uv.spec
@@ -156,6 +156,9 @@ Patch: 0001-Downstream-patch-always-find-the-system-wide-uv-exec.patch
# https://github.com/astral-sh/uv/pull/20174
Patch: %{url}/pull/20174.patch
+BuildSystem: pyproject
+BuildOption(install): --assert-license uv
+
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -354,9 +357,7 @@ Requires: uv = %{version}-%{release}
This package provides an importable Python module for uv.
-%prep
-%autosetup -p1
-
+%prep -a
# Collect license files of vendored dependencies in the main source archive
install -D --preserve-timestamps --mode=0644 \
--target=LICENSE.bundled/packaging \
@@ -531,7 +532,7 @@ sed --regexp-extended --in-place \
%cargo_prep
-%generate_buildrequires
+%generate_buildrequires -p
# For unclear reasons, maturin checks for all crate dependencies when it is
# invoked as part of %%pyproject_buildrequires – including those corresponding
# to optional features.
@@ -543,20 +544,14 @@ sed --regexp-extended --in-place \
# Since maturin always checks for dev-dependencies, we need -t so that they are
# generated even when the “check” bcond is disabled.
%cargo_generate_buildrequires -a -t
-%pyproject_buildrequires
-
-%build
-%pyproject_wheel
+%build -a
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
-%install
-%pyproject_install
-%pyproject_save_files --assert-license uv
-
+%install -a
if [ '%{python3_sitearch}' != '%{python3_sitelib}' ]
then
# Maturin is really designed to build compiled Python extensions, but (when
@@ -587,7 +582,7 @@ install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_sysconfdir}/uv' '%{SOURCE1}'
-%check
+%check -a
%if %{with check}
# These tests rely on debug assertions, and fail when tests are compiled in
# release mode:
@@ -683,8 +678,6 @@ skip="${skip-} --skip user_agent_version::test_user_agent_has_version"
%cargo_test -- -- --exact ${skip-}
%endif
-%pyproject_check_import
-
%files
%license LICENSE-APACHE LICENSE-MIT LICENSE.dependencies LICENSE.bundled/
reply other threads:[~2026-07-22 7:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178470530448.1.1657145081515039019.rpms-uv-958b78c7977e@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.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