mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
dev-util/ruff: add 0.14.8
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
parent
9255dc1da4
commit
cd83fb2c00
@ -9,7 +9,10 @@ DIST ruff-0.14.6-crates.tar.xz 23752712 BLAKE2B ee49cf2f67b35072c84c6a1936f3d1de
|
||||
DIST ruff-0.14.6.gh.tar.gz 8397813 BLAKE2B 153a770a9ef805c9972e9a04c31876e0f2bfdd99ada263bbe895d4ff9379cb641e034ee1118a3f123c43bc7257660127a5641235ac21e95229de644a7faddbe4 SHA512 7bf4f1884054408999ac477ab4dd34f5c5fa45d59462187d582fdfd01fdff62c802844fc67c0165387072d7127df89a42ff3da27e7fd165d9f7d5b96230cd5bc
|
||||
DIST ruff-0.14.7-crates.tar.xz 23748368 BLAKE2B 49f3fea3e9cdc9cfd57a6921e44ea7858b7b73ca043e1ae25e166a0864a6fc286c08952151b4b2b329c9679ecca0b638c68a8794ab3631e1a74649a772bf292c SHA512 6d2258eb2231c177b433fbf9db0d20f66c9cc643fbe1f1d325f58e477554eb5b3eda05229d859dae2e04e5e0859efddc8ecd78ddc35e20284749816d8f453837
|
||||
DIST ruff-0.14.7.gh.tar.gz 10307498 BLAKE2B c31764444e7c1de062f701421574e5b6410593d5cb207c222eccf11c284a21b4d1b2cc5cf26d6731d5b86ee4edfd7bb2ec048c53f3b053771cd4878945ca4f82 SHA512 1ed8e803520fcc2be1f93459201b4fd10da085ea478031eda7e38624075a3635bb76b81665ba2f08878e49c5020c6f5839a2a61ec7dca1227f63e47e553fc145
|
||||
DIST ruff-0.14.8-crates.tar.xz 23784784 BLAKE2B b7d70aa2e2cb31f041c9fef713c94929460176d08af324736bc9379c7b77aafd3ffa7297232cbdc0fbabe851825581632a768c750dfc6a187a6d84c329fa450c SHA512 71bec7c056e7ef900c4a26701950f2232825c7e5629517abba2d5dd46bcfe3da8c865c9d19d648f1a765947e536829152d46f5ba479b149cab9ff164f62352c4
|
||||
DIST ruff-0.14.8.gh.tar.gz 10357541 BLAKE2B 9fb8419a1bef5b6c75d0b3c284a127660f4c160b7b2e1565064f32b2f440f512540cbc976dce8ff065a9491da530404fbcca54e354e571769fac4ee44e153fd6 SHA512 8c29a7ded298656d8213563a42e41ca58ae07ab833edad830b57a0d47e4a7100576d9d803dfb87d3649eb026783781da2cb6c4dbc3bfd4094c5d98362bce1309
|
||||
DIST salsa-05a9af7f554b64b8aadc2eeb6f2caf73d0408d09.gh.tar.gz 730179 BLAKE2B 7b57e50c2fbb6973e18a0197c38591f908f30eb138bcf3c2088e60cf7c81cfb01101542f35fc5cec67fa5d77e96fc4782a726c3fe33aa837a7f8325800ed8843 SHA512 cfe8513c55bf3b16b3b4f86198847d1f34313d14c260ef05d4baf9fd15ca93faba3d7232181bebb7adef8f5ae0f817095e7c3ea982838052896b294259de87c7
|
||||
DIST salsa-17bc55d699565e5a1cb1bd42363b905af2f9f3e7.gh.tar.gz 731114 BLAKE2B fd0955880ac2b25e6ffa9b92ed3d34a1171e99d5bb244234d03a68fed1add9248e887cb6b01047375cf0cf56e2026b259296363f55c7509d421884d404581f4f SHA512 745ba50f1aaf17703e3f83051a88d2c94fe332b668de57cde46b4f0a411bb5c119ef6965a6d49892b55e322af44b420e7086180a32592fe1f90acc20261e6435
|
||||
DIST salsa-3713cd7eb30821c0c086591832dd6f59f2af7fe7.gh.tar.gz 717350 BLAKE2B 3db412c1ce2953fdde9f182e9611d8dfe09b197be36c69ebf77344fbdf1efb542b94ca61c5cbcc39fdb3df8ec1e374d19e1e1116174f63f907e28b51f14f19cf SHA512 49bcdede05f7f681d075739b685e1807e978d8160374b2d6176246b90255d72c202205e7591af76ce362706793ca8c15f1a3854849c63b466313eaf363ad8c61
|
||||
DIST salsa-59aa1075e837f5deb0d6ffb24b68fedc0f4bc5e0.gh.tar.gz 731457 BLAKE2B 22302e7b07ed72261a35a2ef8b36ba7110decf327aa0d80b21f72613379133534d2c32d09023373e86330af9a9a7c91e5551efcbd4816bab07c0d6a3562a7db8 SHA512 38776a512786845354e04f4427da831e92acc561928feb2066ee17afb11da2d262d18dbcfb8eba5880e4d64f70caf6b2086131d64b487aff91f47886f53003f6
|
||||
DIST salsa-a885bb4c4c192741b8a17418fef81a71e33d111e.gh.tar.gz 730610 BLAKE2B 32c4e35bc709ff35aa137fc0f50bd9d2c70cb6ebbd7224dcbeeb189375eefdf585abe439945a8dca9a4a6e05971eb29043c63f5523f642ae0c3ca960e7d876ec SHA512 94b1a409401639bfec85658589d98a0434b533ed4136a232c99a3c240d786f8e718aaae99f9722bcf2a648cbb63d4f2e2a0aded01ed70548f76c34253ba9c8cc
|
||||
|
||||
117
dev-util/ruff/ruff-0.14.8.ebuild
Normal file
117
dev-util/ruff/ruff-0.14.8.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;59aa1075e837f5deb0d6ffb24b68fedc0f4bc5e0;salsa-%commit%/components/salsa-macro-rules'
|
||||
[salsa-macros]='https://github.com/salsa-rs/salsa;59aa1075e837f5deb0d6ffb24b68fedc0f4bc5e0;salsa-%commit%/components/salsa-macros'
|
||||
[salsa]='https://github.com/salsa-rs/salsa;59aa1075e837f5deb0d6ffb24b68fedc0f4bc5e0;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[@]}"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user