Merge branch 'main' into w/update

This commit is contained in:
windowsboy111
2023-01-24 15:24:25 +08:00
17 changed files with 127 additions and 11 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "python3-ruff.spec"
}
}
+43
View File
@@ -0,0 +1,43 @@
%define debug_package %{nil}
Name: python3-ruff
Version: 0.0.229
Release: %autorelease
Summary: An extremely fast Python linter, written in Rust
License: MIT
URL: https://github.com/charliermarsh/ruff
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: python3-installer python3.11 python3-pip maturin cargo
Provides: python3.11dist(ruff) = %{version}
%description
Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface.
%prep
%autosetup -n ruff-%{version}
%build
maturin build --release --strip --locked --all-features
%install
python3.11 -m installer --destdir="%{buildroot}" target/wheels/*.whl
rm -rf %{python3_sitelib}/ruff/__pycache__
%files
%doc README.md
%license LICENSE
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/METADATA
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/RECORD
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/WHEEL
/usr/lib64/python*/site-packages/ruff/__pycache__/__init__.cpython-*.pyc
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/license_files/LICENSE
/usr/lib64/python*/site-packages/ruff/__init__.py
/usr/lib64/python*/site-packages/ruff/__main__.py
/usr/lib64/python*/site-packages/ruff/__pycache__/__main__.cpython-*.opt-1.pyc
/usr/lib64/python*/site-packages/ruff/__pycache__/__main__.cpython-*.pyc
/usr/bin/ruff
%changelog
* Mon Jan 23 2023 windowsboy111 <wboy111@outlook.com> - 0.0.229
- Initial package.
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("charliermarsh/ruff"));