From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3F6701581B9 for ; Fri, 03 Oct 2025 18:43:21 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 216B4340F37 for ; Fri, 03 Oct 2025 18:43:21 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1D0D21103E2; Fri, 03 Oct 2025 18:43:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 147611103E2 for ; Fri, 03 Oct 2025 18:43:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BA9B7340F37 for ; Fri, 03 Oct 2025 18:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F0A553A8F for ; Fri, 03 Oct 2025 18:43:17 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1759516982.0a35eb8e493b18310f36386f6eb1e2c377836e08.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ruff/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/ruff/Manifest dev-util/ruff/ruff-0.13.3.ebuild X-VCS-Directories: dev-util/ruff/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 0a35eb8e493b18310f36386f6eb1e2c377836e08 X-VCS-Branch: master Date: Fri, 03 Oct 2025 18:43:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6de193c7-1b1d-461b-a255-3acff21e6e94 X-Archives-Hash: e3e474ebfa09a3a2bd14cb5fc29e6d2c commit: 0a35eb8e493b18310f36386f6eb1e2c377836e08 Author: Patrick McLean gentoo org> AuthorDate: Fri Oct 3 18:42:47 2025 +0000 Commit: Patrick McLean gentoo org> CommitDate: Fri Oct 3 18:43:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a35eb8e dev-util/ruff: add 0.13.3 Signed-off-by: Patrick McLean gentoo.org> dev-util/ruff/Manifest | 2 + dev-util/ruff/ruff-0.13.3.ebuild | 117 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 857cb41d79ad..ac96e08af6dd 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -7,6 +7,8 @@ DIST ruff-0.13.1-crates.tar.xz 22289184 BLAKE2B c750396641652e538ba34081f62da403 DIST ruff-0.13.1.gh.tar.gz 7990401 BLAKE2B 0c24b65c1212791e06c7ec4d153ca030f20bea75bd55be78314c07237f62060d24544dc45d7928e660f94284f8e45379a7d2f4b30863133b72fcf617ec0a2777 SHA512 f6461b23743144d5c21f83dafed89561514f143d5acfbee1c453f445e27b4d6638299123bdd13031741c8cc410376b111e7c25aab9fec30e7f2f190760ffae04 DIST ruff-0.13.2-crates.tar.xz 22354868 BLAKE2B df4e5318147e4dac6394047e94cd5e1cd6c3a27e773e82a3df0196dc6f1ff8cf73dc6cf0fb6400dc3779c6be7cf37ed887a56f32a39d25945297f247db153b93 SHA512 1cbbc0b8d7d70cc5fdb05bc47dda0e42f937a24e0df72ba2dfb91656df4ffd58a964eb85993b2bc084c4126333c06c7fe8a192a557f78033f973299679fc513c DIST ruff-0.13.2.gh.tar.gz 8019386 BLAKE2B db3a8b0b4b2853581416a58506dbd41e8dab807e1dd835362c44b7e5d78e246acf6a239edda49454ab161a16ecbad4b5c1832335a0423195bc8d64a17c8c4ca4 SHA512 53d85bdf0e21835222f7db48d9f90c9d4c770639939b020bf705855739d60058456f0365e866ff3272f759c5310308dad18bcb70df5b143bb5d03fa50cda856b +DIST ruff-0.13.3-crates.tar.xz 22354868 BLAKE2B df4e5318147e4dac6394047e94cd5e1cd6c3a27e773e82a3df0196dc6f1ff8cf73dc6cf0fb6400dc3779c6be7cf37ed887a56f32a39d25945297f247db153b93 SHA512 1cbbc0b8d7d70cc5fdb05bc47dda0e42f937a24e0df72ba2dfb91656df4ffd58a964eb85993b2bc084c4126333c06c7fe8a192a557f78033f973299679fc513c +DIST ruff-0.13.3.gh.tar.gz 8042833 BLAKE2B 39c5848c954e32cfecf4a7ac9a82d4403a722a770a952c889d2bccc3799c0509492744f028fbe066b531c2157e68eabb92d5270bf7991014df4c862ea5be68a0 SHA512 8239f609814d8e3dd2964e7f9e3a130e588acec6a9aec0e7cce863f3cbb851fe323e6e138aa3f4d549a158164482a9f19993d73b60e3fc11614998d92a80deae DIST salsa-29ab321b45d00daa4315fa2a06f7207759a8c87e.gh.tar.gz 718322 BLAKE2B 7cd6eb8f7d2c9fc473e516384f83b8217288397cc051c644264de28eec531447c45ca875e3059ed65ebbe578f51bf223ebb4f59ab057cf1930d920b834dec549 SHA512 d8f500352923dcc233c05e25c81008ba94c5529e2e41421d701027f97509281d6ff42c5f0084459a5aa21c817a66f5f9956f3cca24467fec04b1383221778ed5 DIST salsa-3713cd7eb30821c0c086591832dd6f59f2af7fe7.gh.tar.gz 717350 BLAKE2B 3db412c1ce2953fdde9f182e9611d8dfe09b197be36c69ebf77344fbdf1efb542b94ca61c5cbcc39fdb3df8ec1e374d19e1e1116174f63f907e28b51f14f19cf SHA512 49bcdede05f7f681d075739b685e1807e978d8160374b2d6176246b90255d72c202205e7591af76ce362706793ca8c15f1a3854849c63b466313eaf363ad8c61 DIST salsa-a3ffa22cb26756473d56f867aedec3fd907c4dd9.gh.tar.gz 717383 BLAKE2B 3dbd07dce9ef787cecf13edd0134a320067eb785a7f69d283acbfb4ebd40159a7fb34f21d43a179dc9299887120fc6e5199cb423fa749ec3710f30c22e5a7df5 SHA512 0eed423967740cc86ecf31a2a3b8667ec520965e364faa768d814c2434591c9f7bd3e697697108a3fa9512c8834b2c3b3a1db1a1ec0ab23558cf7395d47c2d51 diff --git a/dev-util/ruff/ruff-0.13.3.ebuild b/dev-util/ruff/ruff-0.13.3.ebuild new file mode 100644 index 000000000000..53daaff0e873 --- /dev/null +++ b/dev-util/ruff/ruff-0.13.3.ebuild @@ -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;29ab321b45d00daa4315fa2a06f7207759a8c87e;salsa-%commit%/components/salsa-macro-rules' + [salsa-macros]='https://github.com/salsa-rs/salsa;29ab321b45d00daa4315fa2a06f7207759a8c87e;salsa-%commit%/components/salsa-macros' + [salsa]='https://github.com/salsa-rs/salsa;29ab321b45d00daa4315fa2a06f7207759a8c87e;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[@]}" +}