dev-util/ruff: add 0.15.12

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2026-04-27 15:59:34 -07:00
parent 696dfe5771
commit cff8836f27
2 changed files with 117 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ DIST ruff-0.15.10-crates.tar.xz 27376552 BLAKE2B 8c7d8262c2a6d1e5956007db34c3ba7
DIST ruff-0.15.10.gh.tar.gz 11441123 BLAKE2B 0457797de9b390d491c375960001960696c2b9a46c3d30af07362fb3ec02f9db90fb7f20cc8a9abf3e0e2ab3a0a7371f11dd338b3aaad9c6e3b364edea60c758 SHA512 fec3ed2ffecc4e0159691a1b893197f8962dd6668033008a075734801673af6d120d493c0c98d497f8eb00436f821970dffbdceeb2ab15b7998c4543cf4569a0
DIST ruff-0.15.11-crates.tar.xz 27392156 BLAKE2B 7948f7f0dc47f7682e59cef7669ef9e1664705a71facff35fcaec7f0844c3891177d6a7f453af0d42285a06c9fbff7b80ebf6cf651fdaef7e03e47a9b2e7b0d3 SHA512 23e448aa830ecf479b3961dfaee565f91b6705b24d77bae25dceab705688cb6ee9cd0b9afc100ffe54f3a74c071706c08b5f350cfbc120fad67c786a82f3987e
DIST ruff-0.15.11.gh.tar.gz 11488829 BLAKE2B f33766a79e45480cbcdd3ebeeb7cac588d6d22f63830fb1eb34137c92dcbce59e81f0b5a32bc1e6492f3394e42371e3313aabdf269c03641929b548f4db2b64e SHA512 fcaeef9584f919048184913d16e13ebfca268c3ef105ef5a016e06de9c0fa863ccd47755817801e9758aba8ab03c1f9cee52ae2470069c48932dce5a90fe3d3f
DIST ruff-0.15.12-crates.tar.xz 27948828 BLAKE2B 7877e801f31dbf1a485ab4b5089669832ff3cfdfc38bbc9f640edc939255188fd026ad8bfecb7279d7d2c662338ae6afed55da7c17657ab8f936960cecd8ec2e SHA512 9870cc0edcfe7b12f92916b3662b4774b7f758e2d70289f0fd1845067bf3bab61bd67abfb43d38a0f879cc1554b828ae754b6ad9bf48ec07d6134a0f69834897
DIST ruff-0.15.12.gh.tar.gz 11514538 BLAKE2B 96fe203e4dadc703f1eff9bd49f52c4bcac4d3f160b5d3f4a899c8341b4f21e2ffc6f136b76fafd5834095ddb6e86dd52a2786bdd045392106c25fabeb5fc06e SHA512 add23d05f9c1e86e52a5bda70f16dc300414b4a7fbb5a3f7d703c21b11ee6d1692f095be2bea1eeff7cf66b2e8a98bfbefb72854fd4535c4f748560931613b54
DIST ruff-0.15.8-crates.tar.xz 27533848 BLAKE2B 1f76cc4b0a8e8fd10ea8d8fc1919d6ceaf8bef3e6531b68f836800e9016ac2022d08a211bbe9ab43ef33c17df5fd62ee6cd845f93dece6dd88df3e567d13a84a SHA512 58399d4a87916cf8d6221bc26c43e594c9f78620b8e9ec38b9d467b0c1a5482e72678235e0e8dab4f335c1b90d4cf4504f0f92d647202d0bfc288dbedeaa16bf
DIST ruff-0.15.8.gh.tar.gz 11339555 BLAKE2B 8bf1da708278459807ab120e17d762c128f7a10f5a6103881ca650b278eb938815f9ee9b2c22e755e1c38fd525269932138f5849dafdbdda930ec45e76273790 SHA512 868d8946a1f6d89f042a97a7cf21b99b4e56238a0020913e4a23a1cd3b617615ba556462a1dd7a6cf5cdae289d3fcc5291eedf0e7381a01b425f69d381dc799a
DIST ruff-0.15.9-crates.tar.xz 27352792 BLAKE2B 140953d256d46bcd0928c3502e36da87cfa35ab7a14a82fd81bf520250b75cc9837ee71e8b744c720c1202e8a26dca173f79baecfe87d212dd251f2d06f0c99a SHA512 dd666997648769a48d5d8020e69af1b7fa13378149f68eb2d260c252ce7a057ff6795a5642790a70fcea3430a6ee2ef3abc1f2f8bee78c7d9492e9f1471f1ebb

View File

@@ -0,0 +1,115 @@
# 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;e15db0593f0ecbbd80599c3f5880e4bf5da1ca0c;lsp-types-%commit%'
)
RUST_MIN_VER="1.93"
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
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[@]}"
}