mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
dev-util/ruff: add 0.14.10
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
parent
b96c04e587
commit
b587539c77
@ -1,6 +1,8 @@
|
||||
DIST lsp-types-3512a9f33eadc5402cfab1b8f7340824c8ca1439.gh.tar.gz 71124 BLAKE2B b2ea1c8fdd96dcc78ea48be71d1a4870fe1ff7f6a03dfe96479e0cba5f6b13ea68381d0a85fcb79a1ec2345eab7032c76cf567a813885128f94ac0c47c3de7bf SHA512 3362f9db4e78261825ae17b3429f9c54dc1b32a8b6a275ecff7bbe457c610d27ac37e68be3e9e27378f5f54c786dee787fd87b33c102f2507a46cf7290390ab5
|
||||
DIST ruff-0.13.1-crates.tar.xz 22289184 BLAKE2B c750396641652e538ba34081f62da40338ddcc02bcf2c131f77f759bb45637db2c8824ad5d290cbc55a7a3d04b7b9950caea4a03db6a109f8089ab339c34c375 SHA512 42c967ba063fecde8e48d69261c355952095d0ba748695305fb090bc4ea07eeb2c3a7c673438dbd2ba7690808f07cb1fc3438300cf8a15344b3fbdc41dedae89
|
||||
DIST ruff-0.13.1.gh.tar.gz 7990401 BLAKE2B 0c24b65c1212791e06c7ec4d153ca030f20bea75bd55be78314c07237f62060d24544dc45d7928e660f94284f8e45379a7d2f4b30863133b72fcf617ec0a2777 SHA512 f6461b23743144d5c21f83dafed89561514f143d5acfbee1c453f445e27b4d6638299123bdd13031741c8cc410376b111e7c25aab9fec30e7f2f190760ffae04
|
||||
DIST ruff-0.14.10-crates.tar.xz 23837368 BLAKE2B c09dcd6a0b6b55cc08407dae11980784e0f36042ebe33983aed5de82c7ba0e27c52f582c2ba11cce00203180a226a7d88333abd3df215309969b2f554856c336 SHA512 be4e7ba3cf489cd8873a030bc17117f7eef7ecd8b8677931794f68f3ca8af1eef2465d8c040230f664b9f7001dd6dde6e5762c847871ad29b5f6acb84c87f7f0
|
||||
DIST ruff-0.14.10.gh.tar.gz 10502239 BLAKE2B d7e47a0637717d48804679e17290066ecd09afe9cc9a9f5a2bd75763d0129253582a2473eacb7bd9c4e3ba3454174f2393e33dcbad96aa6ed07ef43ad827c1a5 SHA512 551fa0b51fa941df1f0f90625c07831899c76db99253a470d52f1dc77b580fe039a68dee56b8c0c9bd23ad36a4295874f80635e69859939844a6c155ea73ae99
|
||||
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
|
||||
|
||||
117
dev-util/ruff/ruff-0.14.10.ebuild
Normal file
117
dev-util/ruff/ruff-0.14.10.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;55e5e7d32fa3fc189276f35bb04c9438f9aedbd1;salsa-%commit%/components/salsa-macro-rules'
|
||||
[salsa-macros]='https://github.com/salsa-rs/salsa;55e5e7d32fa3fc189276f35bb04c9438f9aedbd1;salsa-%commit%/components/salsa-macros'
|
||||
[salsa]='https://github.com/salsa-rs/salsa;55e5e7d32fa3fc189276f35bb04c9438f9aedbd1;salsa-%commit%'
|
||||
)
|
||||
|
||||
RUST_MIN_VER="1.90.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[@]}"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user