Compare commits
22 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d5b6df28e | ||
|
|
6fa06b6a2b | ||
|
|
d81d924b8e | ||
|
|
3390ffc93b | ||
|
|
ee01661ac5 | ||
|
|
20d07c3400 | ||
|
|
456632b9fe | ||
|
|
1727780afd | ||
|
|
535c235020 | ||
|
|
e04993a93c | ||
|
|
369aa45b0b | ||
|
|
4c941abc60 | ||
|
|
8896e99313 | ||
|
|
6185988208 | ||
|
|
90745185da | ||
|
|
8b86f3ea0d | ||
|
|
fb4d6e09d1 | ||
|
|
703cfa73ac | ||
|
|
8833957069 | ||
|
|
5b333d4a4e | ||
|
|
0e140d9392 | ||
|
|
b0a54b3e91 |
1 changed files with 16 additions and 9 deletions
25
uv.spec
25
uv.spec
|
|
@ -159,9 +159,6 @@ 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}
|
||||
|
||||
|
|
@ -192,7 +189,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
|
||||
BuildRequires: cargo-rpm-macros >= 24
|
||||
BuildRequires: rust2rpm-helper
|
||||
BuildRequires: tomcli
|
||||
%if %{with check} && %{with other_python_versions}
|
||||
|
|
@ -373,7 +370,9 @@ Requires: uv = %{version}-%{release}
|
|||
This package provides an importable Python module for uv.
|
||||
|
||||
|
||||
%prep -a
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
# Collect license files of vendored dependencies
|
||||
install -D --preserve-timestamps --mode=0644 \
|
||||
--target=LICENSE.bundled/packaging \
|
||||
|
|
@ -551,7 +550,7 @@ tomcli set Cargo.toml str workspace.dependencies.blake2.version 0.10.6
|
|||
%cargo_prep
|
||||
|
||||
|
||||
%generate_buildrequires -p
|
||||
%generate_buildrequires
|
||||
# For unclear reasons, maturin checks for all crate dependencies when it is
|
||||
# invoked as part of %%pyproject_buildrequires – including those corresponding
|
||||
# to optional features.
|
||||
|
|
@ -563,14 +562,20 @@ 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 -a
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%{cargo_license_summary}
|
||||
%{cargo_license} > LICENSE.dependencies
|
||||
|
||||
|
||||
%install -a
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l uv
|
||||
|
||||
if [ '%{python3_sitearch}' != '%{python3_sitelib}' ]
|
||||
then
|
||||
# Maturin is really designed to build compiled Python extensions, but (when
|
||||
|
|
@ -601,7 +606,7 @@ install -D --preserve-timestamps --mode=0644 \
|
|||
--target='%{buildroot}%{_sysconfdir}/uv' '%{SOURCE1}'
|
||||
|
||||
|
||||
%check -a
|
||||
%check
|
||||
%if %{with check}
|
||||
# These tests rely on debug assertions, and fail when tests are compiled in
|
||||
# release mode:
|
||||
|
|
@ -723,6 +728,8 @@ 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