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 3BA491581EE for ; Wed, 02 Apr 2025 22:14:27 +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)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 2527D3431B5 for ; Wed, 02 Apr 2025 22:14:27 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2FBA61104B4; Wed, 02 Apr 2025 22:14:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 25DEF1104B4 for ; Wed, 02 Apr 2025 22:14:23 +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 C8290343172 for ; Wed, 02 Apr 2025 22:14:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CAC0252D for ; Wed, 02 Apr 2025 22:14:21 +0000 (UTC) From: "Eli Schwartz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eli Schwartz" Message-ID: <1743631993.e254daa44f34b3a05cc38c2025a887214c4af1f8.eschwartz@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.11.2.ebuild X-VCS-Directories: dev-util/ruff/ X-VCS-Committer: eschwartz X-VCS-Committer-Name: Eli Schwartz X-VCS-Revision: e254daa44f34b3a05cc38c2025a887214c4af1f8 X-VCS-Branch: master Date: Wed, 02 Apr 2025 22:14:21 +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: c70e82eb-60ab-425c-8421-627089190965 X-Archives-Hash: 5bf4791204c611fc624984788ceb42ec commit: e254daa44f34b3a05cc38c2025a887214c4af1f8 Author: Eli Schwartz gentoo org> AuthorDate: Wed Apr 2 22:13:13 2025 +0000 Commit: Eli Schwartz gentoo org> CommitDate: Wed Apr 2 22:13:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e254daa4 dev-util/ruff: add 0.11.2 Signed-off-by: Eli Schwartz gentoo.org> dev-util/ruff/Manifest | 2 + dev-util/ruff/ruff-0.11.2.ebuild | 117 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 2839fa31fbb6..3619ea8cc560 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -3,6 +3,8 @@ DIST ruff-0.11.0-crates.tar.xz 30398396 BLAKE2B 1aae76f5b2efeb8725ab938efa5000d9 DIST ruff-0.11.0.gh.tar.gz 6021690 BLAKE2B 5e510b5c43356149b2e5f2ba3e209b60afbc233ae98296bf26cfeb24f798a9f27583842070a658673ac13a27098af06ca23877099ba340f6c1d11ea597f54e75 SHA512 17e0c8976cc4e55f95450a3a56ec7629071255b9259e9ba127e48464b8e7d3b2e3d5d1f65d4591522246fccca202a24e50c0a1f7508ddc00d1681be9b752039c DIST ruff-0.11.1-crates.tar.xz 31005660 BLAKE2B a889c88f196f7fb306a171ef6970aa4282f612842e6c8cf3c6e439924993ef074ad0258b5284f7cc8f1642b3ca85f944f39dd4eed73a12bbebd1da0f56b5ffbd SHA512 a43744e11b7ddbeca340639ac07ae1384b1932abe8f70fe9e8243088df4c1958da52f60d94496763d1b260ef67f2ae30622aa9c10aa54aa472834ec507164fed DIST ruff-0.11.1.gh.tar.gz 6104672 BLAKE2B ee2e85f88645ebd089e35053cacc4ebf8698382c2d69200fa45fed407d4ad66bda7cff48e05cd25429366e5474cea9e89229e56b4029955a63c8512691332d4f SHA512 7ccb4535738fbe3e3f199783aaae6cbd6b2710a1eaeddcb7685648632fa89d3a2163055ab174e3855e566c31eb34834e44a7805053d108fffd0cbee3154132a2 +DIST ruff-0.11.2-crates.tar.xz 31005660 BLAKE2B a889c88f196f7fb306a171ef6970aa4282f612842e6c8cf3c6e439924993ef074ad0258b5284f7cc8f1642b3ca85f944f39dd4eed73a12bbebd1da0f56b5ffbd SHA512 a43744e11b7ddbeca340639ac07ae1384b1932abe8f70fe9e8243088df4c1958da52f60d94496763d1b260ef67f2ae30622aa9c10aa54aa472834ec507164fed +DIST ruff-0.11.2.gh.tar.gz 6112972 BLAKE2B 7c28b53b8877c95ad4a36ad9c7e672f5ab65b8774b1406f1582f337fdfd2255896929a4ed75911b0f1f9a730cc5f8ab39ec2756487944570787be133db47177a SHA512 42a15110d74f51d706459760dc57f1363629b689cd21427d7c65c1541cb1df2cd5467fec6941ef3cd9f8818fc6d0d57d3300abec4cbb39d4cfe37031fd5fecee DIST ruff-0.9.10-crates.tar.xz 30394612 BLAKE2B beccd485fb1908f20bbea74f2ae8c467531ce78ade0dfb33d1e3690f131d46c3f8cbc9d3c7d50ec4513a7255669cb7f1f7f5ce9fc4f6e88cfb82371cb2818991 SHA512 4dd7151b9f8933488050371d0c9e20ceed53e6304b65bac5381cc29fa72704316ff9d82427dc033a1734683c7d83d40bdd6f6e28015b2b4699555f73a980f621 DIST ruff-0.9.10.gh.tar.gz 5987888 BLAKE2B 6c64a69ce72da79d599082c996b23a9faeb747e5fb4fb192cb2b1986924432f7fb49cf54dc5cb9f05ca31f94636fefdc64e23b80e29ff99bba9b761bcc91c24c SHA512 c281347e44b9f6a0773913c93d82d968b54461d7e62e7a813079e8a49069e5a4a831cd0c99514e957fb4d564315c9e5733d6ce9e9bf2b591b767cd673b92376d DIST ruff-0.9.9-crates.tar.xz 30401168 BLAKE2B 1dddf6329b47405f179c2942cca4337629364bc3baa754dffa2f90a0a85027be7fbd991f61db02ae451e74680d92f8b4bb333a9346e633f4790775bd453e99a1 SHA512 d1c936d6d63558d51df596ceafee6953f4b6cad966fed9b3829089223faa9da728ca4105ab3bf6a4cfd5b57da8916265b74da914675a75d8a98ff7940ac6a375 diff --git a/dev-util/ruff/ruff-0.11.2.ebuild b/dev-util/ruff/ruff-0.11.2.ebuild new file mode 100644 index 000000000000..297bbe331211 --- /dev/null +++ b/dev-util/ruff/ruff-0.11.2.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.13.5 + +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;d758691ba17ee1a60c5356ea90888d529e1782ad;salsa-%commit%/components/salsa-macro-rules' + [salsa-macros]='https://github.com/salsa-rs/salsa;d758691ba17ee1a60c5356ea90888d529e1782ad;salsa-%commit%/components/salsa-macros' + [salsa]='https://github.com/salsa-rs/salsa;d758691ba17ee1a60c5356ea90888d529e1782ad;salsa-%commit%' +) + +RUST_MIN_VER="1.83.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 +" +SRC_URI+=" 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} red_knot{,_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[@]}" +}