repo/gentoo:master commit in: dev-util/ruff/

"Patrick McLean" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786652964.7b9f52f7a10c5faaefc236ec32f622aee4ffc06e.chutzpah@gentoo>
commit:     7b9f52f7a10c5faaefc236ec32f622aee4ffc06e
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 13 20:29:08 2026 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Aug 13 20:29:24 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b9f52f7

dev-util/ruff: add 0.16.3

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-util/ruff/Manifest           |   2 +
 dev-util/ruff/ruff-0.16.3.ebuild | 111 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest
index 44e51b9e853f..9ffa9dfb579c 100644
--- a/dev-util/ruff/Manifest
+++ b/dev-util/ruff/Manifest
@@ -7,4 +7,6 @@ DIST ruff-0.16.1-crates.tar.xz 28659240 BLAKE2B 119a6395d66c4bac93761180cc729e4a
 DIST ruff-0.16.1.gh.tar.gz 12733382 BLAKE2B 3296aef4902f375250fd19cfef80101bafd6acb5c9771ac3138d9c8560137d93d3cb1d434e74ec3a00387d22c3308942fd799e550d6d2b618bfb711319abcb7b SHA512 ed7d691fd755264202cb80276f12b0eef78682c6a0e1badfb2735d2451a10f707e0188a06bbe6494594f10f45c6d5ccaf6eda891754e0d79cc2367b75ba629cc
 DIST ruff-0.16.2-crates.tar.xz 28677024 BLAKE2B 2361f6e64bab7890c3fd13742d73d279b8a159d3fc8d7282b2dd98a9e8c9ffb6273c8b52d730a7bd5472b24aad74383fa9ef958eefb50a7eb827736e3ab84087 SHA512 2dd4e404749ead2a4dd6a44f748e8354cc37a8464f1daf621f080b1d2a4779d7aa183f755da78112fee88e7425aaa8d11079f9081bd934a4849a4c439641ad22
 DIST ruff-0.16.2.gh.tar.gz 12845092 BLAKE2B 81f188e137deeb996ed1c7ef504c0149831212c1527d3f6da520e403cc9742101ca178684e0f1baa71a5f187f554d7710c5125a78ece0cb9eaffe25d15ea8134 SHA512 e809c5724bb7c5f7ecb0a2d018bee00a1eb096a2546b369ddd08b4d4dcab51c5a0f61daf27f2e57c324fe359875d2e19af263561888b45d1ac4db5a93495831e
+DIST ruff-0.16.3-crates.tar.xz 28676112 BLAKE2B 39589abb617e446375d6005c4af0febcfd73c660796b9c8ec888b079a1189acb3a8f9d58c5f51adbb19c63c4b317002c954d0724069f5b0bdc9b7e0aaa6c8805 SHA512 2590a1bba550871131a506ec12818efb311687c8f403c7782f90e69c676ca688c7b673b097057f1f83aad71112c0642ebeb9e23c979299cfdf224ddc7146063d
+DIST ruff-0.16.3.gh.tar.gz 12914254 BLAKE2B f4c3c8eb0f4894dde899147e44fe4c017993c4c593f15599bd3f282f28b6830f8502f85d6a32a1dad5839349fd92519806a8152b248f61906d3a2a8d8affee79 SHA512 1e1bdb8265944685c2ea4faa97601236d994a24e19ae0f615952dd2c103e930b104b85a0d16d376efe22384b2a46a8486fb5f7dd025496cb9e858c3090fc86bb
 DIST salsa-55e5e7d32fa3fc189276f35bb04c9438f9aedbd1.gh.tar.gz 731425 BLAKE2B ce720abaa295b46c7e1fa06a73e2ad9a48a6b9da7f2b4a91edba38a28bb9a63a1661886fc7c5d6dbc915f589f2e055731a544cdf18afb4dd7b3f6815c59e543b SHA512 91942cfc6bbfb7f07366cdd3d42e5296bff877ee723b24868ff3c278defd0ef247f03e957332bc0696553f0f1977a41c18d08efe7887f5bda3a1cb98543bddbd

diff --git a/dev-util/ruff/ruff-0.16.3.ebuild b/dev-util/ruff/ruff-0.16.3.ebuild
new file mode 100644
index 000000000000..fe46867af3c0
--- /dev/null
+++ b/dev-util/ruff/ruff-0.16.3.ebuild
@@ -0,0 +1,111 @@
+# 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="
+"
+
+RUST_MIN_VER="1.95"
+
+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[@]}"
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.