Skip to content

Commit

Permalink
fix: ruff (#837)
Browse files Browse the repository at this point in the history
use pip3?

Signed-off-by: madomado <[email protected]>
Signed-off-by: Lleyton Gray <[email protected]>
  • Loading branch information
madonuko authored and lleyton committed Dec 29, 2023
1 parent cf0b7f5 commit c2e2451
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions anda/python/ruff/python3-ruff.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Summary: An extremely fast Python linter, written in Rust
License: MIT
URL: https://beta.ruff.rs/
Source0: https://github.com/astral-sh/ruff/archive/refs/tags/v%{version}.tar.gz
BuildRequires: python3-installer python3.11 python3-pip maturin cargo
BuildRequires: python3-installer python3-pip maturin cargo
Provides: python3.11dist(ruff) = %{version}

%description
Expand All @@ -21,7 +21,7 @@ integrating more functionality behind a single, common interface.
maturin build --release --strip --locked --all-features

%install
python3.11 -m installer --destdir="%{buildroot}" target/wheels/*.whl
pip3 install --root=%{buildroot} target/wheels/*.whl
rm -rf %{python3_sitelib}/ruff/__pycache__

%files
Expand All @@ -30,12 +30,14 @@ rm -rf %{python3_sitelib}/ruff/__pycache__
/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/INSTALLER
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/REQUESTED
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/direct_url.json
/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/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.opt-1.pyc
/usr/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.pyc
/usr/bin/ruff

%changelog
Expand Down

0 comments on commit c2e2451

Please sign in to comment.