forked from pool/python-uv
- update to 0.8.0
* Breaking changes * Install Python executables into a directory on the PATH * Prompt before removing an existing directory in uv venv * Validate that discovered interpreters meet the Python preferences * Install dependencies without build systems when they are path sources * Install dependencies without build systems when they are workspace members * Bump --python-platform linux to manylinux_2_28 * Remove uv version fallback * Require --global for removal of the global Python pin * Support conflicting editable settings across groups * Make uv_build the default build backend in uv init * Set default UV_TOOL_BIN_DIR on Docker images * Update --check to return an exit code of 1 * Use an ephemeral environment for uv run --with invocations * Restructure the uv venv command output and exit codes * Default to --workspace when adding subdirectories * Add missing validations for disallowed uv.toml fields * Configuration * Add support for toggling Python bin and registry install options via env vars * Add UV_COMPILE_BYTECODE_TIMEOUT environment variable * Allow users to override index cache-control headers * Add UV_LIBC to override libc selection in multi-libc environment * Bug fixes * Fix --all-arches when paired with --only-downloads * Skip Windows Python interpreters that return a broken MSIX package code * Warn on invalid uv.toml when provided via direct path * Improve async signal safety in Windows exception handler * Documentation * Mention the revision in the lockfile versioning doc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uv?expand=0&rev=88
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.4.22.tar.gz
Normal file
3
python-uv-0.4.22.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c98377e8619ed6ba33c147b88e785efd67096124cac9d35ce7ef8fd9a14baa1e
|
||||
size 2721833
|
3
python-uv-0.4.27.tar.gz
Normal file
3
python-uv-0.4.27.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:48e5eae67204b280a0301fc76d02886a77d09e99e57c383a652170463f977629
|
||||
size 2796691
|
3
python-uv-0.5.0.tar.gz
Normal file
3
python-uv-0.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:28d44c0a8a8ad96e7d9c6ac02f56fbe5c0deffa0c12c877d4abe6841257ebb61
|
||||
size 2836911
|
3
python-uv-0.5.10.tar.gz
Normal file
3
python-uv-0.5.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:493bd38750b397ed5c361fdb28a007186d13e5fa7d46bc997b3a1eff12a839f5
|
||||
size 3139617
|
3
python-uv-0.5.2.tar.gz
Normal file
3
python-uv-0.5.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:14b4ed7c955acdf4ae2b47537addbefb8a486e47cada903970f10e28f40b518c
|
||||
size 2886231
|
3
python-uv-0.5.30.tar.gz
Normal file
3
python-uv-0.5.30.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8a8192a7a791fcecfd615a7acbf7f18440bef754f444e5088e356c11a0cdb3f0
|
||||
size 3510601
|
3
python-uv-0.5.6.tar.gz
Normal file
3
python-uv-0.5.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7be2246b0f8f54f3746aff1da35bb3bb995974714d7bc625300a0f91d6f5dae4
|
||||
size 2952255
|
3
python-uv-0.6.16.tar.gz
Normal file
3
python-uv-0.6.16.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:506c5970777ace5840c2d3a90b507265aab24749469ba03f88526c4b6f9bfa70
|
||||
size 3993404
|
3
python-uv-0.6.9.tar.gz
Normal file
3
python-uv-0.6.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a8c8dd9663f7c118195203b2b6d8d3b5cd62c277289e60cf3e77790d53245a3c
|
||||
size 3805843
|
3
python-uv-0.7.0.tar.gz
Normal file
3
python-uv-0.7.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2be8f58299b01729b59d04a216783c6171e7ea6e0eca10e05ff6048f03018277
|
||||
size 4021195
|
BIN
python-uv-0.7.13.tar.gz
(Stored with Git LFS)
Normal file
BIN
python-uv-0.7.13.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
python-uv-0.7.15.tar.gz
Normal file
3
python-uv-0.7.15.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:36137b3621e62d9101127f519d4e478bf820ebcfa4115f995d32ed707746ef56
|
||||
size 4098215
|
3
python-uv-0.7.17.tar.gz
Normal file
3
python-uv-0.7.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:15f0ba0c454e150214e5ab83e5dd3c69c9887cafdb688cc48ad7593e08501ce7
|
||||
size 4105381
|
3
python-uv-0.7.19.tar.gz
Normal file
3
python-uv-0.7.19.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51a069ebb3236f39dfa9c3e3e56cf3db2b267cca3153fc32eeab05e1b2ffa1b9
|
||||
size 4120134
|
3
python-uv-0.7.2.tar.gz
Normal file
3
python-uv-0.7.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bf42c698cff01e7f383351efce7f014af788810fa77d41a8f4a853e073582d1e
|
||||
size 4017722
|
3
python-uv-0.7.20.tar.gz
Normal file
3
python-uv-0.7.20.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c07afb70c926715b4280815393770350b2cfc63c899bc171f508c74de7fc3f5e
|
||||
size 4127300
|
3
python-uv-0.7.21.tar.gz
Normal file
3
python-uv-0.7.21.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:089f2f5e388da95c4e5ca8b4dc2c9d1421f3bf9dd5d05546be8e27c943428101
|
||||
size 4149924
|
3
python-uv-0.7.3.tar.gz
Normal file
3
python-uv-0.7.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ad6dbd387c8627571580c81e9e127555d4b91d2bec4578876c5f2505a4cda29c
|
||||
size 3972686
|
3
python-uv-0.7.5.tar.gz
Normal file
3
python-uv-0.7.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:31a5e218d8655579f402e9abc02b4eabe5a0f69926fef2e1026841dce7ab259e
|
||||
size 3980955
|
3
python-uv-0.7.6.tar.gz
Normal file
3
python-uv-0.7.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2262a7d2e12ea80e4eedf3d4048d0b474533b579c020bdc3b28ab211a9b5ae67
|
||||
size 3984119
|
3
python-uv-0.7.8.tar.gz
Normal file
3
python-uv-0.7.8.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4f12e8b5f9706e28d689d3df47a14cda07fb638dbd83889233fdbf2e1e01d9db
|
||||
size 3993156
|
3
python-uv-0.7.9.tar.gz
Normal file
3
python-uv-0.7.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:04c58ee15192a3a8fd67b7888d17f798d4802cb8fbb7a6d264b7499f93230ba3
|
||||
size 4015887
|
3
python-uv-0.8.0.tar.gz
Normal file
3
python-uv-0.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:40b724d7d63a9c67e651980ebce694efc73a915c0790c2c5e8baa7fd0332f2a1
|
||||
size 4170876
|
2186
python-uv.changes
Normal file
2186
python-uv.changes
Normal file
File diff suppressed because it is too large
Load Diff
196
python-uv.spec
Normal file
196
python-uv.spec
Normal file
@@ -0,0 +1,196 @@
|
||||
#
|
||||
# spec file for package python-uv
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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.8.0
|
||||
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.86
|
||||
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 fish-completion
|
||||
Summary: Fish Completion for %{name}
|
||||
Supplements: (%{name} and fish)
|
||||
Requires: %{name}
|
||||
Requires: fish
|
||||
BuildArch: noarch
|
||||
|
||||
%description fish-completion
|
||||
Fish command-line completion support for %{name}.
|
||||
|
||||
%package zsh-completion
|
||||
Summary: Zsh Completion for %{name}
|
||||
Supplements: (%{name} and zsh)
|
||||
Requires: %{name}
|
||||
Requires: zsh
|
||||
BuildArch: noarch
|
||||
|
||||
%description zsh-completion
|
||||
Zsh command-line completion support for %{name}.
|
||||
|
||||
%package bash-completion
|
||||
Summary: Bash Completion for %{name}
|
||||
Supplements: (%{name} and bash-completion)
|
||||
Requires: %{name}
|
||||
Requires: bash-completion
|
||||
BuildArch: noarch
|
||||
|
||||
%description 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_bin_suffix}
|
||||
%python_expand uv-%{$python_bin_suffix} --generate-shell-completion fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/uv-%{$python_bin_suffix}.fish
|
||||
%python_expand uv-%{$python_bin_suffix} --generate-shell-completion zsh > %{buildroot}%{_datadir}/zsh/site-functions/_uv-%{$python_bin_suffix}
|
||||
%python_expand uv-%{$python_bin_suffix} tool uvx --generate-shell-completion bash > %{buildroot}%{_datadir}/bash-completion/completions/uvx-%{$python_bin_suffix}
|
||||
%python_expand uv-%{$python_bin_suffix} tool uvx --generate-shell-completion fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/uvx-%{$python_bin_suffix}.fish
|
||||
%python_expand uv-%{$python_bin_suffix} tool uvx --generate-shell-completion zsh > %{buildroot}%{_datadir}/zsh/site-functions/_uvx-%{$python_bin_suffix}
|
||||
|
||||
%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 %{python_files bash-completion}
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/bash-completion/completions/uv-%{python_bin_suffix}
|
||||
%{_datadir}/bash-completion/completions/uvx-%{python_bin_suffix}
|
||||
|
||||
%files %{python_files fish-completion}
|
||||
%dir %{_datadir}/fish
|
||||
%dir %{_datadir}/fish/vendor_completions.d
|
||||
%{_datadir}/fish/vendor_completions.d/uv-%{python_bin_suffix}.fish
|
||||
%{_datadir}/fish/vendor_completions.d/uvx-%{python_bin_suffix}.fish
|
||||
|
||||
%files %{python_files zsh-completion}
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/_uv-%{python_bin_suffix}
|
||||
%{_datadir}/zsh/site-functions/_uvx-%{python_bin_suffix}
|
||||
|
||||
%changelog
|
3
uv-0.4.9.tar.gz
Normal file
3
uv-0.4.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:34bce9f4892130b01a7605d27bbeb71395e9b031d793123c250b79187ee307ca
|
||||
size 1885994
|
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:fb6361513245369559abd414e8b83434244532ebe209c84896312f58fe76cbdc
|
||||
size 58809202
|
Reference in New Issue
Block a user