From b9d13f23ed10bb803607f6ef67f0df2f078aa70f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 15 Jan 2024 13:18:00 +0000 Subject: gentoo auto-resync : 15:01:2024 - 13:18:00 --- dev-util/ruff/Manifest | 2 +- dev-util/ruff/ruff-0.1.13-r1.ebuild | 472 +++++++++++++++++++++++++++++++++++ dev-util/ruff/ruff-0.1.13.ebuild | 473 ------------------------------------ 3 files changed, 473 insertions(+), 474 deletions(-) create mode 100644 dev-util/ruff/ruff-0.1.13-r1.ebuild delete mode 100644 dev-util/ruff/ruff-0.1.13.ebuild (limited to 'dev-util/ruff') diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 9a4c6ac61145..bfa10d8cff06 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -361,5 +361,5 @@ DIST yansi-0.5.1.crate 16525 BLAKE2B 3b5a93b98293daae72f53bf3f13bfc05feba8d5b279 DIST yansi-term-0.1.2.crate 14342 BLAKE2B 31a1651bb43644cf880d591a22fe9d899ab0acbc744ced2952f120b4abfa0c42f6513089e34deaff1a453f3a26f9fb78442f016baa9524ccac9b21e4a7ed6ad6 SHA512 ba720e36487871427aaa7139e8aeaf5b2b3f2d1df4798d7e238e323dc3d3220f12202e223f74339201be3466848c372dc1712e1842e5cd6bd51c3dedf76c9ff6 DIST zerocopy-0.7.30.crate 149425 BLAKE2B eb11066f333429b5bf6126b0b02d02e7b9d663a7374bc274a755ff15e05a996e179b198852f542934bbec7dfc70de63ce6d46956f08d74e8eb0e29feeb7cbd6f SHA512 f7de0b18e4c9b16bfa88488bb22917c6aedb8b910fe2fe0913797af61c4dc91a017374da0e02e1a3b2f53ae0888231d302675109f3bcc86624ea6fee78545f23 DIST zerocopy-derive-0.7.30.crate 533513 BLAKE2B cdabeac3b0c03631f88cb3d956d8ea0ac990827a3fd5e91e31073bf945f0bc7562f40834c61820f919c8257db0a1d1141920a1b614c27490f0065b2244f5e3bf SHA512 41511ba6ba2ce39d31b849dd3e255004e1c0212feb6eb2311bd78ff95f4c372123e14da867dcc48c510efb4fe26fad87f0a561c6a929a488f7776b9a598e92c0 -EBUILD ruff-0.1.13.ebuild 9052 BLAKE2B caea0b9dbeb4d73d26aa2c554f65edb841e3fcf9abc46435dae0e075c77072f19de69008b43d7391380e202b03a54624ea8022de4862764e9fb72fe77ca21674 SHA512 5c8e18df074306a1c2357a590a4d90e2ccd709fb1c0b0e850292917c1493d9dfdcadf4d07fb34b1c005bb707a4ad3318c2f518d5ce61b17d5ac8b9896c551442 +EBUILD ruff-0.1.13-r1.ebuild 9034 BLAKE2B 44a32d7ac644c95e3828269aa651299f6a0b3dae3f92dc59f7c52a9b4f059690792acce5bfbf14d878b2df6fee1e7e23c3a673d825c450678d56dbf30ffe2d5d SHA512 2f9d411b422a5243747fb69f3e776201f8e13e611cca0547c84ab1ad22d698e162ced5c9b72448d70c561109a8dfc1c0bcc2480c2741e6b9d2d855d09273b26b MISC metadata.xml 375 BLAKE2B 46856b904e322f25ebb96268418206fb70b76f22751c5f8c12d0b3fb51a11b91518c42313d8a9f2fbd71dd5a3ca359772f54829a7858148c5f5f03f44fe1dad4 SHA512 ad24b0cafc7adc414a0da36f5b518eacbba3069ac15484504ce063916133e7c15945c04c7c6886e30c75010300598876ab498d5d44c48f66c5ed252f3fd2f36f diff --git a/dev-util/ruff/ruff-0.1.13-r1.ebuild b/dev-util/ruff/ruff-0.1.13-r1.ebuild new file mode 100644 index 000000000000..b8c9ece18bf0 --- /dev/null +++ b/dev-util/ruff/ruff-0.1.13-r1.ebuild @@ -0,0 +1,472 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.1 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=maturin + +CRATES=" + Inflector@0.11.4 + adler@1.0.2 + ahash@0.8.6 + aho-corasick@1.1.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.2 + anstream@0.6.4 + anstyle-parse@0.2.1 + anstyle-query@1.0.0 + anstyle-wincon@3.0.1 + anstyle@1.0.2 + anyhow@1.0.79 + argfile@0.1.6 + arrayvec@0.7.4 + ascii-canvas@3.0.0 + assert_cmd@2.0.12 + autocfg@1.1.0 + base64@0.21.3 + bincode@1.3.3 + bit-set@0.5.3 + bit-vec@0.6.3 + bitflags@1.3.2 + bitflags@2.4.1 + bstr@1.6.2 + bumpalo@3.13.0 + cachedir@0.3.1 + cast@0.3.0 + cc@1.0.83 + cfg-if@1.0.0 + chic@1.2.2 + chrono@0.4.31 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + ciborium@0.2.1 + clap@4.4.13 + clap_builder@4.4.12 + clap_complete@4.4.0 + clap_complete_command@0.5.1 + clap_complete_fig@4.4.0 + clap_complete_nushell@0.1.11 + clap_derive@4.4.7 + clap_lex@0.6.0 + clearscreen@2.0.1 + codspeed-criterion-compat@2.3.3 + codspeed@2.3.3 + colorchoice@1.0.0 + colored@2.1.0 + 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 + darling@0.20.3 + darling_core@0.20.3 + darling_macro@0.20.3 + 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.13 + either@1.9.0 + ena@0.14.2 + encode_unicode@0.3.6 + env_logger@0.10.1 + equivalent@1.0.1 + errno@0.3.8 + fastrand@2.0.0 + fern@0.6.2 + filetime@0.2.23 + fixedbitset@0.4.2 + flate2@1.0.27 + 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.10 + glob@0.3.1 + globset@0.4.14 + half@1.8.2 + hashbrown@0.12.3 + hashbrown@0.14.2 + heck@0.4.1 + hermit-abi@0.3.2 + 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.5.0 + ignore@0.4.21 + imara-diff@0.1.5 + imperative@1.0.5 + indexmap@2.1.0 + indicatif@0.17.7 + indoc@2.0.4 + inotify-sys@0.1.5 + inotify@0.9.6 + insta-cmd@0.4.0 + insta@1.34.0 + instant@0.1.12 + is-docker@0.2.0 + is-macro@0.3.4 + is-terminal@0.4.9 + is-wsl@0.4.0 + itertools@0.10.5 + itertools@0.12.0 + itoa@1.0.9 + js-sys@0.3.66 + kqueue-sys@1.0.4 + kqueue@1.0.8 + 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.152 + libcst@1.1.0 + libcst_derive@1.1.0 + libmimalloc-sys@0.1.35 + linked-hash-map@0.5.6 + linux-raw-sys@0.4.12 + lock_api@0.4.10 + log@0.4.20 + matchers@0.1.0 + matches@0.1.10 + memchr@2.6.4 + memoffset@0.9.0 + mimalloc@0.1.39 + 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.4 + nom@7.1.3 + notify@6.1.1 + nu-ansi-term@0.46.0 + num-traits@0.2.16 + number_prefix@0.4.0 + once_cell@1.19.0 + oorandom@11.1.3 + option-ext@0.2.0 + os_str_bytes@6.5.1 + overload@0.1.1 + parking_lot@0.12.1 + parking_lot_core@0.9.8 + paste@1.0.14 + path-absolutize@3.1.1 + path-dedot@3.1.1 + pathdiff@0.2.1 + peg-macros@0.8.1 + peg-runtime@0.8.1 + peg@0.8.1 + pep440_rs@0.3.12 + pep440_rs@0.4.0 + pep508_rs@0.2.1 + percent-encoding@2.3.1 + petgraph@0.6.4 + 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.13 + pmutil@0.6.1 + portable-atomic@1.4.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.4.0 + proc-macro-error-attr@1.0.4 + proc-macro-error@1.0.4 + proc-macro2@1.0.76 + pyproject-toml@0.8.1 + quick-junit@0.3.5 + quick-xml@0.31.0 + quote@1.0.35 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.0 + rayon@1.8.0 + redox_syscall@0.2.16 + redox_syscall@0.3.5 + redox_syscall@0.4.1 + redox_users@0.4.3 + regex-automata@0.1.10 + regex-automata@0.3.9 + regex-automata@0.4.3 + regex-syntax@0.6.29 + regex-syntax@0.7.5 + regex-syntax@0.8.2 + regex@1.10.2 + result-like-derive@0.5.0 + result-like@0.5.0 + ring@0.16.20 + rust-stemmers@1.2.0 + rustc-hash@1.1.0 + rustix@0.38.28 + rustls-webpki@0.101.4 + rustls@0.21.7 + rustversion@1.0.14 + ryu@1.0.15 + same-file@1.0.6 + schemars@0.8.16 + schemars_derive@0.8.16 + scoped-tls@1.0.1 + scopeguard@1.2.0 + sct@0.7.0 + seahash@4.1.0 + semver@1.0.20 + serde-wasm-bindgen@0.6.3 + serde@1.0.195 + serde_derive@1.0.195 + serde_derive_internals@0.26.0 + serde_json@1.0.109 + serde_spanned@0.6.5 + serde_test@1.0.176 + serde_with@3.4.0 + serde_with_macros@3.4.0 + sharded-slab@0.1.4 + shellexpand@3.1.0 + shlex@1.2.0 + similar@2.3.0 + siphasher@0.3.11 + smallvec@1.11.2 + spin@0.5.2 + static_assertions@1.1.0 + string_cache@0.8.7 + strip-ansi-escapes@0.2.0 + strsim@0.10.0 + strum@0.25.0 + strum_macros@0.25.3 + syn@1.0.109 + syn@2.0.48 + tempfile@3.9.0 + term@0.7.0 + termcolor@1.2.0 + terminfo@0.8.0 + termtree@0.4.1 + test-case-core@3.2.1 + test-case-macros@3.2.1 + test-case@3.3.1 + thiserror-impl@1.0.51 + thiserror@1.0.51 + thread_local@1.1.7 + tikv-jemalloc-sys@0.5.4+5.3.0-patched + tikv-jemallocator@0.5.4 + time-core@0.1.0 + time@0.3.20 + tiny-keccak@2.0.2 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.8.8 + toml_datetime@0.6.5 + toml_edit@0.21.0 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + tracing-indicatif@0.3.6 + tracing-log@0.2.0 + tracing-subscriber@0.3.18 + 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.13 + unicode-ident@1.0.12 + unicode-normalization@0.1.22 + unicode-width@0.1.11 + unicode-xid@0.2.4 + unicode_names2@1.2.1 + unicode_names2_generator@1.2.1 + untrusted@0.7.1 + ureq@2.9.1 + url@2.5.0 + utf8parse@0.2.1 + uuid-macro-internal@1.6.1 + uuid@1.6.1 + 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.4.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.89 + wasm-bindgen-futures@0.4.39 + wasm-bindgen-macro-support@0.2.89 + wasm-bindgen-macro@0.2.89 + wasm-bindgen-shared@0.2.89 + wasm-bindgen-test-macro@0.3.39 + wasm-bindgen-test@0.3.39 + wasm-bindgen@0.2.89 + web-sys@0.3.64 + webpki-roots@0.25.2 + which@4.4.0 + wild@2.2.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-sys@0.52.0 + windows-targets@0.42.2 + windows-targets@0.48.5 + windows-targets@0.52.0 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.0 + winnow@0.5.15 + yaml-rust@0.4.5 + yansi-term@0.1.2 + yansi@0.5.1 + zerocopy-derive@0.7.30 + zerocopy@0.7.30 +" + +inherit distutils-r1 cargo + +DESCRIPTION="An extremely fast Python linter, written in Rust" +HOMEPAGE=" + https://docs.astral.sh/ruff + 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" + +BDEPEND=" + dev-util/patchelf + >=virtual/rust-1.73 +" + +# 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" + +# libcst +LICENSE+=" + MIT PSF-2 Apache-2.0 +" + +# libcst_derive +LICENSE+=" + MIT PSF-2 Apache-2.0 +" + +# ring +LICENSE+=" + ISC SSLeay openssl MIT +" + +QA_FLAGS_IGNORED="usr/bin/.* usr/lib.*/libruff.*.so" + +DOCS=( + BREAKING_CHANGES.md + CODE_OF_CONDUCT.md + CONTRIBUTING.md + README.md + assets + docs +) + +src_prepare() { + sed -r 's:(strip[[:space:]]*=[[:space:]]*)true:\1false:' \ + -i pyproject.toml || die + + [[ -n ${PATCHES[*]} ]] && eapply "${PATCHES[@]}" + eapply_user + + rm -rf docs/{.overrides,gitignore} || die +} + +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,python_formatter,shrinking}} + dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') + + dodoc -r "${DOCS[@]}" +} diff --git a/dev-util/ruff/ruff-0.1.13.ebuild b/dev-util/ruff/ruff-0.1.13.ebuild deleted file mode 100644 index a94de14b8431..000000000000 --- a/dev-util/ruff/ruff-0.1.13.ebuild +++ /dev/null @@ -1,473 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.1 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..12} ) -DISTUTILS_USE_PEP517=maturin - -CRATES=" - Inflector@0.11.4 - adler@1.0.2 - ahash@0.8.6 - aho-corasick@1.1.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.2 - anstream@0.6.4 - anstyle-parse@0.2.1 - anstyle-query@1.0.0 - anstyle-wincon@3.0.1 - anstyle@1.0.2 - anyhow@1.0.79 - argfile@0.1.6 - arrayvec@0.7.4 - ascii-canvas@3.0.0 - assert_cmd@2.0.12 - autocfg@1.1.0 - base64@0.21.3 - bincode@1.3.3 - bit-set@0.5.3 - bit-vec@0.6.3 - bitflags@1.3.2 - bitflags@2.4.1 - bstr@1.6.2 - bumpalo@3.13.0 - cachedir@0.3.1 - cast@0.3.0 - cc@1.0.83 - cfg-if@1.0.0 - chic@1.2.2 - chrono@0.4.31 - ciborium-io@0.2.1 - ciborium-ll@0.2.1 - ciborium@0.2.1 - clap@4.4.13 - clap_builder@4.4.12 - clap_complete@4.4.0 - clap_complete_command@0.5.1 - clap_complete_fig@4.4.0 - clap_complete_nushell@0.1.11 - clap_derive@4.4.7 - clap_lex@0.6.0 - clearscreen@2.0.1 - codspeed-criterion-compat@2.3.3 - codspeed@2.3.3 - colorchoice@1.0.0 - colored@2.1.0 - 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 - darling@0.20.3 - darling_core@0.20.3 - darling_macro@0.20.3 - 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.13 - either@1.9.0 - ena@0.14.2 - encode_unicode@0.3.6 - env_logger@0.10.1 - equivalent@1.0.1 - errno@0.3.8 - fastrand@2.0.0 - fern@0.6.2 - filetime@0.2.23 - fixedbitset@0.4.2 - flate2@1.0.27 - 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.10 - glob@0.3.1 - globset@0.4.14 - half@1.8.2 - hashbrown@0.12.3 - hashbrown@0.14.2 - heck@0.4.1 - hermit-abi@0.3.2 - 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.5.0 - ignore@0.4.21 - imara-diff@0.1.5 - imperative@1.0.5 - indexmap@2.1.0 - indicatif@0.17.7 - indoc@2.0.4 - inotify-sys@0.1.5 - inotify@0.9.6 - insta-cmd@0.4.0 - insta@1.34.0 - instant@0.1.12 - is-docker@0.2.0 - is-macro@0.3.4 - is-terminal@0.4.9 - is-wsl@0.4.0 - itertools@0.10.5 - itertools@0.12.0 - itoa@1.0.9 - js-sys@0.3.66 - kqueue-sys@1.0.4 - kqueue@1.0.8 - 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.152 - libcst@1.1.0 - libcst_derive@1.1.0 - libmimalloc-sys@0.1.35 - linked-hash-map@0.5.6 - linux-raw-sys@0.4.12 - lock_api@0.4.10 - log@0.4.20 - matchers@0.1.0 - matches@0.1.10 - memchr@2.6.4 - memoffset@0.9.0 - mimalloc@0.1.39 - 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.4 - nom@7.1.3 - notify@6.1.1 - nu-ansi-term@0.46.0 - num-traits@0.2.16 - number_prefix@0.4.0 - once_cell@1.19.0 - oorandom@11.1.3 - option-ext@0.2.0 - os_str_bytes@6.5.1 - overload@0.1.1 - parking_lot@0.12.1 - parking_lot_core@0.9.8 - paste@1.0.14 - path-absolutize@3.1.1 - path-dedot@3.1.1 - pathdiff@0.2.1 - peg-macros@0.8.1 - peg-runtime@0.8.1 - peg@0.8.1 - pep440_rs@0.3.12 - pep440_rs@0.4.0 - pep508_rs@0.2.1 - percent-encoding@2.3.1 - petgraph@0.6.4 - 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.13 - pmutil@0.6.1 - portable-atomic@1.4.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.4.0 - proc-macro-error-attr@1.0.4 - proc-macro-error@1.0.4 - proc-macro2@1.0.76 - pyproject-toml@0.8.1 - quick-junit@0.3.5 - quick-xml@0.31.0 - quote@1.0.35 - rand@0.8.5 - rand_chacha@0.3.1 - rand_core@0.6.4 - rayon-core@1.12.0 - rayon@1.8.0 - redox_syscall@0.2.16 - redox_syscall@0.3.5 - redox_syscall@0.4.1 - redox_users@0.4.3 - regex-automata@0.1.10 - regex-automata@0.3.9 - regex-automata@0.4.3 - regex-syntax@0.6.29 - regex-syntax@0.7.5 - regex-syntax@0.8.2 - regex@1.10.2 - result-like-derive@0.5.0 - result-like@0.5.0 - ring@0.16.20 - rust-stemmers@1.2.0 - rustc-hash@1.1.0 - rustix@0.38.28 - rustls-webpki@0.101.4 - rustls@0.21.7 - rustversion@1.0.14 - ryu@1.0.15 - same-file@1.0.6 - schemars@0.8.16 - schemars_derive@0.8.16 - scoped-tls@1.0.1 - scopeguard@1.2.0 - sct@0.7.0 - seahash@4.1.0 - semver@1.0.20 - serde-wasm-bindgen@0.6.3 - serde@1.0.195 - serde_derive@1.0.195 - serde_derive_internals@0.26.0 - serde_json@1.0.109 - serde_spanned@0.6.5 - serde_test@1.0.176 - serde_with@3.4.0 - serde_with_macros@3.4.0 - sharded-slab@0.1.4 - shellexpand@3.1.0 - shlex@1.2.0 - similar@2.3.0 - siphasher@0.3.11 - smallvec@1.11.2 - spin@0.5.2 - static_assertions@1.1.0 - string_cache@0.8.7 - strip-ansi-escapes@0.2.0 - strsim@0.10.0 - strum@0.25.0 - strum_macros@0.25.3 - syn@1.0.109 - syn@2.0.48 - tempfile@3.9.0 - term@0.7.0 - termcolor@1.2.0 - terminfo@0.8.0 - termtree@0.4.1 - test-case-core@3.2.1 - test-case-macros@3.2.1 - test-case@3.3.1 - thiserror-impl@1.0.51 - thiserror@1.0.51 - thread_local@1.1.7 - tikv-jemalloc-sys@0.5.4+5.3.0-patched - tikv-jemallocator@0.5.4 - time-core@0.1.0 - time@0.3.20 - tiny-keccak@2.0.2 - tinytemplate@1.2.1 - tinyvec@1.6.0 - tinyvec_macros@0.1.1 - toml@0.8.8 - toml_datetime@0.6.5 - toml_edit@0.21.0 - tracing-attributes@0.1.27 - tracing-core@0.1.32 - tracing-indicatif@0.3.6 - tracing-log@0.2.0 - tracing-subscriber@0.3.18 - 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.13 - unicode-ident@1.0.12 - unicode-normalization@0.1.22 - unicode-width@0.1.11 - unicode-xid@0.2.4 - unicode_names2@1.2.1 - unicode_names2_generator@1.2.1 - untrusted@0.7.1 - ureq@2.9.1 - url@2.5.0 - utf8parse@0.2.1 - uuid-macro-internal@1.6.1 - uuid@1.6.1 - 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.4.0 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.89 - wasm-bindgen-futures@0.4.39 - wasm-bindgen-macro-support@0.2.89 - wasm-bindgen-macro@0.2.89 - wasm-bindgen-shared@0.2.89 - wasm-bindgen-test-macro@0.3.39 - wasm-bindgen-test@0.3.39 - wasm-bindgen@0.2.89 - web-sys@0.3.64 - webpki-roots@0.25.2 - which@4.4.0 - wild@2.2.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-sys@0.52.0 - windows-targets@0.42.2 - windows-targets@0.48.5 - windows-targets@0.52.0 - windows@0.48.0 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_gnullvm@0.52.0 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.5 - windows_aarch64_msvc@0.52.0 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.5 - windows_i686_gnu@0.52.0 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.5 - windows_i686_msvc@0.52.0 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnu@0.52.0 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_gnullvm@0.52.0 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.5 - windows_x86_64_msvc@0.52.0 - winnow@0.5.15 - yaml-rust@0.4.5 - yansi-term@0.1.2 - yansi@0.5.1 - zerocopy-derive@0.7.30 - zerocopy@0.7.30 -" - -inherit distutils-r1 cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff - 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" - -BDEPEND=" - dev-util/patchelf - >=virtual/rust-1.73 -" - -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD-2 BSD-2-with-views BSD CC0-1.0 ISC MIT MPL-2.0 - Unicode-DFS-2016 WTFPL-2 -" -SLOT="0" -KEYWORDS="~amd64" - -# libcst -LICENSE+=" - MIT PSF-2 Apache-2.0 -" - -# libcst_derive -LICENSE+=" - MIT PSF-2 Apache-2.0 -" - -# ring -LICENSE+=" - ISC SSLeay openssl MIT -" - -QA_FLAGS_IGNORED="usr/bin/.* usr/lib.*/libruff.*.so" - -DOCS=( - BREAKING_CHANGES.md - CODE_OF_CONDUCT.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - sed -r 's:(strip[[:space:]]*=[[:space:]]*)true:\1false:' \ - -i pyproject.toml || die - - [[ -n ${PATCHES[*]} ]] && eapply "${PATCHES[@]}" - eapply_user - - rm -rf docs/{.overrides,gitignore} || die -} - -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,python_formatter,shrinking}} - dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') - - dodoc -r "${DOCS[@]}" -} -- cgit v1.2.3