From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9108F15852A for ; Fri, 16 Aug 2024 23:35:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD9E8E2A52; Fri, 16 Aug 2024 23:35:57 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id 95E94E2A52 for ; Fri, 16 Aug 2024 23:35:57 +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 83988335C36 for ; Fri, 16 Aug 2024 23:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B87A915BB for ; Fri, 16 Aug 2024 23:35:54 +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: <1723851318.ba045eb5bca45c1586266ff42614e6181dfb86d4.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.6.1.ebuild X-VCS-Directories: dev-util/ruff/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: ba045eb5bca45c1586266ff42614e6181dfb86d4 X-VCS-Branch: master Date: Fri, 16 Aug 2024 23:35:54 +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: fb4981be-deb9-456e-9ffe-75b963d74f37 X-Archives-Hash: b8900538ac43ac324b6d6166a5b5c8ce commit: ba045eb5bca45c1586266ff42614e6181dfb86d4 Author: Patrick McLean gentoo org> AuthorDate: Fri Aug 16 23:35:18 2024 +0000 Commit: Patrick McLean gentoo org> CommitDate: Fri Aug 16 23:35:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba045eb5 dev-util/ruff: add 0.6.1 Signed-off-by: Patrick McLean gentoo.org> dev-util/ruff/Manifest | 2 +- dev-util/ruff/ruff-0.6.1.ebuild | 467 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 468 insertions(+), 1 deletion(-) diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 63b64e63dec7..f43189735b67 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -215,7 +215,7 @@ DIST regex-syntax-0.6.29.crate 299752 BLAKE2B 2408ebfe5f0dd6578c33f18e8ea9a0a7a8 DIST regex-syntax-0.8.3.crate 347497 BLAKE2B 9ac2f63098ffa3fff51fe2bc0bcf9ef164cf9389a909a3f0cb668d2598e7ca65d573e47d571ee2e6bba3a1a96ef7c298b8d681e1ef89c8c53b7d590e0e22839b SHA512 925f7bcc50d94c65d34fcc770c6e58dd5b8a045541c0109e77b8efe842eef4c110087ac9c0f86c7c3022ed013abbc5c0a187d796dce292ad5361a0cdf7153d76 DIST ring-0.17.8.crate 4188554 BLAKE2B f531b15cc5cf88f2ef00b1708473a7e98a42dbbd026027ef2c42f2d8bdba0eb1665621fc98db618252f6a131bd54b1493987a0285bf2b9a22eba4c9409ee1cab SHA512 e4966409a4078ee43bfc9cc659d08ad28419effe2a729c8c275361a7fe0620a3c727009bcfb1d0bab265af2bc107b50c19d868a4e80da7a8bb55f97e8b214358 DIST ruff-0.5.7.gh.tar.gz 4970307 BLAKE2B b57370b9107c1c2a37a67ce5a36c337ddb26c93ecd9fcf418d07cd4be899649b31b5d13218f523e37ba463219b7f5a3c4c78c9e30da23672b4836edbec8aafca SHA512 ef61008a854b544a6f666f6c5cef3f19c57fca77dc41314341bca4ea185a5df1a659c50a6d8fe3d12fbdfb830ceedc039aa12ab7e43a5dce417c231364ce7789 -DIST ruff-0.6.0.gh.tar.gz 5000511 BLAKE2B a6cb5546f20c5340e6598811d2e88dc001886c876b0da3f6532de73273a6029b567178ab2e6d8a5cd40c3030133a0696ec4f1eb84b5ff9fcd48f5fd5ec5fa249 SHA512 cb00ad45a84bc41401a10bacc44b76b0721eeaa4dcfdedeeaa7472a3df85b24e10329a06b92bb24b6c9c2eb1753f8460dabed2a231df2214b3db25c492474ef3 +DIST ruff-0.6.1.gh.tar.gz 5008090 BLAKE2B 018934f8b4bc14ffc8cbc919ed0b7f4bd95fada42099dd25fd3494c5ea4e3e43b79f5aa58a9893031d19c37a1d3bffa9e5f938350e8398444d98fc4159cfc05b SHA512 b448c893c17d273edfc71774670726da533a3994b9dabcbe72a301523422af66e87e95cef964d71ebec19f8f5693d6cad17704d332d1c00bc0ab6cbcc497a644 DIST rust-stemmers-1.2.0.crate 2351301 BLAKE2B d633c0d7091fd05e55a521670104831bed89deef7a2fb7c1eed3528246e65b67a97888fed48b134b10c477e7b95c034e8bbad70500c779b1ff7b0c334de0b37b SHA512 b9453a0984d41e5a692e5ea1a8a7bc6142de30f7b345a269489b8d4ebe3b3d442e7fe5f338c72a790521dea7a2ad9605c0ca8218a6b76d8bc5e19ae02cf711d7 DIST rustc-hash-1.1.0.crate 9331 BLAKE2B 16ac56622897f47a06b661fb59a196b08d48e782ab87549c8bd5c6fe92f374c9bfd44dcb36588512bd9b6125c2fd79a12d648aaa308fd9694bcca3a7c1b49ac9 SHA512 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544 DIST rustc-hash-2.0.0.crate 12691 BLAKE2B b6a619f681e897c8a9167bb88d6ba78715010ac6c1ef9a7a9e115fe8aab10fcd9d4f5e1893e89a36a59118819dbf67de3d261a190fe37948137f097bc99b3fd2 SHA512 996ad683db2e6839ee28fdc4a31293aecce7baefaf6051220a633a00beddef1be41aef0995d7501e5b92dbc85350ced920bc980d05f5ba235e9a5d1a13464339 diff --git a/dev-util/ruff/ruff-0.6.1.ebuild b/dev-util/ruff/ruff-0.6.1.ebuild new file mode 100644 index 000000000000..68f124d83452 --- /dev/null +++ b/dev-util/ruff/ruff-0.6.1.ebuild @@ -0,0 +1,467 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.3 + +EAPI=8 + +CRATES=" + Inflector@0.11.4 + adler@1.0.2 + ahash@0.8.11 + aho-corasick@1.1.3 + allocator-api2@0.2.16 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anes@0.1.6 + annotate-snippets@0.6.1 + annotate-snippets@0.9.2 + anstream@0.6.13 + anstyle-parse@0.2.3 + anstyle-query@1.0.2 + anstyle-wincon@3.0.2 + anstyle@1.0.8 + anyhow@1.0.86 + append-only-vec@0.1.5 + arc-swap@1.7.1 + argfile@0.2.1 + arrayvec@0.7.4 + autocfg@1.2.0 + base64@0.22.0 + bincode@1.3.3 + bitflags@1.3.2 + bitflags@2.6.0 + bstr@1.10.0 + bumpalo@3.16.0 + byteorder@1.5.0 + cachedir@0.3.1 + camino@1.1.7 + cast@0.3.0 + castaway@0.2.3 + cc@1.0.95 + cfg-if@1.0.0 + cfg_aliases@0.1.1 + chic@1.2.2 + chrono@0.4.38 + ciborium-io@0.2.2 + ciborium-ll@0.2.2 + ciborium@0.2.2 + clap@4.5.15 + clap_builder@4.5.15 + clap_complete@4.5.2 + clap_complete_command@0.6.1 + clap_complete_nushell@4.5.2 + clap_derive@4.5.13 + clap_lex@0.7.0 + clearscreen@3.0.0 + codspeed-criterion-compat@2.6.0 + codspeed@2.6.0 + colorchoice@1.0.0 + colored@2.1.0 + compact_str@0.8.0 + console@0.15.8 + console_error_panic_hook@0.1.7 + console_log@1.0.0 + core-foundation-sys@0.8.6 + countme@3.0.1 + crc32fast@1.4.0 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-channel@0.5.12 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.19 + crossbeam@0.8.4 + crunchy@0.2.2 + ctrlc@3.4.4 + darling@0.20.8 + darling_core@0.20.8 + darling_macro@0.20.8 + dashmap@5.5.3 + dashmap@6.0.1 + diff@0.1.13 + dirs-sys@0.3.7 + dirs-sys@0.4.1 + dirs@4.0.0 + dirs@5.0.1 + drop_bomb@0.1.5 + dyn-clone@1.0.17 + either@1.11.0 + encode_unicode@0.3.6 + env_filter@0.1.0 + env_logger@0.11.5 + equivalent@1.0.1 + errno@0.3.8 + etcetera@0.8.0 + fastrand@2.0.2 + fern@0.6.2 + filetime@0.2.24 + flate2@1.0.28 + fnv@1.0.7 + form_urlencoded@1.2.1 + fs-err@2.11.0 + fsevent-sys@4.1.0 + getopts@0.2.21 + getrandom@0.2.14 + glob@0.3.1 + globset@0.4.14 + half@2.4.1 + hashbrown@0.14.5 + hashlink@0.9.1 + heck@0.5.0 + hermit-abi@0.3.9 + home@0.5.9 + humantime@2.1.0 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.60 + ident_case@1.0.1 + idna@0.5.0 + ignore@0.4.22 + imara-diff@0.1.7 + imperative@1.0.6 + indexmap@2.3.0 + indicatif@0.17.8 + indoc@2.0.5 + inotify-sys@0.1.5 + inotify@0.9.6 + insta-cmd@0.6.0 + insta@1.39.0 + instant@0.1.12 + is-docker@0.2.0 + is-macro@0.3.6 + is-terminal@0.4.12 + is-wsl@0.4.0 + itertools@0.10.5 + itertools@0.13.0 + itoa@1.0.11 + jobserver@0.1.32 + jod-thread@0.1.2 + js-sys@0.3.69 + kqueue-sys@1.0.4 + kqueue@1.0.8 + lazy_static@1.4.0 + libc@0.2.155 + libcst@1.4.0 + libcst_derive@1.4.0 + libmimalloc-sys@0.1.39 + libredox@0.1.3 + linked-hash-map@0.5.6 + linux-raw-sys@0.4.13 + lock_api@0.4.11 + log@0.4.22 + lsp-server@0.7.6 + matchers@0.1.0 + matches@0.1.10 + matchit@0.8.4 + memchr@2.7.4 + mimalloc@0.1.43 + minimal-lexical@0.2.1 + miniz_oxide@0.7.2 + mio@0.8.11 + natord@1.0.9 + newtype-uuid@1.1.0 + nix@0.28.0 + nom@7.1.3 + notify@6.1.1 + nu-ansi-term@0.46.0 + nu-ansi-term@0.50.1 + num-traits@0.2.18 + number_prefix@0.4.0 + once_cell@1.19.0 + oorandom@11.1.3 + option-ext@0.2.0 + ordermap@0.5.1 + os_str_bytes@7.0.0 + overload@0.1.1 + parking_lot@0.12.3 + parking_lot_core@0.9.9 + paste@1.0.14 + path-absolutize@3.1.1 + path-dedot@3.1.1 + path-slash@0.2.1 + pathdiff@0.2.1 + peg-macros@0.8.2 + peg-runtime@0.8.2 + peg@0.8.2 + pep440_rs@0.4.0 + pep440_rs@0.6.6 + pep508_rs@0.3.0 + percent-encoding@2.3.1 + phf@0.11.2 + phf_codegen@0.11.2 + phf_generator@0.11.2 + phf_shared@0.11.2 + pin-project-lite@0.2.14 + pkg-config@0.3.30 + portable-atomic@1.6.0 + ppv-lite86@0.2.17 + pretty_assertions@1.4.0 + proc-macro2@1.0.86 + pyproject-toml@0.9.0 + quick-junit@0.4.0 + quick-xml@0.31.0 + quote@1.0.36 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.4.1 + redox_syscall@0.5.3 + redox_users@0.4.5 + regex-automata@0.1.10 + regex-automata@0.4.6 + regex-syntax@0.6.29 + regex-syntax@0.8.3 + regex@1.10.6 + ring@0.17.8 + rust-stemmers@1.2.0 + rustc-hash@1.1.0 + rustc-hash@2.0.0 + rustix@0.38.34 + rustls-pki-types@1.7.0 + rustls-webpki@0.102.5 + rustls@0.23.10 + rustversion@1.0.15 + ryu@1.0.17 + same-file@1.0.6 + schemars@0.8.21 + schemars_derive@0.8.21 + scoped-tls@1.0.1 + scopeguard@1.2.0 + seahash@4.1.0 + serde-wasm-bindgen@0.6.5 + serde@1.0.206 + serde_derive@1.0.206 + serde_derive_internals@0.29.0 + serde_json@1.0.124 + serde_repr@0.1.19 + serde_spanned@0.6.7 + serde_test@1.0.177 + serde_with@3.9.0 + serde_with_macros@3.9.0 + sharded-slab@0.1.7 + shellexpand@3.1.0 + similar@2.5.0 + siphasher@0.3.11 + smallvec@1.13.2 + spin@0.9.8 + static_assertions@1.1.0 + strip-ansi-escapes@0.2.0 + strsim@0.10.0 + strsim@0.11.1 + strum@0.26.3 + strum_macros@0.26.4 + subtle@2.5.0 + syn@2.0.74 + synstructure@0.13.1 + tempfile@3.12.0 + terminal_size@0.3.0 + terminfo@0.8.0 + test-case-core@3.3.1 + test-case-macros@3.3.1 + test-case@3.3.1 + thiserror-impl@1.0.63 + thiserror@1.0.63 + thread_local@1.1.8 + tikv-jemalloc-sys@0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7 + tikv-jemallocator@0.6.0 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.8.19 + toml_datetime@0.6.8 + toml_edit@0.22.20 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + tracing-flame@0.2.0 + tracing-indicatif@0.3.6 + tracing-log@0.2.0 + tracing-subscriber@0.3.18 + tracing-tree@0.4.0 + tracing@0.1.40 + typed-arena@2.0.2 + unic-char-property@0.9.0 + unic-char-range@0.9.0 + unic-common@0.9.0 + unic-ucd-category@0.9.0 + unic-ucd-version@0.9.0 + unicode-bidi@0.3.15 + unicode-ident@1.0.12 + unicode-normalization@0.1.23 + unicode-width@0.1.13 + unicode_names2@1.2.2 + unicode_names2_generator@1.2.2 + unscanny@0.1.0 + untrusted@0.9.0 + ureq@2.10.1 + url@2.5.2 + utf8parse@0.2.1 + uuid-macro-internal@1.10.0 + uuid@1.10.0 + valuable@0.1.0 + version_check@0.9.4 + vt100@0.15.2 + vte@0.11.1 + vte_generate_state_changes@0.1.1 + walkdir@2.5.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.92 + wasm-bindgen-futures@0.4.42 + wasm-bindgen-macro-support@0.2.92 + wasm-bindgen-macro@0.2.92 + wasm-bindgen-shared@0.2.92 + wasm-bindgen-test-macro@0.3.42 + wasm-bindgen-test@0.3.42 + wasm-bindgen@0.2.92 + web-sys@0.3.69 + web-time@1.1.0 + webpki-roots@0.26.1 + which@6.0.1 + wild@2.2.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.8 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-core@0.52.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-sys@0.59.0 + windows-targets@0.48.5 + windows-targets@0.52.6 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.6 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.6 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.6 + windows_i686_gnullvm@0.52.6 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.6 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.6 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.6 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.6 + winnow@0.6.18 + winsafe@0.0.19 + yansi-term@0.1.2 + yansi@0.5.1 + zerocopy-derive@0.7.32 + zerocopy@0.7.32 + zeroize@1.7.0 + zip@0.6.6 + zstd-safe@5.0.2+zstd.1.5.2 + zstd-sys@2.0.11+zstd.1.5.6 + zstd@0.11.2+zstd.1.5.2 +" + +declare -A GIT_CRATES=( + [lsp-types]='https://github.com/astral-sh/lsp-types;3512a9f33eadc5402cfab1b8f7340824c8ca1439;lsp-types-%commit%' + [salsa-macro-rules]='https://github.com/MichaReiser/salsa;ece083e15b79f155f9e4368ec1318cec9a08d88b;salsa-%commit%/components/salsa-macro-rules' + [salsa-macros]='https://github.com/MichaReiser/salsa;ece083e15b79f155f9e4368ec1318cec9a08d88b;salsa-%commit%/components/salsa-macros' + [salsa]='https://github.com/MichaReiser/salsa;ece083e15b79f155f9e4368ec1318cec9a08d88b;salsa-%commit%' +) + +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 +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 + WTFPL-2 +" +# ring +LICENSE+=" + ISC SSLeay openssl MIT +" +# libcst +LICENSE+=" + MIT PSF-2 Apache-2.0 +" +# libcst_derive +LICENSE+=" + MIT PSF-2 Apache-2.0 +" +# salsa-macro-rules +LICENSE+=" + || ( MIT Apache-2.0 ) +" + +SLOT="0" +KEYWORDS="~amd64 ~loong" + +BDEPEND=" + >=virtual/rust-1.76 +" +RDEPEND=" + !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) +" +DEPEND=" + ${RDEPEND} + app-arch/zstd +" + +QA_FLAGS_IGNORED="usr/bin/.*" + +DOCS=( + BREAKING_CHANGES.md + CODE_OF_CONDUCT.md + CONTRIBUTING.md + README.md + assets + docs +) + +src_configure() { + export RUSTFLAGS="${RUSTFLAGS}" + cargo_src_configure +} + +src_compile() { + # 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[@]}" +}