I want to add rye to devel:languages:python.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rye?expand=0&rev=1
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
|
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">rye*.tar.gz</param>
|
||||
<param name="compression">zst</param>
|
||||
<param name="update">true</param>
|
||||
</service>
|
||||
</services>
|
3
licenses.tar.gz
Normal file
3
licenses.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dcf8781b52ec224aaf67e715ada5a2a002dfaaa8a702a98b4d0945da20081c40
|
||||
size 42453857
|
3
rye-0.38.0.tar.gz
Normal file
3
rye-0.38.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:16cc21660dccc9a66ed5086eb96cd1d571e1af8145982cf6e56fe918e3ca062c
|
||||
size 1474990
|
4
rye.changes
Normal file
4
rye.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 4 14:07:43 UTC 2024 - Soc Virnyl Estela <obs@uncomfyhalomacro.pl>
|
||||
|
||||
- Initial spec for rye
|
122
rye.spec
Normal file
122
rye.spec
Normal file
@@ -0,0 +1,122 @@
|
||||
#
|
||||
# spec file for package rye
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: rye
|
||||
Version: 0.38.0
|
||||
Release: 0
|
||||
Summary: Hassle-free Python project manager in Rust
|
||||
License: MIT
|
||||
URL: https://github.com/astral-sh/rye
|
||||
Source0: https://github.com/astral-sh/rye/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.zst
|
||||
Source2: https://github.com/spdx/license-list-data/archive/refs/tags/v3.24.0.tar.gz#/licenses.tar.gz
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cmake
|
||||
BuildRequires: rust >= 1.77
|
||||
BuildRequires: zstd
|
||||
Requires: python3
|
||||
Recommends: uv
|
||||
|
||||
%description
|
||||
Rye is a comprehensive project and package management solution for Python. Born
|
||||
from its creator's desire to establish a one-stop-shop for all Python users,
|
||||
Rye provides a unified experience to install and manage Python installations,
|
||||
pyproject.toml based projects, dependencies and virtualenvs seamlessly. It's
|
||||
designed to accommodate complex projects, monorepos and to facilitate global
|
||||
tool installations.
|
||||
|
||||
%package fish-completion
|
||||
Summary: Fish Completion for %{name}
|
||||
Group: System/Shells
|
||||
Supplements: (%{name} and fish)
|
||||
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: 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: bash-completion
|
||||
BuildArch: noarch
|
||||
|
||||
%description bash-completion
|
||||
Bash command-line completion support for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -a1
|
||||
# license crate feature 'offline' is bogus and not implemented
|
||||
pushd vendor/license
|
||||
mkdir -p license-list-data
|
||||
tar xf %{SOURCE2} -C license-list-data --strip-components=1
|
||||
popd
|
||||
|
||||
%build
|
||||
pushd rye
|
||||
%{cargo_build}
|
||||
popd
|
||||
|
||||
%install
|
||||
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||
install -m 0755 -t %{buildroot}%{_bindir}/ %{_builddir}/%{name}-%{version}/target/release/rye
|
||||
|
||||
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
|
||||
rye self completion -s bash > %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||
rye self completion -s fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||
rye self completion -s zsh > %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
||||
|
||||
# Tests require network
|
||||
#%%check
|
||||
#%%cargo_test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/rye
|
||||
|
||||
%files bash-completion
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/bash-completion/completions/%{name}
|
||||
|
||||
%files fish-completion
|
||||
%dir %{_datadir}/fish
|
||||
%dir %{_datadir}/fish/vendor_completions.d
|
||||
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||
|
||||
%files zsh-completion
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/_%{name}
|
||||
|
||||
%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:16b589491c57f320e088a86ac8059a03a8f4cc1a03431dd60300e1151d185813
|
||||
size 41979929
|
Reference in New Issue
Block a user