diff --git a/0001-set-cargo-vendor-cache-for-local-build.patch b/0001-set-cargo-vendor-cache-for-local-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..9d910847f1b3d81e630b4bc47d678fb981bcaab0 --- /dev/null +++ b/0001-set-cargo-vendor-cache-for-local-build.patch @@ -0,0 +1,34 @@ +From c7b9fffc06b204d983138d4efda3741980d74145 Mon Sep 17 00:00:00 2001 +From: desert-sailor +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 + diff --git a/cargo-vendor-cache b/cargo-vendor-cache new file mode 100644 index 0000000000000000000000000000000000000000..984975f10bbd95716f8fbaf3b0ff4bef9b7d2e75 Binary files /dev/null and b/cargo-vendor-cache differ diff --git a/python-ruff.spec b/python-ruff.spec index 63cec2b5c45078c4fe9631c123266d1eaf383365..b75b57bd863ced605b7b81179a9ac5eefe0660ef 100644 --- a/python-ruff.spec +++ b/python-ruff.spec @@ -2,12 +2,14 @@ %global pypi_name ruff Name: python-%{pypi_name} -Version: 0.3.4 +Version: 0.7.0 Release: 1 Summary: An extremely fast Python linter, written in Rust. License: MIT 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: python3-devel @@ -29,6 +31,7 @@ An extremely fast Python linter, written in Rust. %prep %autosetup -p1 -n %{pypi_name}-%{version} +tar xzvf %{SOURCE1} -C . %build %pyproject_build @@ -44,6 +47,19 @@ An extremely fast Python linter, written in Rust. %{python3_sitearch}/%{pypi_name}*.dist-info/ %changelog +* Thu Oct 24 2024 Dongxing Wang - 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 - 0.3.4-1 - Update package to version 0.3.4 - Add yaml file diff --git a/ruff-0.3.4.tar.gz b/ruff-0.3.4.tar.gz deleted file mode 100644 index 91f50b22c9d76255fcaa9816a761f47fa6b0ad97..0000000000000000000000000000000000000000 Binary files a/ruff-0.3.4.tar.gz and /dev/null differ diff --git a/ruff-0.7.0.tar.gz b/ruff-0.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6ff88e210a64153dd24d925d9bdc08e2b989c1c5 Binary files /dev/null and b/ruff-0.7.0.tar.gz differ