!3 Update package to version 0.3.2

From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-03-15 08:56:20 +00:00 committed by Gitee
commit eea6027b17
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 7 additions and 50 deletions

View File

@ -1,41 +0,0 @@
From ea4692d3383fe2f9a49c980009a81d3042703bfa Mon Sep 17 00:00:00 2001
From: desert-sailor <dxwangk@isoftstone.com>
Date: Wed, 5 Jul 2023 09:17:51 +0800
Subject: [PATCH] set cargo vendor cache for local build
---
.cargo/config.toml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/.cargo/config.toml b/.cargo/config.toml
index d6ef99b..52e065b 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -35,3 +35,24 @@ rustflags = [
"-Wclippy::rest_pat_in_fully_bound_structs",
"-Wunreachable_pub"
]
+
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/astral-sh/RustPython-Parser.git?rev=c174bbf1f29527edd43d432326327f16f47ab9e0"]
+git = "https://github.com/astral-sh/RustPython-Parser.git"
+rev = "c174bbf1f29527edd43d432326327f16f47ab9e0"
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/charliermarsh/LibCST?rev=80e4c1399f95e5beb532fdd1e209ad2dbb470438"]
+git = "https://github.com/charliermarsh/LibCST"
+rev = "80e4c1399f95e5beb532fdd1e209ad2dbb470438"
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/youknowone/unicode_names2.git?rev=4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde"]
+git = "https://github.com/youknowone/unicode_names2.git"
+rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde"
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
--
2.33.0

Binary file not shown.

View File

@ -2,18 +2,14 @@
%global pypi_name ruff %global pypi_name ruff
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.0.276 Version: 0.3.2
Release: 1 Release: 1
Summary: An extremely fast Python linter, written in Rust. Summary: An extremely fast Python linter, written in Rust.
License: MIT License: MIT
URL: https://github.com/astral-sh/ruff URL: https://github.com/astral-sh/ruff
Source0: https://files.pythonhosted.org/packages/f7/9b/e8c42f8e0bb21a2d82b8f414c55fbf498cdfe72922bf73c973267477fd46/ruff-0.0.276.tar.gz Source0: https://files.pythonhosted.org/packages/e1/11/134742808610b28b960687ab735c562ec4c8444d0fe09d39d01c4ffdc8ff/ruff-0.3.2.tar.gz
Source1: cargo-vendor-cache
Patch1: 0001-set-cargo-vendor-cache-for-local-build.patch
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pip BuildRequires: python3-pip
@ -24,17 +20,15 @@ BuildRequires: python3-maturin
%description %description
An extremely fast Python linter, written in Rust. An extremely fast Python linter, written in Rust.
%package -n python3-%{pypi_name} %package -n python3-%{pypi_name}
Summary: %{summary} Summary: %{summary}
Provides: python-ruff = %{version}-%{release}
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
An extremely fast Python linter, written in Rust. An extremely fast Python linter, written in Rust.
%prep %prep
%autosetup -p1 -n %{pypi_name}-%{version} %autosetup -p1 -n %{pypi_name}-%{version}
tar xzvf %{SOURCE1} -C .
%build %build
%pyproject_build %pyproject_build
@ -50,5 +44,9 @@ tar xzvf %{SOURCE1} -C .
%{python3_sitearch}/%{pypi_name}*.dist-info/ %{python3_sitearch}/%{pypi_name}*.dist-info/
%changelog %changelog
* Fri Mar 15 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.3.2-1
- Update package to version 0.3.2
- Fix trailing kwargs end of line comment after slash
* Sun Jul 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.0.276-1 * Sun Jul 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.0.276-1
- Initial package - Initial package

Binary file not shown.

BIN
ruff-0.3.2.tar.gz Normal file

Binary file not shown.