- Update to version 0.4.27:
* Support for PEP 735 * Add support for --dry-run mode in uv lock * Don't allow non-string email in authors * Enforce lockfile schema versions * Always attach URL to network errors * Fix dangling non-platform dependencies in uv tree * Prefer lto over debug free-threaded managed Python builds * Add tool.uv.sources to the "Settings" reference * Add reference to uv build and uv publish in the landing pages * Avoid duplicate [tool.uv] header in TOML examples * Document .netrc environment variable and path * Fix .netrc typo in authentication docs * Fix heading level of "Script support" on docs landing page * Move the installation configuration docs to a separate page * Update docs for --publish-url to avoid duplication. - Changes since 0.4.23 to 0.4.26: * Allow static dependency metadata entries for direct URL requirements * Use reinstall report formatting for uv python install --reinstall * Add support for system-level uv.toml configuration * Apply requires-python narrowing with upper bounds * Avoid rewriting [[tool.uv.index]] entries when credentials are provided * Fix uv add comment handling for empty arrays * Replace dashes with underscores in index credential variables * Respect --allow-insecure-host in uv publish * Allow arbitrary --package includes in uv tree * Remove existing Python install after successful download in uv python install * Add docs example for URLs with [tool.uv.dependency-metadata] * Add help page for build failures * Fix cache-keys typo in tags = true OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uv?expand=0&rev=17
This commit is contained in:
commit
c85b2df855
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
|
29
_constraints
Normal file
29
_constraints
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<memory>
|
||||||
|
<size unit="G">16</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>
|
||||||
|
</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
|
1196
python-uv.changes
Normal file
1196
python-uv.changes
Normal file
File diff suppressed because it is too large
Load Diff
195
python-uv.spec
Normal file
195
python-uv.spec
Normal file
@ -0,0 +1,195 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-uv
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 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.4.27
|
||||||
|
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.80
|
||||||
|
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: cargo >= 1.80
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: zstd
|
||||||
|
Obsoletes: uv < %{version}
|
||||||
|
Provides: uv = %{version}
|
||||||
|
Requires: alts
|
||||||
|
Requires: python3
|
||||||
|
|
||||||
|
%package fish-completion
|
||||||
|
Summary: Fish Completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
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}
|
||||||
|
Group: System/Shells
|
||||||
|
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}
|
||||||
|
Group: System/Shells
|
||||||
|
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}
|
||||||
|
|
||||||
|
%build
|
||||||
|
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:ea1b0356540b4884a8a3fbc59e3c8c8a97631f4920300496d78638fa5fa9129d
|
||||||
|
size 55335314
|
Loading…
Reference in New Issue
Block a user