Compare commits
25 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
247904f9a8 | ||
|
|
ca46850e72 | ||
|
|
cb3df8bce7 | ||
|
|
3e1297d847 | ||
|
|
cb8c375907 | ||
|
|
049d34581d | ||
|
|
62bd08e26e | ||
|
|
7f903f9dce | ||
|
|
3cbb6c04d8 | ||
|
|
3683e38d1d | ||
|
|
e0e68f5798 | ||
|
|
4bd686691f | ||
|
|
97c5cc15ee | ||
|
|
958b78c797 | ||
|
|
1e53b4b648 | ||
|
|
6e7b6c01ad | ||
|
|
6110b4aebe | ||
|
|
b1708e040e | ||
|
|
9df354a593 | ||
|
|
f3fac865ad | ||
|
|
d0b910216e | ||
|
|
fca0e798ad | ||
|
|
e0cb68f3e2 | ||
|
|
c05ebc571f | ||
|
|
7e46b8e3f9 |
1 changed files with 9 additions and 16 deletions
25
uv.spec
25
uv.spec
|
|
@ -159,6 +159,9 @@ Patch: uv-0.12.1-revert-blake2-beta.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}
|
||||
|
||||
|
|
@ -189,7 +192,7 @@ ExcludeArch: %{ix86}
|
|||
# “too many open files.” Try to keep the files/core ratio from getting too low.
|
||||
%global _smp_ncpus_max 48
|
||||
|
||||
BuildRequires: cargo-rpm-macros >= 24
|
||||
BuildRequires: cargo-rpm-macros
|
||||
BuildRequires: rust2rpm-helper
|
||||
BuildRequires: tomcli
|
||||
%if %{with check} && %{with other_python_versions}
|
||||
|
|
@ -370,9 +373,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
|
||||
install -D --preserve-timestamps --mode=0644 \
|
||||
--target=LICENSE.bundled/packaging \
|
||||
|
|
@ -550,7 +551,7 @@ tomcli set Cargo.toml str workspace.dependencies.blake2.version 0.10.6
|
|||
%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.
|
||||
|
|
@ -562,20 +563,14 @@ tomcli set Cargo.toml str workspace.dependencies.blake2.version 0.10.6
|
|||
# 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 -l uv
|
||||
|
||||
%install -a
|
||||
if [ '%{python3_sitearch}' != '%{python3_sitelib}' ]
|
||||
then
|
||||
# Maturin is really designed to build compiled Python extensions, but (when
|
||||
|
|
@ -606,7 +601,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:
|
||||
|
|
@ -728,8 +723,6 @@ skip="${skip-} --skip retry::tests::retried_status_codes"
|
|||
%cargo_test -- -- --exact ${skip-}
|
||||
%endif
|
||||
|
||||
%pyproject_check_import
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE-APACHE LICENSE-MIT LICENSE.dependencies LICENSE.bundled/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue