public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/uv] f43: Use the provisional pyproject declarative buildsystem
@ 2026-07-22  7:28 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-22  7:28 UTC (permalink / raw)
  To: git-commits

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/

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-22  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22  7:28 [rpms/uv] f43: Use the provisional pyproject declarative buildsystem Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox