Update package to version 0.7.0

(cherry picked from commit a7de6d440d04118cb6bbf86fac0f88ff8d4e1cb1)
This commit is contained in:
desert-sailor 2024-10-24 11:22:33 +08:00 committed by openeuler-sync-bot
parent 6e80702e0b
commit 35cd8ff6be
5 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,34 @@
From c7b9fffc06b204d983138d4efda3741980d74145 Mon Sep 17 00:00:00 2001
From: desert-sailor <dongxing.wang_a@thundersoft.com>
Date: Thu, 24 Oct 2024 11:14:16 +0800
Subject: [PATCH] set cargo vendor cache for local build
---
.cargo/config.toml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 .cargo/config.toml
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..8d5f9f2
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,15 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/astral-sh/lsp-types.git?rev=3512a9f"]
+git = "https://github.com/astral-sh/lsp-types.git"
+rev = "3512a9f"
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/salsa-rs/salsa.git?rev=b14be5c0392f4c55eca60b92e457a35549372382"]
+git = "https://github.com/salsa-rs/salsa.git"
+rev = "b14be5c0392f4c55eca60b92e457a35549372382"
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
--
2.43.0

BIN
cargo-vendor-cache Normal file

Binary file not shown.

View File

@ -2,12 +2,14 @@
%global pypi_name ruff %global pypi_name ruff
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.3.4 Version: 0.7.0
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/e1/11/134742808610b28b960687ab735c562ec4c8444d0fe09d39d01c4ffdc8ff/ruff-0.3.4.tar.gz Source0: https://files.pythonhosted.org/packages/2c/c7/f3367d1da5d568192968c5c9e7f3d51fb317b9ac04828493b23d8fce8ce6/ruff-0.7.0.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
@ -29,6 +31,7 @@ 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
@ -44,6 +47,19 @@ An extremely fast Python linter, written in Rust.
%{python3_sitearch}/%{pypi_name}*.dist-info/ %{python3_sitearch}/%{pypi_name}*.dist-info/
%changelog %changelog
* Thu Oct 24 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.7.0-1
- Update package to version 0.7.0
Add support for extensionless Python files for server
Fix configuration inheritance for configurations specified in the LSP settings
Fix placement of inline parameter comments
Add a subcommand to generate dependency graphs
Add Python version support to ruff analyze CLI
Add exclude support to ruff analyze
Fix parentheses around return type annotations
Fix codeblock dynamic line length calculation for indented docstring examples
Refurb implement hardcoded-string-charset
Refurb Count codepoints not bytes for slice-to-remove-prefix-or-suffix
* Wed Mar 27 2024 GuoCe <guoce@kylinos.cn> - 0.3.4-1 * Wed Mar 27 2024 GuoCe <guoce@kylinos.cn> - 0.3.4-1
- Update package to version 0.3.4 - Update package to version 0.3.4
- Add yaml file - Add yaml file

Binary file not shown.

BIN
ruff-0.7.0.tar.gz Normal file

Binary file not shown.