mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-08 00:10:15 +03:00
dev-util/ruff: add 0.14.5
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -9,6 +9,8 @@ DIST ruff-0.14.3-crates.tar.xz 23444028 BLAKE2B cf64890f6e39e3ec11ad68dbb961740f
|
||||
DIST ruff-0.14.3.gh.tar.gz 8233440 BLAKE2B 4b2b36345284696f02d518aa74239ebc72338a67ce1c5c158a5beaf382e956703dc1242b10dc1f4bfe38b4e9418d64215fce8b94fcdfa114ec8a6a9997c17ad8 SHA512 13f8ca38d6a6c9aff6e96f0f3af22b3d931b636779fad4b6353de348016f0e04153e3780377a36220514fc7172d81ed584870a861bbc3d9456d2902f2871f90d
|
||||
DIST ruff-0.14.4-crates.tar.xz 23720372 BLAKE2B 99168dcfe4e00948482052a5c527909ee7926efd8b1677d4c762dafa8e126196f1797b1d61a4e0633af7cbe7002851136c7a8a69f1fca8f58286c1254af58d93 SHA512 f1f7e331e9610fa81d3d434a99b18c68b21e1a68871069c00d5966cdd81f5e19279ffcb2137c86bec1fe9a95826cfd1407c63a23514bb173fef2566a42b5bd57
|
||||
DIST ruff-0.14.4.gh.tar.gz 8266160 BLAKE2B 9b2a63e9f61ce709173cf769b4cd8e949cba5e7b598aafd0ddfb195aafc5939abb2ff9ddcfc3120c30c975c8d828cb4b292d5bc04cc9f4ffe4685e7125efe773 SHA512 45dec24955e617ee5619bf3ad7b0cbd611b43d07690d7a990bd3e9284272f7867b84046e8d3eb9c9be056e36224ca7fdd8e294229e996102075bedbbe0aeba32
|
||||
DIST ruff-0.14.5-crates.tar.xz 23721648 BLAKE2B 85967ff7a4ee02e26d9aec2312b1c82daeb91245a643526288cfaa0b49a1772f1217f3d2f5b68839cb91ef55830547ecd38bc897e3fe366256c16d34f29d5f4a SHA512 47d6a248edacc1c334b981e7b61d283b3822ab2aa49929d770fbcedc3d95d17278d33fdf9330af7e80867f46d3668060cc9a86a48b1d7d5917eb8b8019d42017
|
||||
DIST ruff-0.14.5.gh.tar.gz 8320373 BLAKE2B aaf94d50d84a3b594ca909fec58a761640152d76b3f3e48c32445cda18ab5f23cf8e07e9c2ce63bb6c4fdede652d3bb0890219cf62edbf0ac980d3d33b09df20 SHA512 3b826dda6be1f67bd36ad77527e2252c8f186159fea2e2b5a2f1052717438104ad2326231a59bbc6d0159b7a757f62a8d782a9c7921940fdc2bd786abc047cc4
|
||||
DIST salsa-05a9af7f554b64b8aadc2eeb6f2caf73d0408d09.gh.tar.gz 730179 BLAKE2B 7b57e50c2fbb6973e18a0197c38591f908f30eb138bcf3c2088e60cf7c81cfb01101542f35fc5cec67fa5d77e96fc4782a726c3fe33aa837a7f8325800ed8843 SHA512 cfe8513c55bf3b16b3b4f86198847d1f34313d14c260ef05d4baf9fd15ca93faba3d7232181bebb7adef8f5ae0f817095e7c3ea982838052896b294259de87c7
|
||||
DIST salsa-29ab321b45d00daa4315fa2a06f7207759a8c87e.gh.tar.gz 718322 BLAKE2B 7cd6eb8f7d2c9fc473e516384f83b8217288397cc051c644264de28eec531447c45ca875e3059ed65ebbe578f51bf223ebb4f59ab057cf1930d920b834dec549 SHA512 d8f500352923dcc233c05e25c81008ba94c5529e2e41421d701027f97509281d6ff42c5f0084459a5aa21c817a66f5f9956f3cca24467fec04b1383221778ed5
|
||||
DIST salsa-3713cd7eb30821c0c086591832dd6f59f2af7fe7.gh.tar.gz 717350 BLAKE2B 3db412c1ce2953fdde9f182e9611d8dfe09b197be36c69ebf77344fbdf1efb542b94ca61c5cbcc39fdb3df8ec1e374d19e1e1116174f63f907e28b51f14f19cf SHA512 49bcdede05f7f681d075739b685e1807e978d8160374b2d6176246b90255d72c202205e7591af76ce362706793ca8c15f1a3854849c63b466313eaf363ad8c61
|
||||
|
||||
117
dev-util/ruff/ruff-0.14.5.ebuild
Normal file
117
dev-util/ruff/ruff-0.14.5.ebuild
Normal file
@@ -0,0 +1,117 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.15.0
|
||||
|
||||
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;05a9af7f554b64b8aadc2eeb6f2caf73d0408d09;salsa-%commit%/components/salsa-macro-rules'
|
||||
[salsa-macros]='https://github.com/salsa-rs/salsa;05a9af7f554b64b8aadc2eeb6f2caf73d0408d09;salsa-%commit%/components/salsa-macros'
|
||||
[salsa]='https://github.com/salsa-rs/salsa;05a9af7f554b64b8aadc2eeb6f2caf73d0408d09;salsa-%commit%'
|
||||
)
|
||||
|
||||
RUST_MIN_VER="1.89.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{,_{ide,project,server,completion_eval,combine}} *_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 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
|
||||
newzshcomp ruff-completion.zsh _ruff
|
||||
|
||||
dodoc -r "${DOCS[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user