mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/ruff: restore 0.13.1 (bug #964343)
Bug: https://bugs.gentoo.org/964343 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
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.11-crates.tar.xz 27155716 BLAKE2B 821dfb87add5d83ece6e5f0849b25c7146bc13f573c040816dfedfcbfc0992345f34858c846eebf5c8fc00fdbea08ac06ecba5118406c03db025a455c2893480 SHA512 5aaa82201c14d982bef1793a070f5b667668b8a533f55707523466d29f2bd5ba59d5c239d12723972a7a8ccd32a73d11954f97776c4faebcf135bab45eba6e05
|
||||
@@ -8,5 +10,6 @@ DIST ruff-0.14.14.gh.tar.gz 10790863 BLAKE2B a2c528031f7a4d7722d2b3ed2e21e8866f8
|
||||
DIST ruff-0.14.9-crates.tar.xz 23756736 BLAKE2B 096331190e95db7701bd80ef61d38dbc2f40dd551ed47381376ec7b7ab6cca2660d0bf3991e436643bab8e8c76b21d0b250b3229f6718a5b9ae8cf062167fb88 SHA512 69a2784950322b8d99abcfc7a08b6205e26ba58c7c91a7978069fec734e8668c32e59d1142c0921eec0e65b7fd6b7eb25ad5c9f623e547f4ee41045bcad92447
|
||||
DIST ruff-0.14.9.gh.tar.gz 10435624 BLAKE2B 8a11be76ac46750c97efd6f8bfdafd1d2bdeac81302b85f2d04feba59165fe9ed1b24c465a9df0d8d415325af6e9c6e020d21f295ef94c52f24681359c00bb3a SHA512 67c58eff480232871041156ddd8448a856b0e3c9bb68ca82577d34f353a711b85e3b1e032f98ed0abe5d0fff2855a109380e59e8909dd2742c3bb6b96dc972d4
|
||||
DIST salsa-309c249088fdeef0129606fa34ec2eefc74736ff.gh.tar.gz 733433 BLAKE2B 7e624438a1bc329e7874fbd2b2efb159933b4297664567e6e0c367d4fbe9ab98de9ca1ffc09a2e2b3e15efd7b6a855298e8e861560157e6eb50ff0251260ad39 SHA512 5e4ee81b8bdb21c98bac9fd8f6e51946a393d5a8e526c8f2f1153234450f25b37618fba26aa1f102439633cc271d8b46769ab86a02d9a51ee1071cc5eed6e876
|
||||
DIST salsa-3713cd7eb30821c0c086591832dd6f59f2af7fe7.gh.tar.gz 717350 BLAKE2B 3db412c1ce2953fdde9f182e9611d8dfe09b197be36c69ebf77344fbdf1efb542b94ca61c5cbcc39fdb3df8ec1e374d19e1e1116174f63f907e28b51f14f19cf SHA512 49bcdede05f7f681d075739b685e1807e978d8160374b2d6176246b90255d72c202205e7591af76ce362706793ca8c15f1a3854849c63b466313eaf363ad8c61
|
||||
DIST salsa-55e5e7d32fa3fc189276f35bb04c9438f9aedbd1.gh.tar.gz 731425 BLAKE2B ce720abaa295b46c7e1fa06a73e2ad9a48a6b9da7f2b4a91edba38a28bb9a63a1661886fc7c5d6dbc915f589f2e055731a544cdf18afb4dd7b3f6815c59e543b SHA512 91942cfc6bbfb7f07366cdd3d42e5296bff877ee723b24868ff3c278defd0ef247f03e957332bc0696553f0f1977a41c18d08efe7887f5bda3a1cb98543bddbd
|
||||
DIST salsa-9860ff6ca0f1f8f3a8d6b832020002790b501254.gh.tar.gz 738416 BLAKE2B a80aea2f5e89bbadd5aecd7bf728355f2ffd84793b2e3581e94ba10e32c68fa7b9eb2663b17e47089ba60f5b6019776f794f91771435a9e8d10876f4e38b4d97 SHA512 ed1080daa458a77dc1634381863c671f3facd34e048c952358253be950bc87eb4d11079566be8caa90eb1f704e1dbc3591418a03ed10f1b7147222afcf44fe63
|
||||
|
||||
117
dev-util/ruff/ruff-0.13.1.ebuild
Normal file
117
dev-util/ruff/ruff-0.13.1.ebuild
Normal file
@@ -0,0 +1,117 @@
|
||||
# Copyright 2024-2026 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;3713cd7eb30821c0c086591832dd6f59f2af7fe7;salsa-%commit%/components/salsa-macro-rules'
|
||||
[salsa-macros]='https://github.com/salsa-rs/salsa;3713cd7eb30821c0c086591832dd6f59f2af7fe7;salsa-%commit%/components/salsa-macros'
|
||||
[salsa]='https://github.com/salsa-rs/salsa;3713cd7eb30821c0c086591832dd6f59f2af7fe7;salsa-%commit%'
|
||||
)
|
||||
|
||||
RUST_MIN_VER="1.88.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}} *_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