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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 688901581FD for ; Wed, 10 Sep 2025 22:10:45 +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 2E88F340E1E for ; Wed, 10 Sep 2025 22:10:45 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 25CF1110377; Wed, 10 Sep 2025 22:10:44 +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 1ACCB110377 for ; Wed, 10 Sep 2025 22:10:44 +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 BA2DA340E1E for ; Wed, 10 Sep 2025 22:10:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF99B272F for ; Wed, 10 Sep 2025 22:10:41 +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: <1757542218.f57692c3de9d34a1650e8dd5a006c38efc0e7616.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.0.ebuild X-VCS-Directories: dev-util/ruff/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: f57692c3de9d34a1650e8dd5a006c38efc0e7616 X-VCS-Branch: master Date: Wed, 10 Sep 2025 22:10:41 +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: b143db8b-b982-4d61-b0a5-8e85e95944e9 X-Archives-Hash: 6bc08a1c5326db6743383a8b7bc2e428 commit: f57692c3de9d34a1650e8dd5a006c38efc0e7616 Author: Patrick McLean gentoo org> AuthorDate: Wed Sep 10 22:10:18 2025 +0000 Commit: Patrick McLean gentoo org> CommitDate: Wed Sep 10 22:10:18 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f57692c3 dev-util/ruff: add 0.13.0 Signed-off-by: Patrick McLean gentoo.org> dev-util/ruff/Manifest | 2 + dev-util/ruff/ruff-0.13.0.ebuild | 117 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index f7e997d65483..3953f3edfe7e 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -7,5 +7,7 @@ DIST ruff-0.12.12-crates.tar.xz 22154512 BLAKE2B 66737f8b22d10a71cbd62c5817c4c44 DIST ruff-0.12.12.gh.tar.gz 7927550 BLAKE2B 91717175fa6712380b703e816c42836d152268d1a2f6d3a4014898c3a38c1d74156d3d24a26426ef502bdf7f8fe734dc81652b964d864d583b84110686cb2f43 SHA512 f559610c424c11c202ea3aa1b9e4726273927d11ecd26d4055253fa2a85f3ccbfe1d8e654d09fac526ab8c7ff9531a74f10fb975dc68036b76dc4ab969c9f7c8 DIST ruff-0.12.4-crates.tar.xz 25059288 BLAKE2B 8ca959d5db508199a4ca65b6ba5c7610eb4d78d74fc0d3a1b7f5d6a27a26d072b9b84506db02514b2cc176c5263950b6ed2fa11fc4d5c0b1bc03cf308a61e0cd SHA512 34ca78c9d40a92a88638e3bb74ab909044a9806ec7524ab3144bc057f2621ed39e53bbf51ea3994d2f386216f280175393a5cf5f5469bf591fa295b7b4e12cc4 DIST ruff-0.12.4.gh.tar.gz 7642686 BLAKE2B d4c6b8481fa387371d906be2f08870af61dc21cc773e4bb5578fba92bc19e0e8ebbe745833da20bad23af2413c46bbd73cf583e7b0a4b9b0f938f09b21536840 SHA512 8a41d1d9632f8e90822032881dca066797b781a3f82c898d74859235b6f31a9ad97e342c95d8af8dd7e498a75a769aecbd2dfea706beb836f5d35d657b6e1920 +DIST ruff-0.13.0-crates.tar.xz 22155800 BLAKE2B cccfca1795908e6b47fb9339acf0fe9ebb74bb5e502bc6ce7ec946f11807784972106ebcaf24d16a7621b59fe1fa4cf45ab4c550e74967ef4ec10820b43d8051 SHA512 86b0ba2114ae1811ef3db27ce49306758a9630bfa92f8d99d99ca57db036fa5a1f6bf6bc0c736ee7cf758921b16724ca8a98e0afd750b6ee2622e3b8282744ab +DIST ruff-0.13.0.gh.tar.gz 7941899 BLAKE2B eea41b72d06e1b73633e70a8fb0417d03d48d643f2ec299939f74a73d2f431940352a4f5a41a820ef442778d412790de2994f90a53ca7fabf80b05a4881ea38c SHA512 5ea0f0327acd672c6ee6ba4a52a70ec0475d8dbb743942ad2961aee2bdbca8c04d43c2b6026b2c2b97e6f7890302e24a26d4ee89ba03770c679b920f76e44e3c DIST salsa-a3ffa22cb26756473d56f867aedec3fd907c4dd9.gh.tar.gz 717383 BLAKE2B 3dbd07dce9ef787cecf13edd0134a320067eb785a7f69d283acbfb4ebd40159a7fb34f21d43a179dc9299887120fc6e5199cb423fa749ec3710f30c22e5a7df5 SHA512 0eed423967740cc86ecf31a2a3b8667ec520965e364faa768d814c2434591c9f7bd3e697697108a3fa9512c8834b2c3b3a1db1a1ec0ab23558cf7395d47c2d51 DIST salsa-fc00eba89e5dcaa5edba51c41aa5f309b5cb126b.gh.tar.gz 684112 BLAKE2B 624720fd4887982ef6da5b69dcc81a7290f791267d6915e636a8ade13663d670f34ee2a4492e13c7ea8a6f611a61b08ec31c34c9a4accf57a11d135fc17ae2ea SHA512 6f2f3b3d5fb20d863d0c661a1d4f2076591ab97b3c435f3eb4f22d9065a36800fbe617eaf6086682ab3eba38580ef08adb512bd72b40129b3b698ea00430675d diff --git a/dev-util/ruff/ruff-0.13.0.ebuild b/dev-util/ruff/ruff-0.13.0.ebuild new file mode 100644 index 000000000000..75f7043a748d --- /dev/null +++ b/dev-util/ruff/ruff-0.13.0.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;a3ffa22cb26756473d56f867aedec3fd907c4dd9;salsa-%commit%/components/salsa-macro-rules' + [salsa-macros]='https://github.com/salsa-rs/salsa;a3ffa22cb26756473d56f867aedec3fd907c4dd9;salsa-%commit%/components/salsa-macros' + [salsa]='https://github.com/salsa-rs/salsa;a3ffa22cb26756473d56f867aedec3fd907c4dd9;salsa-%commit%' +) + +RUST_MIN_VER="1.87.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[@]}" +}