forked from pool/python-uv
- update to 0.9.25
* Enhancements * Add --compile-bytecode to uv python install and uv python upgrade to compile the standard library * Allow disabling exclude-newer per package * Broadcast WM_SETTINGCHANGE on uv tool update-shell * Preview features * Detect workspace from uv run target * Bug fixes * Avoid unwrapping size for file responses * Use keyring authentication when retrieving tool@latest version * Use latest Pyodide version for each python version * Improve trampoline file handle closing * Fix error message when installing musl python on armv7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uv?expand=0&rev=165
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
39
_constraints
Normal file
39
_constraints
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0"?>
|
||||
<constraints>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">21</size>
|
||||
</memory>
|
||||
</hardware>
|
||||
<overwrite>
|
||||
<conditions>
|
||||
<arch>aarch64</arch>
|
||||
</conditions>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">19</size>
|
||||
</memory>
|
||||
</hardware>
|
||||
</overwrite>
|
||||
<overwrite>
|
||||
<conditions>
|
||||
<arch>riscv64</arch>
|
||||
</conditions>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">21</size>
|
||||
</memory>
|
||||
</hardware>
|
||||
</overwrite>
|
||||
<overwrite>
|
||||
<conditions>
|
||||
<arch>s390x</arch>
|
||||
</conditions>
|
||||
<hardware>
|
||||
<memory>
|
||||
<size unit="G">28</size>
|
||||
</memory>
|
||||
</hardware>
|
||||
</overwrite>
|
||||
</constraints>
|
||||
|
||||
9
_service
Normal file
9
_service
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<services>
|
||||
<service mode="manual" name="download_files" />
|
||||
<service name="cargo_vendor" mode="manual">
|
||||
<param name="src">python-uv*.tar.gz</param>
|
||||
<param name="compression">zst</param>
|
||||
<param name="update">true</param>
|
||||
</service>
|
||||
</services>
|
||||
3
python-uv-0.8.14.tar.gz
Normal file
3
python-uv-0.8.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:210f3a3e1f6ee31dafd5a70355d257bb2cbd996975d8ff0e08461aa76f7b15e6
|
||||
size 4382774
|
||||
3
python-uv-0.8.15.tar.gz
Normal file
3
python-uv-0.8.15.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:17aebfc23d346fb42240557d80d444e99d0a07a049c8d8d4ea63b227fcab165b
|
||||
size 4424880
|
||||
3
python-uv-0.8.16.tar.gz
Normal file
3
python-uv-0.8.16.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a2074c2e146a3f3085ae52ff5c6c24545d8f95e15764569144aa13bd95d5421
|
||||
size 4441379
|
||||
3
python-uv-0.8.17.tar.gz
Normal file
3
python-uv-0.8.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6be4b51f0770208fd5f0dc3cd155e8da0dd6ff46aefc595f604d350ac41fb11f
|
||||
size 4443731
|
||||
3
python-uv-0.8.19.tar.gz
Normal file
3
python-uv-0.8.19.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ce8cd45dace8d09794db2b43eec64779456945b6459244c8cf0428666f25c564
|
||||
size 4700498
|
||||
3
python-uv-0.8.22.tar.gz
Normal file
3
python-uv-0.8.22.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:105d85f025378e0ac0284dc2e661139a3977dec3e4db1d32cec692de37c54bbd
|
||||
size 4707422
|
||||
3
python-uv-0.8.24.tar.gz
Normal file
3
python-uv-0.8.24.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:33f4ad5c8fe980e35c2eb79d9d3bfbada3d1a1ef63f0aa7c8ce0d3affce79617
|
||||
size 4711600
|
||||
3
python-uv-0.9.10.tar.gz
Normal file
3
python-uv-0.9.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:85608865b49c4dbf7205cd3dc9d91856efdb59a6703ffa1b0aab2a4d729b6735
|
||||
size 4791512
|
||||
3
python-uv-0.9.11.tar.gz
Normal file
3
python-uv-0.9.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bd3306812c8bcfd8d43a9b32f0a2af240aeab4c1e561055bede91183802a306e
|
||||
size 4813209
|
||||
3
python-uv-0.9.13.tar.gz
Normal file
3
python-uv-0.9.13.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bdba61b67941016605410563086bc9fa3ec58dbac990e2f7196caf444137392e
|
||||
size 4856421
|
||||
3
python-uv-0.9.14.tar.gz
Normal file
3
python-uv-0.9.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e56b6644f949f54010ababf9432b51314be7b0ba8ab0aadc64ca13787bf16d08
|
||||
size 4859989
|
||||
3
python-uv-0.9.15.tar.gz
Normal file
3
python-uv-0.9.15.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bd98152fbeb3cbe4a06fd0d49824d44db3023e24d17ba265df71fd52591bc09
|
||||
size 4887603
|
||||
3
python-uv-0.9.16.tar.gz
Normal file
3
python-uv-0.9.16.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4fe9fec14d34eec8cfaae53109fddf4be8b3cf8a216697cd2102b5966ef3d6fe
|
||||
size 4907399
|
||||
3
python-uv-0.9.17.tar.gz
Normal file
3
python-uv-0.9.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ea948dc7141c56c798ff603f71793351917f9c777302d428840848515999fb29
|
||||
size 4774663
|
||||
3
python-uv-0.9.18.tar.gz
Normal file
3
python-uv-0.9.18.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ef36077988a9cda5bec1beb39ade712672279d20b53cf02d0e3515ab028b74b8
|
||||
size 4786468
|
||||
3
python-uv-0.9.2.tar.gz
Normal file
3
python-uv-0.9.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c88eb1452946e68429300bbf401f4f94f69e6c21e9018805e9db2fbb3047f0b
|
||||
size 4737210
|
||||
3
python-uv-0.9.21.tar.gz
Normal file
3
python-uv-0.9.21.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d574c8717b079ca6f006506d5338fd485dc626d6bd0fe29b4283282634e83227
|
||||
size 4799580
|
||||
3
python-uv-0.9.24.tar.gz
Normal file
3
python-uv-0.9.24.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0be6aac68cca2eba39e9b903fffe30034acb19c7d601c5fbd305edc4f4fb4dbe
|
||||
size 4821236
|
||||
3
python-uv-0.9.25.tar.gz
Normal file
3
python-uv-0.9.25.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e46145b24cc10c54598b697d2c5cf3747ae39f0eb6af57dc902cac06ad18eb07
|
||||
size 4834894
|
||||
3
python-uv-0.9.5.tar.gz
Normal file
3
python-uv-0.9.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9fd1dd030b37b51dcf79b582ea77a911eeb4015a00669bd3047d3b6adea37ba8
|
||||
size 4752059
|
||||
3
python-uv-0.9.7.tar.gz
Normal file
3
python-uv-0.9.7.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:050c37c43c3c54bc322b26770550c654969f057e9d079aa658a6555fa6a3a409
|
||||
size 4756224
|
||||
3
python-uv-0.9.8.tar.gz
Normal file
3
python-uv-0.9.8.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:01ccf79a05701ba0082118e6f75e0adb4c3d725a09f3b367893b461732df4b0f
|
||||
size 4764698
|
||||
3
python-uv-0.9.9.tar.gz
Normal file
3
python-uv-0.9.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0b130e6c74d39ee6fd32cc5e673c5240a35a05bbfbdca9a6ab2690ac22d7c7ad
|
||||
size 4777959
|
||||
3024
python-uv.changes
Normal file
3024
python-uv.changes
Normal file
File diff suppressed because it is too large
Load Diff
200
python-uv.spec
Normal file
200
python-uv.spec
Normal file
@@ -0,0 +1,200 @@
|
||||
#
|
||||
# spec file for package python-uv
|
||||
#
|
||||
# Copyright (c) 2026 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
||||
%global force_gcc_version 13
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1600
|
||||
%bcond_without mold
|
||||
%else
|
||||
%bcond_with mold
|
||||
%endif
|
||||
|
||||
%if %{with mold}
|
||||
%global build_rustflags "-C" "linker=clang" "-C" "link-arg='-fuse-ld=/usr/bin/mold -Wl,-z,relro,-z,now'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none"
|
||||
%endif
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-uv
|
||||
Version: 0.9.25
|
||||
Release: 0
|
||||
Summary: A Python package installer and resolver, written in Rust
|
||||
License: Apache-2.0 OR MIT
|
||||
URL: https://github.com/astral-sh/uv
|
||||
Source0: https://github.com/astral-sh/uv/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.zst
|
||||
BuildRequires: %{python_module maturin}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module tomli}
|
||||
BuildRequires: alts
|
||||
BuildRequires: cargo >= 1.89
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} > 1600
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: c_compiler
|
||||
BuildRequires: clang
|
||||
BuildRequires: mold
|
||||
%else
|
||||
BuildRequires: gcc13
|
||||
BuildRequires: gcc13-c++
|
||||
BuildRequires: libstdc++6-devel-gcc13
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: zstd
|
||||
Obsoletes: uv < %{version}
|
||||
Provides: uv = %{version}
|
||||
Requires: alts
|
||||
Requires: python3
|
||||
|
||||
%package -n uv-fish-completion
|
||||
Summary: Fish Completion for %{name}
|
||||
Provides: python-uv-fish-completion = %{version}
|
||||
Supplements: (uv and fish)
|
||||
Requires: fish
|
||||
Requires: uv
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n uv-fish-completion
|
||||
Fish command-line completion support for %{name}.
|
||||
|
||||
%package -n uv-zsh-completion
|
||||
Summary: Zsh Completion for %{name}
|
||||
Provides: python-uv-zsh-completion = %{version}
|
||||
Supplements: (uv and zsh)
|
||||
Requires: uv
|
||||
Requires: zsh
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n uv-zsh-completion
|
||||
Zsh command-line completion support for %{name}.
|
||||
|
||||
%package -n uv-bash-completion
|
||||
Summary: Bash Completion for %{name}
|
||||
Provides: python-uv-bash-completion = %{version}
|
||||
Supplements: (uv and bash-completion)
|
||||
Requires: bash-completion
|
||||
Requires: uv
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n uv-bash-completion
|
||||
Bash command-line completion support for %{name}.
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
uv is a Python package installer and resolver, written in Rust. Designed as a
|
||||
drop-in replacement for common pip and pip-tools workflows.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a1 -n uv-%{version}
|
||||
%ifnarch x86_64
|
||||
# Reduce memory consumption for non x86 arches
|
||||
sed -i '/lto = "fat"/d' Cargo.toml
|
||||
%endif
|
||||
|
||||
%build
|
||||
export LDFLAGS="--no-keep-memory"
|
||||
export CARGO_AUDITABLE="auditable"
|
||||
export CARGO_INCREMENTAL=0
|
||||
export CARGO_FEATURE_VENDORED=1
|
||||
export RUSTFLAGS="%build_rustflags"
|
||||
export CARGO_NET_OFFLINE=true
|
||||
%ifarch %rust_tier1_arches
|
||||
export CARGO_PROFILE_RELEASE_DEBUG=full
|
||||
%else
|
||||
export CARGO_PROFILE_RELEASE_DEBUG=limited
|
||||
%endif
|
||||
export CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO=off
|
||||
export CARGO_PROFILE_RELEASE_STRIP=false
|
||||
%if 0%{?force_gcc_version}
|
||||
export CC="gcc-%{?force_gcc_version}"
|
||||
export CXX="g++-%{?force_gcc_version}"
|
||||
%endif
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
export PATH="%{buildroot}%{_bindir}:${PATH}"
|
||||
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
||||
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
|
||||
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
|
||||
export CARGO_AUDITABLE="auditable"
|
||||
export CARGO_INCREMENTAL=0
|
||||
export CARGO_FEATURE_VENDORED=1
|
||||
export RUSTFLAGS="%build_rustflags"
|
||||
export CARGO_NET_OFFLINE=true
|
||||
%ifarch %rust_tier1_arches
|
||||
export CARGO_PROFILE_RELEASE_DEBUG=full
|
||||
%else
|
||||
export CARGO_PROFILE_RELEASE_DEBUG=limited
|
||||
%endif
|
||||
%if 0%{?force_gcc_version}
|
||||
export CC="gcc-%{?force_gcc_version}"
|
||||
export CXX="g++-%{?force_gcc_version}"
|
||||
%endif
|
||||
export CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO=off
|
||||
export CARGO_PROFILE_RELEASE_STRIP=false
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%python_clone -a %{buildroot}%{_bindir}/uv
|
||||
%python_group_libalternatives uv
|
||||
%python_clone -a %{buildroot}%{_bindir}/uvx
|
||||
%python_group_libalternatives uvx
|
||||
|
||||
%python_expand uv-%{$python_bin_suffix} --generate-shell-completion bash > %{buildroot}%{_datadir}/bash-completion/completions/uv
|
||||
%python_expand uv-%{$python_bin_suffix} --generate-shell-completion fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/uv.fish
|
||||
%python_expand uv-%{$python_bin_suffix} --generate-shell-completion zsh > %{buildroot}%{_datadir}/zsh/site-functions/_uv
|
||||
%python_expand uv-%{$python_bin_suffix} tool uvx --generate-shell-completion bash > %{buildroot}%{_datadir}/bash-completion/completions/uvx
|
||||
%python_expand uv-%{$python_bin_suffix} tool uvx --generate-shell-completion fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/uvx.fish
|
||||
%python_expand uv-%{$python_bin_suffix} tool uvx --generate-shell-completion zsh > %{buildroot}%{_datadir}/zsh/site-functions/_uvx
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative uv
|
||||
%python_libalternatives_reset_alternative uvx
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE-*
|
||||
%doc README.md
|
||||
%python_alternative %{_bindir}/uv
|
||||
%python_alternative %{_bindir}/uvx
|
||||
%{python_sitearch}/uv
|
||||
%{python_sitearch}/uv-%{version}.dist-info
|
||||
|
||||
%files -n uv-bash-completion
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/bash-completion/completions/uv
|
||||
%{_datadir}/bash-completion/completions/uvx
|
||||
|
||||
%files -n uv-fish-completion
|
||||
%dir %{_datadir}/fish
|
||||
%dir %{_datadir}/fish/vendor_completions.d
|
||||
%{_datadir}/fish/vendor_completions.d/uv.fish
|
||||
%{_datadir}/fish/vendor_completions.d/uvx.fish
|
||||
|
||||
%files -n uv-zsh-completion
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/_uv
|
||||
%{_datadir}/zsh/site-functions/_uvx
|
||||
|
||||
%changelog
|
||||
3
vendor.tar.zst
Normal file
3
vendor.tar.zst
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0187bcf6536a7e85c170f5530c0f2dcf6ed90e60cfa72f7d98ae835aed74ce81
|
||||
size 69427280
|
||||
Reference in New Issue
Block a user