dev-util/ruff: add 0.15.4

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2026-02-26 17:02:02 -08:00
parent e7dcf3b241
commit 0728540406
2 changed files with 121 additions and 0 deletions
+2
View File
@@ -13,6 +13,8 @@ DIST ruff-0.15.0-crates.tar.xz 27175004 BLAKE2B 6d6b0b701576b7f26a306211695b4090
DIST ruff-0.15.0.gh.tar.gz 10873810 BLAKE2B 721a3895412faf0b456fef0c361ab576800b3b51d2ee03500b62af769680bb9942f5ee8be7aac4a24df409de7b20c9879b4b1e482727edf6d247921c692e8dc5 SHA512 b9584eee521718d1d5d27215c1981c38c3ab947bdfb4554ee323c220da6fc69dcb33b2cc7a23d8d730b24bf61a02c986499e037950faa3d500e2172d67e7d926
DIST ruff-0.15.1-crates.tar.xz 27160512 BLAKE2B c59aca33f25cbee3970e1f05a0f4d6fd4411e8b9968eb682f29e2775ae17db10c8acd3e1de69a3aaff162a368e2af1d18c007e0d53cedcf65d2fc78096c6d8b2 SHA512 61e24937d6efce02013b2484c21c3eebe9f74d1bda740dfa9771e93846a8dd1d18039b6d9b905441af35062f5550a3d62342b5d4c63b479152d3de92abea6048
DIST ruff-0.15.1.gh.tar.gz 10974921 BLAKE2B fbae4979a96a443dfb9b9492c4346d89ad6a8412a23934acf068b84972256de7d3a4e857e99064d29157ee2eaae15ac1d4ceec97861be66b59034a79f0adc221 SHA512 e8fa0bb254714a5d361a1d49aadd0633a6989d91c098c4dc2689991634960aff369f3e987546f1d9018de2920a4af40233f52fb8091f992a90d34a99be8ad855
DIST ruff-0.15.4-crates.tar.xz 27914628 BLAKE2B 2dfdbd4461f7bd1e1536d28e6ef24e3cbb0c02b9d64e77514eb0825528f26e66c861ebe9a4f4d673c93b9979c919cb5629601be794f7008c5a22a30abe8a21ef SHA512 42cb1153400321542e29f3f082e23877ab41672718d9005753910e26b6bb38f54ee483c9b46b0072294bddbdf43e67fd67f0bedbd68e759e00ab2a8c22518a17
DIST ruff-0.15.4.gh.tar.gz 11086140 BLAKE2B ee15559befc4df91ee556c5e6fd4e9af6eed398e0d2f0ca663aedfe5ff476d6fde3536cf93f7fa822a89ac8cf51f1d12d3f7f0e4c6f0aca20af0e9c7128b091f SHA512 7a05f6dae5872fa6446adba2fe6a1cb207a7107f56d479567afb7abca164def43f9bc5c9ea2469204edebef050f3a5b2cf9a7e6b9b95cccc2227293117b35df4
DIST salsa-309c249088fdeef0129606fa34ec2eefc74736ff.gh.tar.gz 733433 BLAKE2B 7e624438a1bc329e7874fbd2b2efb159933b4297664567e6e0c367d4fbe9ab98de9ca1ffc09a2e2b3e15efd7b6a855298e8e861560157e6eb50ff0251260ad39 SHA512 5e4ee81b8bdb21c98bac9fd8f6e51946a393d5a8e526c8f2f1153234450f25b37618fba26aa1f102439633cc271d8b46769ab86a02d9a51ee1071cc5eed6e876
DIST salsa-3713cd7eb30821c0c086591832dd6f59f2af7fe7.gh.tar.gz 717350 BLAKE2B 3db412c1ce2953fdde9f182e9611d8dfe09b197be36c69ebf77344fbdf1efb542b94ca61c5cbcc39fdb3df8ec1e374d19e1e1116174f63f907e28b51f14f19cf SHA512 49bcdede05f7f681d075739b685e1807e978d8160374b2d6176246b90255d72c202205e7591af76ce362706793ca8c15f1a3854849c63b466313eaf363ad8c61
DIST salsa-53421c2fff87426fa0bb51cab06632b87646de13.gh.tar.gz 742301 BLAKE2B 90a53f87b823c360fce95c32fa573650892e40d4f7b260b52efa9bd96da903342ba5cd8adfffed34f168e546a9a1c140ecf22c80731d458cd8e06c84bd6c4d24 SHA512 4471203f3a2a6db0766ce2d426583f9c55277987200bf863c31b1ef09f9ede77091d47ad3a971ae2653d34a02cb2f79b5fb0e6da7a0860dca6636ebba1651ae6
+119
View File
@@ -0,0 +1,119 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.15.1
EAPI=8
CRATES="
"
declare -A GIT_CRATES=(
[lsp-types]='https://github.com/astral-sh/lsp-types;3512a9f33eadc5402cfab1b8f7340824c8ca1439;lsp-types-%commit%'
[salsa-macro-rules]='https://github.com/salsa-rs/salsa;53421c2fff87426fa0bb51cab06632b87646de13;salsa-%commit%/components/salsa-macro-rules'
[salsa-macros]='https://github.com/salsa-rs/salsa;53421c2fff87426fa0bb51cab06632b87646de13;salsa-%commit%/components/salsa-macros'
[salsa]='https://github.com/salsa-rs/salsa;53421c2fff87426fa0bb51cab06632b87646de13;salsa-%commit%'
)
RUST_MIN_VER="1.91.0"
inherit shell-completion cargo
DESCRIPTION="An extremely fast Python linter, written in Rust"
HOMEPAGE="
https://docs.astral.sh/ruff/
https://github.com/astral-sh/ruff
"
SRC_URI="
${CARGO_CRATE_URIS}
https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz
"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0
Unicode-DFS-2016 WTFPL-2 ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~riscv"
RDEPEND="
!elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) )
app-arch/zstd
"
DEPEND="
${RDEPEND}
"
QA_FLAGS_IGNORED="usr/bin/.*"
DOCS=(
BREAKING_CHANGES.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
README.md
assets
docs
)
src_prepare() {
default
# Experimental cruft cleaner. These crates are not used by the ruff binary,
# and when they are removed in the git repo, the lockfile is regenerated
# and gets quite a bit smaller. Hence pycargoebuild also produces much
# smaller CRATES= variables. Less for the user to download, fewer distfiles
# to mirror.
pushd crates >/dev/null || die
rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die
popd > /dev/null || die
# tests that hang in the ebuild environment
rm crates/ruff_annotate_snippets/tests/examples.rs || die
}
src_configure() {
export RUSTFLAGS="${RUSTFLAGS}"
cargo_src_configure
}
src_compile() {
local -x ZSTD_SYS_USE_PKG_CONFIG=1
# Gentoo bug #927338
if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then
local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1
local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so
fi
cargo_src_compile --bin ruff
local releasedir
releasedir=$(cargo_target_dir)
${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die
${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die
${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die
}
src_test() {
local -x ZSTD_SYS_USE_PKG_CONFIG=1
# Gentoo bug #927338
if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then
local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1
local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so
fi
cargo_src_test --target-dir "${PWD}"/tested-target/
}
src_install() {
local releasedir=$(cargo_target_dir)
dobin ${releasedir}/ruff
newbashcomp ruff-completion.bash ruff
newfishcomp ruff-completion.fish ruff.fish
newzshcomp ruff-completion.zsh _ruff
dodoc -r "${DOCS[@]}"
}