From b0b85e141f6a9a74d9d6bdce989a626ff5e92523 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Mar 2023 00:48:54 +0000 Subject: gentoo auto-resync : 25:03:2023 - 00:48:54 --- dev-util/ruff/Manifest | 4 +- dev-util/ruff/ruff-0.0.258.ebuild | 423 -------------------------------------- dev-util/ruff/ruff-0.0.259.ebuild | 423 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 425 insertions(+), 425 deletions(-) delete mode 100644 dev-util/ruff/ruff-0.0.258.ebuild create mode 100644 dev-util/ruff/ruff-0.0.259.ebuild (limited to 'dev-util/ruff') diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index c45345ce0938..c5b5fbed5551 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -207,7 +207,7 @@ DIST remove_dir_all-0.5.3.crate 9184 BLAKE2B ab7ef94e0230ddc9b363f038254a180881b 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.258.gh.tar.gz 1188694 BLAKE2B e8ac5deafc881a519d61a156575ac1b65a475f8e95830df186f21996f18a0249ccbe20139d300126fac4a29fd975bcf7b8764b0dc4abf16c077ad4587f1924fb SHA512 f94955fecd89b912b70f393ddc55b36feba22f22597bb061812261dab6ad7375775ed91acd196107bc20ae5a7d28764dd40cb67382171964f1912b9145318268 +DIST ruff-0.0.259.gh.tar.gz 1189571 BLAKE2B 904438577139c2706c71f1601ea8ad0503e9048f948746e6179880ef267e88c705bc205f1b8be09f822395257150a674f2e504fbe894445913d1ccf153d3b3d6 SHA512 7042db90f69bd4b7e1cb26cc55559cc046700947ebef96a726b541d9e9eb550de711775a0f5eee3610142c4a657fe007d6107146d9d040096eb2d97fe1142678 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.36.8.crate 290808 BLAKE2B 62da252100523d282d6d8d2bf141f6e59f0dafcebb0a1025b6bddb78c2a100643d63edcaea4cf64ce68696219ef52706f6b49f6a7b22f99c544866643952f98b SHA512 6fd6ca326feac93145ddbf6eba65c8eff731c9a9e7ff3a6724c19e5c8bbb05236f526df27c4c916e855e7e75e65914470af2d9c98e1571692991a7bd811b5bb0 @@ -326,5 +326,5 @@ DIST winnow-0.3.3.crate 176347 BLAKE2B 091a68048257d8dd931411ac14eadfb4dac942f8c 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.258.ebuild 9249 BLAKE2B a997b1fa2278447ec2fec930607b40be2dd64553d661e10db8c26a82cc44cc605e464e5f5b8360eca50ab52f951ad5a010e7538a665394012a506272d6fd6ade SHA512 fa1469d325bf75a945ee4635e2bbcc0f71ffe0ff80eef691d89a26d8a45604d917e80c5fe824e8bfe0e8d84a3f78e948e331e53535d668fc50b27e9143d7f754 +EBUILD ruff-0.0.259.ebuild 9253 BLAKE2B 270aaa0f07c2fe192a881265bf40fede1a83631899226f19f9e8f74d92fc29614fdaf95cbb55f246a868aaa3fab24b9ad336137a14643e2b2e252dca9b435969 SHA512 e51f4600ad9011717808a851d6cd520de383406e5681c111a6ad7b153e97ab179f25634d174a7e56904abc9c1ffb72b27737d8a6c9c0fff399f133941ad7e80c MISC metadata.xml 375 BLAKE2B 46856b904e322f25ebb96268418206fb70b76f22751c5f8c12d0b3fb51a11b91518c42313d8a9f2fbd71dd5a3ca359772f54829a7858148c5f5f03f44fe1dad4 SHA512 ad24b0cafc7adc414a0da36f5b518eacbba3069ac15484504ce063916133e7c15945c04c7c6886e30c75010300598876ab498d5d44c48f66c5ed252f3fd2f36f diff --git a/dev-util/ruff/ruff-0.0.258.ebuild b/dev-util/ruff/ruff-0.0.258.ebuild deleted file mode 100644 index 4999c4c519cb..000000000000 --- a/dev-util/ruff/ruff-0.0.258.ebuild +++ /dev/null @@ -1,423 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CRATES=" - Inflector-0.11.4 - adler-1.0.2 - ahash-0.7.6 - aho-corasick-0.7.20 - android_system_properties-0.1.5 - anes-0.1.6 - annotate-snippets-0.6.1 - annotate-snippets-0.9.1 - anyhow-1.0.69 - ascii-1.1.0 - ascii-canvas-3.0.0 - assert_cmd-2.0.8 - atty-0.2.14 - autocfg-1.1.0 - base64-0.13.1 - bincode-1.3.3 - bisection-0.1.0 - bit-set-0.5.3 - bit-vec-0.6.3 - bitflags-1.3.2 - block-buffer-0.10.3 - bstr-0.2.17 - bstr-1.3.0 - bumpalo-3.12.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.23 - ciborium-0.2.0 - ciborium-io-0.2.0 - ciborium-ll-0.2.0 - clap-3.2.23 - clap-4.1.8 - clap_complete-4.1.2 - clap_complete_command-0.5.1 - clap_complete_fig-4.1.1 - clap_complete_nushell-0.1.10 - clap_derive-4.1.8 - clap_lex-0.2.4 - clap_lex-0.3.1 - clearscreen-2.0.0 - codespan-reporting-0.11.1 - colored-2.0.0 - configparser-3.0.2 - console-0.15.5 - console_error_panic_hook-0.1.7 - console_log-0.2.1 - core-foundation-sys-0.8.3 - cpufeatures-0.2.5 - crc32fast-1.3.2 - criterion-0.4.0 - criterion-plot-0.5.0 - crossbeam-channel-0.5.6 - crossbeam-deque-0.8.2 - crossbeam-epoch-0.9.13 - crossbeam-utils-0.8.14 - crunchy-0.2.2 - crypto-common-0.1.6 - ctor-0.1.26 - cxx-1.0.91 - cxx-build-1.0.91 - cxxbridge-flags-1.0.91 - cxxbridge-macro-1.0.91 - diff-0.1.13 - difflib-0.4.0 - digest-0.10.6 - dirs-4.0.0 - dirs-next-2.0.0 - dirs-sys-0.3.7 - dirs-sys-next-0.1.2 - doc-comment-0.3.3 - drop_bomb-0.1.5 - dyn-clone-1.0.10 - either-1.8.1 - ena-0.14.0 - encode_unicode-0.3.6 - errno-0.2.8 - errno-dragonfly-0.1.2 - fastrand-1.9.0 - fern-0.6.1 - filetime-0.2.20 - fixedbitset-0.4.2 - flate2-1.0.25 - fnv-1.0.7 - form_urlencoded-1.1.0 - fsevent-sys-4.1.0 - generic-array-0.14.6 - getrandom-0.2.8 - glob-0.3.1 - globset-0.4.10 - half-1.8.2 - hashbrown-0.12.3 - heck-0.4.1 - hermit-abi-0.1.19 - hermit-abi-0.2.6 - hermit-abi-0.3.1 - hexf-parse-0.2.1 - iana-time-zone-0.1.53 - iana-time-zone-haiku-0.1.1 - idna-0.3.0 - ignore-0.4.20 - imperative-1.0.4 - indexmap-1.9.2 - inotify-0.9.6 - inotify-sys-0.1.5 - insta-1.28.0 - instant-0.1.12 - io-lifetimes-1.0.5 - is-macro-0.2.2 - is-terminal-0.4.4 - itertools-0.10.5 - itoa-1.0.5 - js-sys-0.3.61 - kqueue-1.0.7 - kqueue-sys-1.0.3 - lalrpop-0.19.8 - lalrpop-util-0.19.8 - 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.139 - libmimalloc-sys-0.1.30 - link-cplusplus-1.0.8 - linked-hash-map-0.5.6 - linux-raw-sys-0.1.4 - lock_api-0.4.9 - log-0.4.17 - lz4_flex-0.9.5 - matches-0.1.10 - memchr-2.5.0 - memoffset-0.7.1 - mimalloc-0.1.34 - miniz_oxide-0.6.2 - mio-0.8.6 - natord-1.0.9 - new_debug_unreachable-1.0.4 - nextest-workspace-hack-0.1.0 - nix-0.26.2 - nohash-hasher-0.2.0 - nom-5.1.2 - notify-5.1.0 - num-bigint-0.4.3 - num-complex-0.4.3 - num-integer-0.1.45 - num-traits-0.2.15 - num_cpus-1.15.0 - once_cell-1.17.1 - oorandom-11.1.3 - os_str_bytes-6.4.1 - output_vt100-0.1.3 - parking_lot-0.12.1 - parking_lot_core-0.9.7 - paste-1.0.11 - path-absolutize-3.0.14 - path-dedot-3.0.18 - pathdiff-0.2.1 - peg-0.8.1 - peg-macros-0.8.1 - peg-runtime-0.8.1 - percent-encoding-2.2.0 - pest-2.5.5 - pest_derive-2.5.5 - pest_generator-2.5.5 - pest_meta-2.5.5 - petgraph-0.6.3 - phf-0.11.1 - phf_codegen-0.11.1 - phf_generator-0.11.1 - phf_shared-0.10.0 - phf_shared-0.11.1 - pico-args-0.4.2 - pin-project-lite-0.2.9 - plotters-0.3.4 - plotters-backend-0.3.4 - plotters-svg-0.3.3 - pmutil-0.5.3 - ppv-lite86-0.2.17 - precomputed-hash-0.1.1 - predicates-2.1.5 - predicates-core-1.0.5 - predicates-tree-1.0.7 - pretty_assertions-1.3.0 - proc-macro-error-1.0.4 - proc-macro-error-attr-1.0.4 - proc-macro2-1.0.51 - quick-junit-0.3.2 - quick-xml-0.26.0 - quote-1.0.23 - radium-0.7.0 - rand-0.8.5 - rand_chacha-0.3.1 - rand_core-0.6.4 - rayon-1.7.0 - rayon-core-1.11.0 - redox_syscall-0.2.16 - redox_users-0.4.3 - regex-1.7.1 - regex-automata-0.1.10 - regex-syntax-0.6.28 - remove_dir_all-0.5.3 - result-like-0.4.6 - result-like-derive-0.4.6 - ring-0.16.20 - rust-stemmers-1.2.0 - rustc-hash-1.1.0 - rustix-0.36.8 - rustls-0.20.8 - rustversion-1.0.11 - ryu-1.0.12 - same-file-1.0.6 - schemars-0.8.12 - schemars_derive-0.8.12 - scoped-tls-1.0.1 - scopeguard-1.1.0 - scratch-1.0.3 - sct-0.7.0 - semver-1.0.16 - serde-1.0.152 - serde-wasm-bindgen-0.5.0 - serde_derive-1.0.152 - serde_derive_internals-0.26.0 - serde_json-1.0.93 - serde_spanned-0.6.1 - serde_test-1.0.152 - sha2-0.10.6 - shellexpand-3.0.0 - similar-2.2.1 - siphasher-0.3.10 - smallvec-1.10.0 - smawk-0.3.1 - spin-0.5.2 - static_assertions-1.1.0 - string_cache-0.8.4 - strsim-0.10.0 - strum-0.24.1 - strum_macros-0.24.3 - syn-1.0.109 - syn-ext-0.4.0 - tempfile-3.3.0 - term-0.7.0 - termcolor-1.2.0 - terminfo-0.7.5 - termtree-0.4.0 - test-case-3.0.0 - test-case-core-3.0.0 - test-case-macros-3.0.0 - textwrap-0.16.0 - thiserror-1.0.38 - thiserror-impl-1.0.38 - thread_local-1.1.7 - tikv-jemalloc-sys-0.5.3+5.3.0-patched - tikv-jemallocator-0.5.0 - time-0.1.45 - tiny-keccak-2.0.2 - tinytemplate-1.2.1 - tinyvec-1.6.0 - tinyvec_macros-0.1.1 - toml-0.7.2 - toml_datetime-0.6.1 - toml_edit-0.19.4 - tracing-0.1.37 - tracing-attributes-0.1.23 - tracing-core-0.1.30 - twox-hash-1.6.3 - typenum-1.16.0 - ucd-trie-0.1.5 - 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.10 - unicode-ident-1.0.6 - unicode-linebreak-0.1.4 - unicode-normalization-0.1.22 - unicode-width-0.1.10 - unicode-xid-0.2.4 - untrusted-0.7.1 - ureq-2.6.2 - url-2.3.1 - uuid-1.3.0 - version_check-0.9.4 - volatile-0.3.0 - wait-timeout-0.2.0 - walkdir-2.3.2 - wasi-0.10.0+wasi-snapshot-preview1 - wasi-0.11.0+wasi-snapshot-preview1 - wasm-bindgen-0.2.84 - wasm-bindgen-backend-0.2.84 - wasm-bindgen-futures-0.4.34 - wasm-bindgen-macro-0.2.84 - wasm-bindgen-macro-support-0.2.84 - wasm-bindgen-shared-0.2.84 - wasm-bindgen-test-0.3.34 - wasm-bindgen-test-macro-0.3.34 - web-sys-0.3.61 - webpki-0.22.0 - webpki-roots-0.22.6 - which-4.4.0 - widestring-0.5.1 - winapi-0.3.9 - winapi-i686-pc-windows-gnu-0.4.0 - winapi-util-0.1.5 - winapi-x86_64-pc-windows-gnu-0.4.0 - windows-sys-0.42.0 - windows-sys-0.45.0 - windows-targets-0.42.1 - windows_aarch64_gnullvm-0.42.1 - windows_aarch64_msvc-0.42.1 - windows_i686_gnu-0.42.1 - windows_i686_msvc-0.42.1 - windows_x86_64_gnu-0.42.1 - windows_x86_64_gnullvm-0.42.1 - windows_x86_64_msvc-0.42.1 - winnow-0.3.3 - yaml-rust-0.4.5 - yansi-0.5.1 - yansi-term-0.1.2 -" - -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_USE_PEP517=maturin - -LIBCST_COMMIT="80e4c1399f95e5beb532fdd1e209ad2dbb470438" -RUSTPYTHON_COMMIT="c15f670f2c30cfae6b41a1874893590148c74bc4" -declare -A GIT_CRATES=( - [libcst]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst" - [libcst_derive]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst_derive" - [rustpython-ast]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/ast" - [rustpython-common]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/common" - [rustpython-compiler-core]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/core" - [rustpython-parser]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/parser" - [pep440_rs]="https://github.com/konstin/pep440-rs;a8fef4ec47f4c25b070b39cdbe6a0b9847e49941;pep440-rs-%commit%" - [unicode_names2]="https://github.com/youknowone/unicode_names2;4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" -) - -inherit distutils-r1 cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -# Double check the homepage as the cargo_metadata crate -# does not provide this value so instead repository is used -HOMEPAGE="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 set may be more restrictive as OR is not respected -# use cargo-license for a more accurate license picture -LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD BSD-2 Boost-1.0 CC0-1.0 ISC LGPL-3+ MIT MPL-2.0 Unicode-DFS-2016 Unlicense WTFPL-2 ZLIB" -SLOT="0" -KEYWORDS="~amd64" - -BDEPEND=" - dev-util/patchelf -" - -# rust does not use *FLAGS from make.conf, silence portage warning -# update with proper path to binaries this crate installs, omit leading / -QA_FLAGS_IGNORED="usr/bin/ruff usr/lib.*/libruff.so" - -# haven't been able to figure out how to get tests working yet -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 - - 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 - distutils-r1_src_test -} - -src_install() { - distutils-r1_src_install - - local releasedir=target/$(usex 'debug' 'debug' 'release') - - dobin ${releasedir}/{ruff,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.259.ebuild b/dev-util/ruff/ruff-0.0.259.ebuild new file mode 100644 index 000000000000..48a85b8e23fa --- /dev/null +++ b/dev-util/ruff/ruff-0.0.259.ebuild @@ -0,0 +1,423 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + Inflector-0.11.4 + adler-1.0.2 + ahash-0.7.6 + aho-corasick-0.7.20 + android_system_properties-0.1.5 + anes-0.1.6 + annotate-snippets-0.6.1 + annotate-snippets-0.9.1 + anyhow-1.0.69 + ascii-1.1.0 + ascii-canvas-3.0.0 + assert_cmd-2.0.8 + atty-0.2.14 + autocfg-1.1.0 + base64-0.13.1 + bincode-1.3.3 + bisection-0.1.0 + bit-set-0.5.3 + bit-vec-0.6.3 + bitflags-1.3.2 + block-buffer-0.10.3 + bstr-0.2.17 + bstr-1.3.0 + bumpalo-3.12.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.23 + ciborium-0.2.0 + ciborium-io-0.2.0 + ciborium-ll-0.2.0 + clap-3.2.23 + clap-4.1.8 + clap_complete-4.1.2 + clap_complete_command-0.5.1 + clap_complete_fig-4.1.1 + clap_complete_nushell-0.1.10 + clap_derive-4.1.8 + clap_lex-0.2.4 + clap_lex-0.3.1 + clearscreen-2.0.0 + codespan-reporting-0.11.1 + colored-2.0.0 + configparser-3.0.2 + console-0.15.5 + console_error_panic_hook-0.1.7 + console_log-0.2.1 + core-foundation-sys-0.8.3 + cpufeatures-0.2.5 + crc32fast-1.3.2 + criterion-0.4.0 + criterion-plot-0.5.0 + crossbeam-channel-0.5.6 + crossbeam-deque-0.8.2 + crossbeam-epoch-0.9.13 + crossbeam-utils-0.8.14 + crunchy-0.2.2 + crypto-common-0.1.6 + ctor-0.1.26 + cxx-1.0.91 + cxx-build-1.0.91 + cxxbridge-flags-1.0.91 + cxxbridge-macro-1.0.91 + diff-0.1.13 + difflib-0.4.0 + digest-0.10.6 + dirs-4.0.0 + dirs-next-2.0.0 + dirs-sys-0.3.7 + dirs-sys-next-0.1.2 + doc-comment-0.3.3 + drop_bomb-0.1.5 + dyn-clone-1.0.10 + either-1.8.1 + ena-0.14.0 + encode_unicode-0.3.6 + errno-0.2.8 + errno-dragonfly-0.1.2 + fastrand-1.9.0 + fern-0.6.1 + filetime-0.2.20 + fixedbitset-0.4.2 + flate2-1.0.25 + fnv-1.0.7 + form_urlencoded-1.1.0 + fsevent-sys-4.1.0 + generic-array-0.14.6 + getrandom-0.2.8 + glob-0.3.1 + globset-0.4.10 + half-1.8.2 + hashbrown-0.12.3 + heck-0.4.1 + hermit-abi-0.1.19 + hermit-abi-0.2.6 + hermit-abi-0.3.1 + hexf-parse-0.2.1 + iana-time-zone-0.1.53 + iana-time-zone-haiku-0.1.1 + idna-0.3.0 + ignore-0.4.20 + imperative-1.0.4 + indexmap-1.9.2 + inotify-0.9.6 + inotify-sys-0.1.5 + insta-1.28.0 + instant-0.1.12 + io-lifetimes-1.0.5 + is-macro-0.2.2 + is-terminal-0.4.4 + itertools-0.10.5 + itoa-1.0.5 + js-sys-0.3.61 + kqueue-1.0.7 + kqueue-sys-1.0.3 + lalrpop-0.19.8 + lalrpop-util-0.19.8 + 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.139 + libmimalloc-sys-0.1.30 + link-cplusplus-1.0.8 + linked-hash-map-0.5.6 + linux-raw-sys-0.1.4 + lock_api-0.4.9 + log-0.4.17 + lz4_flex-0.9.5 + matches-0.1.10 + memchr-2.5.0 + memoffset-0.7.1 + mimalloc-0.1.34 + miniz_oxide-0.6.2 + mio-0.8.6 + natord-1.0.9 + new_debug_unreachable-1.0.4 + nextest-workspace-hack-0.1.0 + nix-0.26.2 + nohash-hasher-0.2.0 + nom-5.1.2 + notify-5.1.0 + num-bigint-0.4.3 + num-complex-0.4.3 + num-integer-0.1.45 + num-traits-0.2.15 + num_cpus-1.15.0 + once_cell-1.17.1 + oorandom-11.1.3 + os_str_bytes-6.4.1 + output_vt100-0.1.3 + parking_lot-0.12.1 + parking_lot_core-0.9.7 + paste-1.0.11 + path-absolutize-3.0.14 + path-dedot-3.0.18 + pathdiff-0.2.1 + peg-0.8.1 + peg-macros-0.8.1 + peg-runtime-0.8.1 + percent-encoding-2.2.0 + pest-2.5.5 + pest_derive-2.5.5 + pest_generator-2.5.5 + pest_meta-2.5.5 + petgraph-0.6.3 + phf-0.11.1 + phf_codegen-0.11.1 + phf_generator-0.11.1 + phf_shared-0.10.0 + phf_shared-0.11.1 + pico-args-0.4.2 + pin-project-lite-0.2.9 + plotters-0.3.4 + plotters-backend-0.3.4 + plotters-svg-0.3.3 + pmutil-0.5.3 + ppv-lite86-0.2.17 + precomputed-hash-0.1.1 + predicates-2.1.5 + predicates-core-1.0.5 + predicates-tree-1.0.7 + pretty_assertions-1.3.0 + proc-macro-error-1.0.4 + proc-macro-error-attr-1.0.4 + proc-macro2-1.0.51 + quick-junit-0.3.2 + quick-xml-0.26.0 + quote-1.0.23 + radium-0.7.0 + rand-0.8.5 + rand_chacha-0.3.1 + rand_core-0.6.4 + rayon-1.7.0 + rayon-core-1.11.0 + redox_syscall-0.2.16 + redox_users-0.4.3 + regex-1.7.1 + regex-automata-0.1.10 + regex-syntax-0.6.28 + remove_dir_all-0.5.3 + result-like-0.4.6 + result-like-derive-0.4.6 + ring-0.16.20 + rust-stemmers-1.2.0 + rustc-hash-1.1.0 + rustix-0.36.8 + rustls-0.20.8 + rustversion-1.0.11 + ryu-1.0.12 + same-file-1.0.6 + schemars-0.8.12 + schemars_derive-0.8.12 + scoped-tls-1.0.1 + scopeguard-1.1.0 + scratch-1.0.3 + sct-0.7.0 + semver-1.0.16 + serde-1.0.152 + serde-wasm-bindgen-0.5.0 + serde_derive-1.0.152 + serde_derive_internals-0.26.0 + serde_json-1.0.93 + serde_spanned-0.6.1 + serde_test-1.0.152 + sha2-0.10.6 + shellexpand-3.0.0 + similar-2.2.1 + siphasher-0.3.10 + smallvec-1.10.0 + smawk-0.3.1 + spin-0.5.2 + static_assertions-1.1.0 + string_cache-0.8.4 + strsim-0.10.0 + strum-0.24.1 + strum_macros-0.24.3 + syn-1.0.109 + syn-ext-0.4.0 + tempfile-3.3.0 + term-0.7.0 + termcolor-1.2.0 + terminfo-0.7.5 + termtree-0.4.0 + test-case-3.0.0 + test-case-core-3.0.0 + test-case-macros-3.0.0 + textwrap-0.16.0 + thiserror-1.0.38 + thiserror-impl-1.0.38 + thread_local-1.1.7 + tikv-jemalloc-sys-0.5.3+5.3.0-patched + tikv-jemallocator-0.5.0 + time-0.1.45 + tiny-keccak-2.0.2 + tinytemplate-1.2.1 + tinyvec-1.6.0 + tinyvec_macros-0.1.1 + toml-0.7.2 + toml_datetime-0.6.1 + toml_edit-0.19.4 + tracing-0.1.37 + tracing-attributes-0.1.23 + tracing-core-0.1.30 + twox-hash-1.6.3 + typenum-1.16.0 + ucd-trie-0.1.5 + 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.10 + unicode-ident-1.0.6 + unicode-linebreak-0.1.4 + unicode-normalization-0.1.22 + unicode-width-0.1.10 + unicode-xid-0.2.4 + untrusted-0.7.1 + ureq-2.6.2 + url-2.3.1 + uuid-1.3.0 + version_check-0.9.4 + volatile-0.3.0 + wait-timeout-0.2.0 + walkdir-2.3.2 + wasi-0.10.0+wasi-snapshot-preview1 + wasi-0.11.0+wasi-snapshot-preview1 + wasm-bindgen-0.2.84 + wasm-bindgen-backend-0.2.84 + wasm-bindgen-futures-0.4.34 + wasm-bindgen-macro-0.2.84 + wasm-bindgen-macro-support-0.2.84 + wasm-bindgen-shared-0.2.84 + wasm-bindgen-test-0.3.34 + wasm-bindgen-test-macro-0.3.34 + web-sys-0.3.61 + webpki-0.22.0 + webpki-roots-0.22.6 + which-4.4.0 + widestring-0.5.1 + winapi-0.3.9 + winapi-i686-pc-windows-gnu-0.4.0 + winapi-util-0.1.5 + winapi-x86_64-pc-windows-gnu-0.4.0 + windows-sys-0.42.0 + windows-sys-0.45.0 + windows-targets-0.42.1 + windows_aarch64_gnullvm-0.42.1 + windows_aarch64_msvc-0.42.1 + windows_i686_gnu-0.42.1 + windows_i686_msvc-0.42.1 + windows_x86_64_gnu-0.42.1 + windows_x86_64_gnullvm-0.42.1 + windows_x86_64_msvc-0.42.1 + winnow-0.3.3 + yaml-rust-0.4.5 + yansi-0.5.1 + yansi-term-0.1.2 +" + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=maturin + +LIBCST_COMMIT="80e4c1399f95e5beb532fdd1e209ad2dbb470438" +RUSTPYTHON_COMMIT="c15f670f2c30cfae6b41a1874893590148c74bc4" +declare -A GIT_CRATES=( + [libcst]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst" + [libcst_derive]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst_derive" + [rustpython-ast]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/ast" + [rustpython-common]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/common" + [rustpython-compiler-core]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/core" + [rustpython-parser]="https://github.com/RustPython/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/parser" + [pep440_rs]="https://github.com/konstin/pep440-rs;a8fef4ec47f4c25b070b39cdbe6a0b9847e49941;pep440-rs-%commit%" + [unicode_names2]="https://github.com/youknowone/unicode_names2;4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" +) + +inherit distutils-r1 cargo + +DESCRIPTION="An extremely fast Python linter, written in Rust" +# Double check the homepage as the cargo_metadata crate +# does not provide this value so instead repository is used +HOMEPAGE="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 set may be more restrictive as OR is not respected +# use cargo-license for a more accurate license picture +LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD BSD-2 Boost-1.0 CC0-1.0 ISC LGPL-3+ MIT MPL-2.0 Unicode-DFS-2016 Unlicense WTFPL-2 ZLIB" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + dev-util/patchelf +" + +# rust does not use *FLAGS from make.conf, silence portage warning +# update with proper path to binaries this crate installs, omit leading / +QA_FLAGS_IGNORED="usr/bin/ruff.* usr/lib.*/libruff.*.so" + +# haven't been able to figure out how to get tests working yet +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 + + 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 + distutils-r1_src_test +} + +src_install() { + distutils-r1_src_install + + local releasedir=target/$(usex 'debug' 'debug' 'release') + + dobin ${releasedir}/{ruff,flake8-to-ruff,ruff_python_formatter} + dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') + + dodoc "${DOCS[@]}" +} -- cgit v1.2.3