From 0b39c3b03f13c084074099704a673640904e5249 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 9 Aug 2023 03:29:05 +0100 Subject: gentoo auto-resync : 09:08:2023 - 03:29:05 --- dev-util/ruff/Manifest | 4 +- dev-util/ruff/ruff-0.0.282.ebuild | 452 -------------------------------------- dev-util/ruff/ruff-0.0.283.ebuild | 452 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 454 insertions(+), 454 deletions(-) delete mode 100644 dev-util/ruff/ruff-0.0.282.ebuild create mode 100644 dev-util/ruff/ruff-0.0.283.ebuild (limited to 'dev-util/ruff') diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 85455fcfc6e9..4c677552ff17 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -217,7 +217,7 @@ DIST regex-syntax-0.7.3.crate 343354 BLAKE2B 18178923350be3f963a07963e2b04914caf DIST result-like-0.4.6.crate 4311 BLAKE2B 612ad606f331449907b9c0c99b525aedd53b46b5143b21472eb34d38ac64026498712de7c774183c358531b8296952eb39067c0bc5da07fee5483c28d78de37b SHA512 81b202903a90058a993315253099748c69b9caa42e62121f3fdd63b7d4f22878c81133d0b09f28f3366f180615241cfadf3e055ac86fb9662b9c982e5cc06a91 DIST result-like-derive-0.4.6.crate 5814 BLAKE2B 2598173bb8920e6b8143e034a77eeab17dea379f947098c35054c928db567513da4043d0830a8dbc40d3660e1257b90b18309f36cd83ac03e018921ae48343da SHA512 1097cfd81fe99472c0c308df7ba64ebd20497b0f855b66839c2a81ce8a179a305d04e7eb4d17be9d1dcc3e90f5fec7d59cf6d3093924354a6e02aa4ac2bfcbb5 DIST ring-0.16.20.crate 5082615 BLAKE2B 6011eb7148c2d2ab410e564a06604f4350e07ea030e4d7dcb30574b977f0b0c7e53e09f6e6dbb2d068cdf110262876c48dfaeeef1b691932a056fe149916d934 SHA512 d97d1b08eb796d4c107426ff2c015ab1f221612500c8a57fca8e3f064e8c0f5ae2a5e6071d013313cd9f4be8fed4ba03beae84bd446f56b2b2ca5d483c328191 -DIST ruff-0.0.282.gh.tar.gz 2859089 BLAKE2B e2943744049b391f5b7e49bb93e3c039967230abf758793dba678196927b2e5493a784ff3db6000f913b46fb3a2d1b64210e3b42e34f6b73b751a88f2c63682e SHA512 d4e29582d7bdf770cf1dd448cb330267437cb96dac309c35386266beda1ff75cec49ea4d1658a3ce064b0a59a145a8f987e91f5ad8830013d535d1bd9f8b65de +DIST ruff-0.0.283.gh.tar.gz 2890119 BLAKE2B a173e0e05296e9e730a0de93fc8169633a342e43840d94c93dddf57e32d0d87886005755a804463c78ab3c3cd9e41cb5f7d0c03f254df63d6fde6cdb20e4fc72 SHA512 6cdd2f66d0b89f23d92fec875e8b8069876bf6c1c036b5925c619929602a0ecb43e5957c1268cf3a08ccaa2791144623b218079802dece610c3dc8f8d00cf372 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 rustix-0.37.23.crate 328010 BLAKE2B 299ad4b521b1008b6e864e9e52e523e97319d4b976343dccfe9705273f92930bbf7ca21c3e243c90ff7424fe881b55f38a2840701ab75bdb381f31ca91b1d9ff SHA512 9dcc915b753b0ae9ea4d92d33f3a7c73e889ca0dc22abb95ec3d375e4188449d1bd6835c122598beb947fc8aaf884c59cc2cf55ab77f32480f5c17e789664988 @@ -355,5 +355,5 @@ DIST wsl-0.1.0.crate 2135 BLAKE2B 29f2657068fc8994e35fdaf8fe7e1a1fc1ad300d0c5c46 DIST yaml-rust-0.4.5.crate 47783 BLAKE2B 3e888c5cc7afb43eaf3aaab2b6f47b86df164a66eb54d4e166b965cc84b1e06cd17bd992a0d6ee175d9a73a76e2b44a13167246383ed054afcf3cc1710b309cb SHA512 7621dc8dfd5e7d4a7a8805b2a7e8319b63b852367655f2359d4e3e8fec6c4fad52d75c46ce1161e4c674eac0780b757ce9d34e664e304d8d2beec7afa0363ea0 DIST yansi-0.5.1.crate 16525 BLAKE2B 3b5a93b98293daae72f53bf3f13bfc05feba8d5b27921f79595f7448fbcb9a0dfa6cd70f467c5735b914c46b7d3592e6cce080c540a458a904308525eb3aa839 SHA512 7b33005a066cc612408a65df6533e8718d1de43efc0fd57416a19dc2b811497570e6e18f100fb26073565e395e711518c27de7d644ae64777713f1a102eb16d2 DIST yansi-term-0.1.2.crate 14342 BLAKE2B 31a1651bb43644cf880d591a22fe9d899ab0acbc744ced2952f120b4abfa0c42f6513089e34deaff1a453f3a26f9fb78442f016baa9524ccac9b21e4a7ed6ad6 SHA512 ba720e36487871427aaa7139e8aeaf5b2b3f2d1df4798d7e238e323dc3d3220f12202e223f74339201be3466848c372dc1712e1842e5cd6bd51c3dedf76c9ff6 -EBUILD ruff-0.0.282.ebuild 8976 BLAKE2B 3239c7f457c648c234c140ca6a301b9670ec2eb69ece450670e4f8e7909b34cea50e703e9d256acc9bba5ce8698a73bacc072fea133b94871ebfc5b93b89f8bc SHA512 7ad7341602dbe45cd242ad4c44da7caed90dff81db5863bb9a38548f3674785ae96f7468cb54a9f982814a87a26f896e7cb86dc067deadf57777e8d78455d153 +EBUILD ruff-0.0.283.ebuild 8976 BLAKE2B 3239c7f457c648c234c140ca6a301b9670ec2eb69ece450670e4f8e7909b34cea50e703e9d256acc9bba5ce8698a73bacc072fea133b94871ebfc5b93b89f8bc SHA512 7ad7341602dbe45cd242ad4c44da7caed90dff81db5863bb9a38548f3674785ae96f7468cb54a9f982814a87a26f896e7cb86dc067deadf57777e8d78455d153 MISC metadata.xml 375 BLAKE2B 46856b904e322f25ebb96268418206fb70b76f22751c5f8c12d0b3fb51a11b91518c42313d8a9f2fbd71dd5a3ca359772f54829a7858148c5f5f03f44fe1dad4 SHA512 ad24b0cafc7adc414a0da36f5b518eacbba3069ac15484504ce063916133e7c15945c04c7c6886e30c75010300598876ab498d5d44c48f66c5ed252f3fd2f36f diff --git a/dev-util/ruff/ruff-0.0.282.ebuild b/dev-util/ruff/ruff-0.0.282.ebuild deleted file mode 100644 index 3b058e5e6878..000000000000 --- a/dev-util/ruff/ruff-0.0.282.ebuild +++ /dev/null @@ -1,452 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..12} ) -DISTUTILS_USE_PEP517=maturin - -CRATES=" - Inflector@0.11.4 - adler@1.0.2 - aho-corasick@0.7.20 - aho-corasick@1.0.2 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - anes@0.1.6 - annotate-snippets@0.6.1 - annotate-snippets@0.9.1 - anstream@0.3.2 - anstyle-parse@0.2.1 - anstyle-query@1.0.0 - anstyle-wincon@1.0.1 - anstyle@1.0.1 - anyhow@1.0.71 - argfile@0.1.5 - arrayvec@0.7.4 - ascii-canvas@3.0.0 - assert_cmd@2.0.11 - autocfg@1.1.0 - base64@0.21.2 - bincode@1.3.3 - bit-set@0.5.3 - bit-vec@0.6.3 - bitflags@1.3.2 - bitflags@2.3.3 - bstr@1.6.0 - bumpalo@3.13.0 - cachedir@0.3.0 - cast@0.3.0 - cc@1.0.79 - cfg-if@1.0.0 - chic@1.2.2 - chrono@0.4.26 - ciborium-io@0.2.1 - ciborium-ll@0.2.1 - ciborium@0.2.1 - clap@4.3.11 - clap_builder@4.3.11 - clap_complete@4.3.2 - clap_complete_command@0.5.1 - clap_complete_fig@4.3.1 - clap_complete_nushell@0.1.11 - clap_derive@4.3.2 - clap_lex@0.5.0 - clearscreen@2.0.1 - colorchoice@1.0.0 - colored@2.0.4 - configparser@3.0.2 - console@0.15.7 - console_error_panic_hook@0.1.7 - console_log@1.0.0 - core-foundation-sys@0.8.4 - countme@3.0.1 - crc32fast@1.3.2 - criterion-plot@0.5.0 - criterion@0.5.1 - crossbeam-channel@0.5.8 - crossbeam-deque@0.8.3 - crossbeam-epoch@0.9.15 - crossbeam-utils@0.8.16 - crunchy@0.2.2 - ctor@0.1.26 - darling@0.20.1 - darling_core@0.20.1 - darling_macro@0.20.1 - diff@0.1.13 - difflib@0.4.0 - dirs-next@2.0.0 - dirs-sys-next@0.1.2 - dirs-sys@0.3.7 - dirs-sys@0.4.1 - dirs@4.0.0 - dirs@5.0.1 - doc-comment@0.3.3 - drop_bomb@0.1.5 - dyn-clone@1.0.11 - either@1.8.1 - ena@0.14.2 - encode_unicode@0.3.6 - env_logger@0.10.0 - equivalent@1.0.0 - errno-dragonfly@0.1.2 - errno@0.3.1 - fastrand@1.9.0 - fern@0.6.2 - filetime@0.2.21 - fixedbitset@0.4.2 - flate2@1.0.26 - fnv@1.0.7 - form_urlencoded@1.2.0 - fs-err@2.9.0 - fsevent-sys@4.1.0 - getrandom@0.2.10 - glob@0.3.1 - globset@0.4.10 - half@1.8.2 - hashbrown@0.12.3 - hashbrown@0.14.0 - heck@0.4.1 - hermit-abi@0.3.2 - hex@0.4.3 - hexf-parse@0.2.1 - humantime@2.1.0 - iana-time-zone-haiku@0.1.2 - iana-time-zone@0.1.57 - ident_case@1.0.1 - idna@0.4.0 - ignore@0.4.20 - imperative@1.0.4 - indexmap@1.9.3 - indexmap@2.0.0 - indicatif@0.17.5 - indoc@2.0.3 - inotify-sys@0.1.5 - inotify@0.9.6 - insta@1.31.0 - instant@0.1.12 - io-lifetimes@1.0.11 - is-macro@0.2.2 - is-terminal@0.4.8 - itertools@0.10.5 - itoa@1.0.8 - js-sys@0.3.64 - kqueue-sys@1.0.3 - kqueue@1.0.7 - lalrpop-util@0.20.0 - lalrpop@0.20.0 - lazy_static@1.4.0 - lexical-parse-float@0.8.5 - lexical-parse-integer@0.8.6 - lexical-util@0.8.5 - libc@0.2.147 - libmimalloc-sys@0.1.33 - linked-hash-map@0.5.6 - linux-raw-sys@0.3.8 - linux-raw-sys@0.4.3 - lock_api@0.4.10 - log@0.4.19 - matchers@0.1.0 - matches@0.1.10 - memchr@2.5.0 - memoffset@0.9.0 - mimalloc@0.1.37 - minimal-lexical@0.2.1 - miniz_oxide@0.7.1 - mio@0.8.8 - natord@1.0.9 - new_debug_unreachable@1.0.4 - nextest-workspace-hack@0.1.0 - nix@0.26.2 - nom@7.1.3 - notify@5.2.0 - nu-ansi-term@0.46.0 - num-bigint@0.4.3 - num-integer@0.1.45 - num-traits@0.2.15 - num_cpus@1.16.0 - number_prefix@0.4.0 - once_cell@1.18.0 - oorandom@11.1.3 - option-ext@0.2.0 - os_str_bytes@6.5.1 - output_vt100@0.1.3 - overload@0.1.1 - parking_lot@0.12.1 - parking_lot_core@0.9.8 - paste@1.0.13 - path-absolutize@3.1.0 - path-dedot@3.1.0 - pathdiff@0.2.1 - peg-macros@0.8.1 - peg-runtime@0.8.1 - peg@0.8.1 - pep440_rs@0.3.11 - pep508_rs@0.2.1 - percent-encoding@2.3.0 - petgraph@0.6.3 - phf@0.11.2 - phf_codegen@0.11.2 - phf_generator@0.11.2 - phf_shared@0.10.0 - phf_shared@0.11.2 - pin-project-lite@0.2.10 - plotters-backend@0.3.5 - plotters-svg@0.3.5 - plotters@0.3.5 - pmutil@0.5.3 - portable-atomic@1.3.3 - ppv-lite86@0.2.17 - precomputed-hash@0.1.1 - predicates-core@1.0.6 - predicates-tree@1.0.9 - predicates@3.0.3 - pretty_assertions@1.3.0 - proc-macro-error-attr@1.0.4 - proc-macro-error@1.0.4 - proc-macro2@1.0.63 - pyproject-toml@0.6.1 - quick-junit@0.3.2 - quick-xml@0.26.0 - quote@1.0.29 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - rayon-core@1.11.0 - rayon@1.7.0 - redox_syscall@0.2.16 - redox_syscall@0.3.5 - redox_users@0.4.3 - regex-automata@0.1.10 - regex-automata@0.3.0 - regex-syntax@0.6.29 - regex-syntax@0.7.3 - regex@1.9.0 - result-like-derive@0.4.6 - result-like@0.4.6 - ring@0.16.20 - rust-stemmers@1.2.0 - rustc-hash@1.1.0 - rustix@0.37.23 - rustix@0.38.3 - rustls-webpki@0.100.1 - rustls@0.21.2 - rustversion@1.0.13 - ryu@1.0.14 - same-file@1.0.6 - schemars@0.8.12 - schemars_derive@0.8.12 - scoped-tls@1.0.1 - scopeguard@1.1.0 - sct@0.7.0 - semver@1.0.17 - serde-wasm-bindgen@0.5.0 - serde@1.0.166 - serde_derive@1.0.166 - serde_derive_internals@0.26.0 - serde_json@1.0.100 - serde_spanned@0.6.3 - serde_test@1.0.176 - serde_with@3.0.0 - serde_with_macros@3.0.0 - sharded-slab@0.1.4 - shellexpand@3.1.0 - shlex@1.1.0 - similar@2.2.1 - siphasher@0.3.10 - smallvec@1.10.0 - spin@0.5.2 - static_assertions@1.1.0 - string_cache@0.8.7 - strsim@0.10.0 - strum@0.24.1 - strum_macros@0.24.3 - syn-ext@0.4.0 - syn@1.0.109 - syn@2.0.23 - tempfile@3.6.0 - term@0.7.0 - termcolor@1.2.0 - terminfo@0.8.0 - termtree@0.4.1 - test-case-core@3.1.0 - test-case-macros@3.1.0 - test-case@3.1.0 - thiserror-impl@1.0.43 - thiserror@1.0.43 - thread_local@1.1.7 - tikv-jemalloc-sys@0.5.3+5.3.0-patched - tikv-jemallocator@0.5.0 - time-core@0.1.1 - time-macros@0.2.9 - time@0.1.45 - time@0.3.22 - tiny-keccak@2.0.2 - tinytemplate@1.2.1 - tinyvec@1.6.0 - tinyvec_macros@0.1.1 - toml@0.7.5 - toml_datetime@0.6.3 - toml_edit@0.19.11 - tracing-attributes@0.1.26 - tracing-core@0.1.31 - tracing-indicatif@0.3.4 - tracing-log@0.1.3 - tracing-subscriber@0.3.17 - tracing@0.1.37 - typed-arena@2.0.2 - unic-char-property@0.9.0 - unic-char-range@0.9.0 - unic-common@0.9.0 - unic-emoji-char@0.9.0 - unic-ucd-category@0.9.0 - unic-ucd-ident@0.9.0 - unic-ucd-version@0.9.0 - unicode-bidi@0.3.13 - unicode-ident@1.0.10 - unicode-normalization@0.1.22 - unicode-width@0.1.10 - unicode-xid@0.2.4 - untrusted@0.7.1 - ureq@2.7.1 - url@2.4.0 - utf8parse@0.2.1 - uuid@1.4.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 - wait-timeout@0.2.0 - walkdir@2.3.3 - wasi@0.10.0+wasi-snapshot-preview1 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.87 - wasm-bindgen-futures@0.4.37 - wasm-bindgen-macro-support@0.2.87 - wasm-bindgen-macro@0.2.87 - wasm-bindgen-shared@0.2.87 - wasm-bindgen-test-macro@0.3.37 - wasm-bindgen-test@0.3.37 - wasm-bindgen@0.2.87 - web-sys@0.3.64 - webpki-roots@0.23.1 - which@4.4.0 - wild@2.1.0 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.5 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-sys@0.45.0 - windows-sys@0.48.0 - windows-targets@0.42.2 - windows-targets@0.48.1 - windows@0.48.0 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.0 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.0 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.0 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.0 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.0 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.0 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.0 - winnow@0.4.7 - wsl@0.1.0 - yaml-rust@0.4.5 - yansi-term@0.1.2 - yansi@0.5.1 -" - -declare -A GIT_CRATES=( - [libcst]='https://github.com/Instagram/LibCST;3cacca1a1029f05707e50703b49fe3dd860aa839;LibCST-%commit%/native/libcst' - [libcst_derive]='https://github.com/Instagram/LibCST;3cacca1a1029f05707e50703b49fe3dd860aa839;LibCST-%commit%/native/libcst_derive' - [unicode_names2]='https://github.com/youknowone/unicode_names2;4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde;unicode_names2-%commit%' -) - -inherit distutils-r1 cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://beta.ruff.rs/docs - https://github.com/charliermarsh/ruff -" - -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/charliermarsh/ruff/archive/refs/tags/v${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 -" -SLOT="0" -KEYWORDS="~amd64" - -BDEPEND=" - dev-util/patchelf - >=virtual/rust-1.71 -" - -QA_FLAGS_IGNORED="usr/bin/.* usr/lib.*/libruff.*.so" - -#RESTRICT="test" - -DOCS=( - BREAKING_CHANGES.md - CODE_OF_CONDUCT.md - CONTRIBUTING.md - README.md -) - -src_prepare() { - sed -r 's:(strip[[:space:]]*=[[:space:]]*)true:\1false:' \ - -i pyproject.toml || die - - [[ -n ${PATCHES[*]} ]] && eapply "${PATCHES[@]}" - eapply_user -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - cargo_src_compile - - python_copy_sources - distutils-r1_src_configure - distutils-r1_src_compile - - local solib - for solib in $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so'); do - patchelf --set-soname "${solib##*/}" "${solib}" || die - done -} - -src_test() { - cargo_src_test -} - -# placeholder to silence QA warning, tests are in rust -python_test() { :; } - -src_install() { - distutils-r1_src_install - - local releasedir=target/$(usex 'debug' 'debug' 'release') - - dobin ${releasedir}/{ruff{,_dev},flake8-to-ruff,ruff_python_formatter} - dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') - - dodoc "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.0.283.ebuild b/dev-util/ruff/ruff-0.0.283.ebuild new file mode 100644 index 000000000000..3b058e5e6878 --- /dev/null +++ b/dev-util/ruff/ruff-0.0.283.ebuild @@ -0,0 +1,452 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=maturin + +CRATES=" + Inflector@0.11.4 + adler@1.0.2 + aho-corasick@0.7.20 + aho-corasick@1.0.2 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anes@0.1.6 + annotate-snippets@0.6.1 + annotate-snippets@0.9.1 + anstream@0.3.2 + anstyle-parse@0.2.1 + anstyle-query@1.0.0 + anstyle-wincon@1.0.1 + anstyle@1.0.1 + anyhow@1.0.71 + argfile@0.1.5 + arrayvec@0.7.4 + ascii-canvas@3.0.0 + assert_cmd@2.0.11 + autocfg@1.1.0 + base64@0.21.2 + bincode@1.3.3 + bit-set@0.5.3 + bit-vec@0.6.3 + bitflags@1.3.2 + bitflags@2.3.3 + bstr@1.6.0 + bumpalo@3.13.0 + cachedir@0.3.0 + cast@0.3.0 + cc@1.0.79 + cfg-if@1.0.0 + chic@1.2.2 + chrono@0.4.26 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + ciborium@0.2.1 + clap@4.3.11 + clap_builder@4.3.11 + clap_complete@4.3.2 + clap_complete_command@0.5.1 + clap_complete_fig@4.3.1 + clap_complete_nushell@0.1.11 + clap_derive@4.3.2 + clap_lex@0.5.0 + clearscreen@2.0.1 + colorchoice@1.0.0 + colored@2.0.4 + configparser@3.0.2 + console@0.15.7 + console_error_panic_hook@0.1.7 + console_log@1.0.0 + core-foundation-sys@0.8.4 + countme@3.0.1 + crc32fast@1.3.2 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-channel@0.5.8 + crossbeam-deque@0.8.3 + crossbeam-epoch@0.9.15 + crossbeam-utils@0.8.16 + crunchy@0.2.2 + ctor@0.1.26 + darling@0.20.1 + darling_core@0.20.1 + darling_macro@0.20.1 + diff@0.1.13 + difflib@0.4.0 + dirs-next@2.0.0 + dirs-sys-next@0.1.2 + dirs-sys@0.3.7 + dirs-sys@0.4.1 + dirs@4.0.0 + dirs@5.0.1 + doc-comment@0.3.3 + drop_bomb@0.1.5 + dyn-clone@1.0.11 + either@1.8.1 + ena@0.14.2 + encode_unicode@0.3.6 + env_logger@0.10.0 + equivalent@1.0.0 + errno-dragonfly@0.1.2 + errno@0.3.1 + fastrand@1.9.0 + fern@0.6.2 + filetime@0.2.21 + fixedbitset@0.4.2 + flate2@1.0.26 + fnv@1.0.7 + form_urlencoded@1.2.0 + fs-err@2.9.0 + fsevent-sys@4.1.0 + getrandom@0.2.10 + glob@0.3.1 + globset@0.4.10 + half@1.8.2 + hashbrown@0.12.3 + hashbrown@0.14.0 + heck@0.4.1 + hermit-abi@0.3.2 + hex@0.4.3 + hexf-parse@0.2.1 + humantime@2.1.0 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.57 + ident_case@1.0.1 + idna@0.4.0 + ignore@0.4.20 + imperative@1.0.4 + indexmap@1.9.3 + indexmap@2.0.0 + indicatif@0.17.5 + indoc@2.0.3 + inotify-sys@0.1.5 + inotify@0.9.6 + insta@1.31.0 + instant@0.1.12 + io-lifetimes@1.0.11 + is-macro@0.2.2 + is-terminal@0.4.8 + itertools@0.10.5 + itoa@1.0.8 + js-sys@0.3.64 + kqueue-sys@1.0.3 + kqueue@1.0.7 + lalrpop-util@0.20.0 + lalrpop@0.20.0 + lazy_static@1.4.0 + lexical-parse-float@0.8.5 + lexical-parse-integer@0.8.6 + lexical-util@0.8.5 + libc@0.2.147 + libmimalloc-sys@0.1.33 + linked-hash-map@0.5.6 + linux-raw-sys@0.3.8 + linux-raw-sys@0.4.3 + lock_api@0.4.10 + log@0.4.19 + matchers@0.1.0 + matches@0.1.10 + memchr@2.5.0 + memoffset@0.9.0 + mimalloc@0.1.37 + minimal-lexical@0.2.1 + miniz_oxide@0.7.1 + mio@0.8.8 + natord@1.0.9 + new_debug_unreachable@1.0.4 + nextest-workspace-hack@0.1.0 + nix@0.26.2 + nom@7.1.3 + notify@5.2.0 + nu-ansi-term@0.46.0 + num-bigint@0.4.3 + num-integer@0.1.45 + num-traits@0.2.15 + num_cpus@1.16.0 + number_prefix@0.4.0 + once_cell@1.18.0 + oorandom@11.1.3 + option-ext@0.2.0 + os_str_bytes@6.5.1 + output_vt100@0.1.3 + overload@0.1.1 + parking_lot@0.12.1 + parking_lot_core@0.9.8 + paste@1.0.13 + path-absolutize@3.1.0 + path-dedot@3.1.0 + pathdiff@0.2.1 + peg-macros@0.8.1 + peg-runtime@0.8.1 + peg@0.8.1 + pep440_rs@0.3.11 + pep508_rs@0.2.1 + percent-encoding@2.3.0 + petgraph@0.6.3 + phf@0.11.2 + phf_codegen@0.11.2 + phf_generator@0.11.2 + phf_shared@0.10.0 + phf_shared@0.11.2 + pin-project-lite@0.2.10 + plotters-backend@0.3.5 + plotters-svg@0.3.5 + plotters@0.3.5 + pmutil@0.5.3 + portable-atomic@1.3.3 + ppv-lite86@0.2.17 + precomputed-hash@0.1.1 + predicates-core@1.0.6 + predicates-tree@1.0.9 + predicates@3.0.3 + pretty_assertions@1.3.0 + proc-macro-error-attr@1.0.4 + proc-macro-error@1.0.4 + proc-macro2@1.0.63 + pyproject-toml@0.6.1 + quick-junit@0.3.2 + quick-xml@0.26.0 + quote@1.0.29 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.11.0 + rayon@1.7.0 + redox_syscall@0.2.16 + redox_syscall@0.3.5 + redox_users@0.4.3 + regex-automata@0.1.10 + regex-automata@0.3.0 + regex-syntax@0.6.29 + regex-syntax@0.7.3 + regex@1.9.0 + result-like-derive@0.4.6 + result-like@0.4.6 + ring@0.16.20 + rust-stemmers@1.2.0 + rustc-hash@1.1.0 + rustix@0.37.23 + rustix@0.38.3 + rustls-webpki@0.100.1 + rustls@0.21.2 + rustversion@1.0.13 + ryu@1.0.14 + same-file@1.0.6 + schemars@0.8.12 + schemars_derive@0.8.12 + scoped-tls@1.0.1 + scopeguard@1.1.0 + sct@0.7.0 + semver@1.0.17 + serde-wasm-bindgen@0.5.0 + serde@1.0.166 + serde_derive@1.0.166 + serde_derive_internals@0.26.0 + serde_json@1.0.100 + serde_spanned@0.6.3 + serde_test@1.0.176 + serde_with@3.0.0 + serde_with_macros@3.0.0 + sharded-slab@0.1.4 + shellexpand@3.1.0 + shlex@1.1.0 + similar@2.2.1 + siphasher@0.3.10 + smallvec@1.10.0 + spin@0.5.2 + static_assertions@1.1.0 + string_cache@0.8.7 + strsim@0.10.0 + strum@0.24.1 + strum_macros@0.24.3 + syn-ext@0.4.0 + syn@1.0.109 + syn@2.0.23 + tempfile@3.6.0 + term@0.7.0 + termcolor@1.2.0 + terminfo@0.8.0 + termtree@0.4.1 + test-case-core@3.1.0 + test-case-macros@3.1.0 + test-case@3.1.0 + thiserror-impl@1.0.43 + thiserror@1.0.43 + thread_local@1.1.7 + tikv-jemalloc-sys@0.5.3+5.3.0-patched + tikv-jemallocator@0.5.0 + time-core@0.1.1 + time-macros@0.2.9 + time@0.1.45 + time@0.3.22 + tiny-keccak@2.0.2 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.7.5 + toml_datetime@0.6.3 + toml_edit@0.19.11 + tracing-attributes@0.1.26 + tracing-core@0.1.31 + tracing-indicatif@0.3.4 + tracing-log@0.1.3 + tracing-subscriber@0.3.17 + tracing@0.1.37 + typed-arena@2.0.2 + unic-char-property@0.9.0 + unic-char-range@0.9.0 + unic-common@0.9.0 + unic-emoji-char@0.9.0 + unic-ucd-category@0.9.0 + unic-ucd-ident@0.9.0 + unic-ucd-version@0.9.0 + unicode-bidi@0.3.13 + unicode-ident@1.0.10 + unicode-normalization@0.1.22 + unicode-width@0.1.10 + unicode-xid@0.2.4 + untrusted@0.7.1 + ureq@2.7.1 + url@2.4.0 + utf8parse@0.2.1 + uuid@1.4.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 + wait-timeout@0.2.0 + walkdir@2.3.3 + wasi@0.10.0+wasi-snapshot-preview1 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.87 + wasm-bindgen-futures@0.4.37 + wasm-bindgen-macro-support@0.2.87 + wasm-bindgen-macro@0.2.87 + wasm-bindgen-shared@0.2.87 + wasm-bindgen-test-macro@0.3.37 + wasm-bindgen-test@0.3.37 + wasm-bindgen@0.2.87 + web-sys@0.3.64 + webpki-roots@0.23.1 + which@4.4.0 + wild@2.1.0 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.45.0 + windows-sys@0.48.0 + windows-targets@0.42.2 + windows-targets@0.48.1 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.0 + winnow@0.4.7 + wsl@0.1.0 + yaml-rust@0.4.5 + yansi-term@0.1.2 + yansi@0.5.1 +" + +declare -A GIT_CRATES=( + [libcst]='https://github.com/Instagram/LibCST;3cacca1a1029f05707e50703b49fe3dd860aa839;LibCST-%commit%/native/libcst' + [libcst_derive]='https://github.com/Instagram/LibCST;3cacca1a1029f05707e50703b49fe3dd860aa839;LibCST-%commit%/native/libcst_derive' + [unicode_names2]='https://github.com/youknowone/unicode_names2;4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde;unicode_names2-%commit%' +) + +inherit distutils-r1 cargo + +DESCRIPTION="An extremely fast Python linter, written in Rust" +HOMEPAGE=" + https://beta.ruff.rs/docs + https://github.com/charliermarsh/ruff +" + +SRC_URI=" + ${CARGO_CRATE_URIS} + https://github.com/charliermarsh/ruff/archive/refs/tags/v${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 +" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + dev-util/patchelf + >=virtual/rust-1.71 +" + +QA_FLAGS_IGNORED="usr/bin/.* usr/lib.*/libruff.*.so" + +#RESTRICT="test" + +DOCS=( + BREAKING_CHANGES.md + CODE_OF_CONDUCT.md + CONTRIBUTING.md + README.md +) + +src_prepare() { + sed -r 's:(strip[[:space:]]*=[[:space:]]*)true:\1false:' \ + -i pyproject.toml || die + + [[ -n ${PATCHES[*]} ]] && eapply "${PATCHES[@]}" + eapply_user +} + +src_configure() { + export RUSTFLAGS="${RUSTFLAGS}" + cargo_src_configure +} + +src_compile() { + cargo_src_compile + + python_copy_sources + distutils-r1_src_configure + distutils-r1_src_compile + + local solib + for solib in $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so'); do + patchelf --set-soname "${solib##*/}" "${solib}" || die + done +} + +src_test() { + cargo_src_test +} + +# placeholder to silence QA warning, tests are in rust +python_test() { :; } + +src_install() { + distutils-r1_src_install + + local releasedir=target/$(usex 'debug' 'debug' 'release') + + dobin ${releasedir}/{ruff{,_dev},flake8-to-ruff,ruff_python_formatter} + dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') + + dodoc "${DOCS[@]}" +} -- cgit v1.2.3