From ae043c2eb5441b960ca0979e0240098365df9aa9 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 19 Oct 2023 15:06:42 -0700 Subject: dev-util/ruff: add 0.1.1, drop 0.1.0 Signed-off-by: Patrick McLean --- dev-util/ruff/Manifest | 8 +- dev-util/ruff/ruff-0.1.0.ebuild | 467 ---------------------------------------- dev-util/ruff/ruff-0.1.1.ebuild | 467 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 471 insertions(+), 471 deletions(-) delete mode 100644 dev-util/ruff/ruff-0.1.0.ebuild create mode 100644 dev-util/ruff/ruff-0.1.1.ebuild (limited to 'dev-util/ruff') diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 65519343f1ed..ac196a759915 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -215,7 +215,7 @@ DIST regex-syntax-0.8.2.crate 347228 BLAKE2B 211fd1c35ad0f28874d4b4d276e0fb0a27e 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.1.0.gh.tar.gz 3179556 BLAKE2B b3cf28efa36c4b06e7fe2d1338e136142a5df7b52ba47500dcd39789012b22278f8f088c7c5f686266d4a43b8326a43b13fe3f42c41842adb6b77c06b809f2b6 SHA512 888704c4e708d12f63da9bda67018595a3b50e9f4929c221a7356a2add8020de5146d9aa80c2a5c5f0e250f3e31aa37f250e6120cdfdd29587d1b7efd5d4677c +DIST ruff-0.1.1.gh.tar.gz 3199879 BLAKE2B d47c5920de8687f5e8b19c62e3be8c69cc11c1bfb8d7999c33216a8a285ca844ff7b530c5019da1c69e99e3821f49187f8d0122e61a44b911b1d14bce5ab894b SHA512 57e5679e83b0e6725662fd762af7581226eec72626eb7789e36de73bf291a70cb88f51cad64872d779ec7a4bf23f77991068697b11de29019514bbf1f1c2c766 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.38.10.crate 342427 BLAKE2B 6b65b3b8d7ceba7e606bb1a2b07d447b8110c728c0b3a81838be8b0ad04ff01f4a6d9b6fc1a4725a392eeb0d455a06b6f7abf40b0990a7dbdf4a632199ccde95 SHA512 4329ad809994cb377f2bade3673a3cc829062f4c9977019735b90df17af92c22d3f036a13a3fe7073872dcac8f5e424db7bc56b0d2530e5e7b468a9d92a867c9 @@ -277,9 +277,9 @@ DIST tinyvec_macros-0.1.1.crate 5865 BLAKE2B 2bf4f68ca11dc19c72232951605a4c809b3 DIST toml-0.7.8.crate 49671 BLAKE2B 47988292efa682f34b5295ee15524d9603d7884a0ebdc50aff93823bc9bb565569097b6aa0c622976cb23688aff73e41c0a19b0ab72ca55676cc86d7ae3db693 SHA512 84479acfa305aa682ed6ba655208c245d442d61028c422fefd6174371ec214e88912c257a3e2527e14646b655b18d55ac2d5482b0b4fd8cc2a9f66575ff1c84b DIST toml_datetime-0.6.3.crate 10770 BLAKE2B fc1754eb7c3a7073cfe41e5ccba152ff09891a8de8afe38991cf2dd7b93aacf07f1075fd24d7aa643238cf31e3df1fc3162335b2c475438178b4a4d8a2055471 SHA512 cabf5dce24ed3bf4674008743180a21e86286d999cdce79f934de48b1e1fe0f16a7f3d2498bf059acdb823b51bc01986faf47139f8100ae272e6bd19095cfa9b DIST toml_edit-0.19.15.crate 95324 BLAKE2B f989f96d571693ff81572af6c05a6f51b673e478f22d20a6b166c45909902ac80280ea92ec5c3567327df90100a47fb7504845fc39bbcff6756af6c1a89e2221 SHA512 46d6bd2fea957392ae0ad7e687dad7743b76ee8e8ec76c80d6374ea294d3d09b6f73df0a82c821b9ee3b5268987a4136aa825034309f3cbc1947dbd1af1505dc -DIST tracing-0.1.37.crate 73888 BLAKE2B 60c74379bf84d7b152f0b4d5b4d4669a1227dce0f3b5c10210338193853ca332de7eed3cc3b6160ee3719da7fdfe565665a887f2f82fb1e1c716c421048a2e87 SHA512 2116045f51b35e90fc933cc136d045d09c0aaa33400a9056051d887fea2d2982b394830e4d4c3bcb4b831e62b9c19f6c751c2d216169f663aa18c4067aed7d75 -DIST tracing-attributes-0.1.26.crate 32060 BLAKE2B 80e96f77194d90c324867155a22ad4b6831551ace5832434eb83268cc1919b5aedd7d193e00ce7b8764724d446bbcf0f94d01a94e1347321df8eb6858c4132c3 SHA512 ddb9f5efb33627586cef49e3bd45d45b643cdc0e280c970a32f92c8ebe3bd51428ee395c43613911e23841ffab36daad322f2a874732491aaf6a95bd5035fb44 -DIST tracing-core-0.1.31.crate 61263 BLAKE2B feec046ddd3e04995bfe24defd6ae1187fd7ad78d80d69031178f67ed534e9aa6ab6aaea92dad509f57e220df5f6f025ab8f96bbc957834126f53dcad36580c3 SHA512 66fcd0b4f32de3816b1dcbeda1af26fae0a79d088894637984dc6a0ca65b609f5f166cea376601f6a75f8e3a281da6d4450dc796aa0a7177ad615330237e2bed +DIST tracing-0.1.39.crate 79314 BLAKE2B 8ddbc386e09d6162150a79d868882de7195a532fdc157b0d323f44cfa96a00f6171b576a9295667651513f0468bbed2d2ed535e1c07946711b160c0fcd91e497 SHA512 ade13c507cad7d59be247007019d4f576782d6d1145ade4d15e16b74fde4d0a8b6164721017bfd500a2591ed2d8ac63bc29d2d27c17899b4179df1fb1ea0ecc8 +DIST tracing-attributes-0.1.27.crate 32241 BLAKE2B a20af0f50a90dcd64e5318e55779142da294ba18d1cd40059a8aa964fd3c92834e03ee563e41caaeef71a30e3f027e5c8d167d90e2844da79e0774b267e179b4 SHA512 7dc59f4234c3bf3434fb352baed2b81db4e931eeb3ed207c4a204e480da734be40847b167b808058d2807b5583815625bcd5153e2bbe79804cfa6f069a74ffa0 +DIST tracing-core-0.1.32.crate 61221 BLAKE2B a7815c46af9852ce62498083103c6d359351f4d33609b4291330073b6abf4b63f5e1bb1a7dfed3bbf4d6913ad5217e96999416261af8a70609408a29109e4db6 SHA512 164f79cacfcca533a53b7dbbdc2015aaf851a16e00c72fbc4e5f515b6a6dedfa464e964810009b54f08cbcdc5a314e50245ac7b1b01a71fce4c63db135bf5521 DIST tracing-indicatif-0.3.5.crate 25959 BLAKE2B 5f13e8f88277aab1f994ec288d208b70f702f78149abbf80dddcf11f316692374ecd90f6f422df90c18359ff57b5538402b2aa013da93c2f78e48a632ec87df9 SHA512 34163c09b47aa17ed02d1c42a6f318cb585e5e2d734015e45572d63495538ac70bbe18b1044cf3eb13f7b9a78427b30bcf67b8c3b6f8009c707e8455060dab40 DIST tracing-log-0.1.3.crate 20549 BLAKE2B 1e2b5f1d96983b0dcf3e61f71132536e21dc19af0d532dcff7cc91db45e60cbdc1f8b5b7a7b2c13214dda4e3becd4f3d62262def1b608a99fa330ccf1d716323 SHA512 440cb8ddd5823cd0d86b68bbbf29f6886d5800f95d0aaa9477f98f188013fd009c2b9bc982b17efd08abd071bc70ca511f988b9db8c21d8e3d323fb67614d289 DIST tracing-subscriber-0.3.17.crate 191711 BLAKE2B f55c8e8c70ca67f57cb3c8a411519f317b9961620e3f7db3a3933d549cb64a5871624c21231bd6a0974c94ecaee2904d2304ac9fde3aa8463f0fcbf99f94b5f9 SHA512 53a2a760d833f729e042b4f76b56c93ff7c50ddba968dfa9294f24425fe9a3dfc6c3b95a526ebd78df852b48b76c85d2f4f7be9170d75a6eea8734f77218e727 diff --git a/dev-util/ruff/ruff-0.1.0.ebuild b/dev-util/ruff/ruff-0.1.0.ebuild deleted file mode 100644 index 6233fce6ee71..000000000000 --- a/dev-util/ruff/ruff-0.1.0.ebuild +++ /dev/null @@ -1,467 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.10 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..12} ) -DISTUTILS_USE_PEP517=maturin - -CRATES=" - Inflector@0.11.4 - adler@1.0.2 - ahash@0.8.3 - 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.1 - 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.75 - 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.0 - bstr@1.6.2 - bumpalo@3.13.0 - cachedir@0.3.0 - 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.6 - clap_builder@4.4.6 - 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.2 - clap_lex@0.5.1 - clearscreen@2.0.1 - codspeed-criterion-compat@2.2.0 - codspeed@2.2.0 - 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 - 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.0 - equivalent@1.0.1 - errno-dragonfly@0.1.2 - errno@0.3.3 - fastrand@2.0.0 - fern@0.6.2 - filetime@0.2.22 - fixedbitset@0.4.2 - flate2@1.0.27 - fnv@1.0.7 - form_urlencoded@1.2.0 - fs-err@2.9.0 - fsevent-sys@4.1.0 - getopts@0.2.21 - getrandom@0.2.10 - glob@0.3.1 - globset@0.4.13 - half@1.8.2 - hashbrown@0.12.3 - hashbrown@0.14.0 - 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.4.0 - ignore@0.4.20 - imara-diff@0.1.5 - imperative@1.0.5 - indexmap@2.0.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-macro@0.3.0 - is-terminal@0.4.9 - itertools@0.10.5 - itertools@0.11.0 - itoa@1.0.9 - js-sys@0.3.64 - 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.147 - 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.5 - 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.18.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 - pep508_rs@0.2.1 - percent-encoding@2.3.0 - 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.5.3 - 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.69 - pyproject-toml@0.7.0 - quick-junit@0.3.3 - quick-xml@0.29.0 - quote@1.0.33 - 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_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.4.6 - result-like@0.4.6 - ring@0.16.20 - rust-stemmers@1.2.0 - rustc-hash@1.1.0 - rustix@0.38.10 - 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.15 - schemars_derive@0.8.15 - 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.0 - serde@1.0.188 - serde_derive@1.0.188 - serde_derive_internals@0.26.0 - serde_json@1.0.107 - serde_spanned@0.6.3 - serde_test@1.0.176 - serde_with@3.3.0 - serde_with_macros@3.3.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.1 - spin@0.5.2 - static_assertions@1.1.0 - string_cache@0.8.7 - strsim@0.10.0 - strum@0.25.0 - strum_macros@0.25.2 - syn-ext@0.4.0 - syn@1.0.109 - syn@2.0.38 - tempfile@3.8.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.2.1 - thiserror-impl@1.0.49 - thiserror@1.0.49 - 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.7.8 - toml_datetime@0.6.3 - toml_edit@0.19.15 - tracing-attributes@0.1.26 - tracing-core@0.1.31 - tracing-indicatif@0.3.5 - 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-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.0 - unicode_names2_generator@1.2.0 - untrusted@0.7.1 - ureq@2.8.0 - url@2.4.1 - utf8parse@0.2.1 - uuid-macro-internal@1.4.1 - uuid@1.4.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.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.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-targets@0.42.2 - windows-targets@0.48.5 - windows@0.48.0 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.5 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.5 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.5 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.5 - winnow@0.5.15 - wsl@0.1.0 - yaml-rust@0.4.5 - yansi-term@0.1.2 - yansi@0.5.1 -" - -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" - -BDEPEND=" - dev-util/patchelf - >=virtual/rust-1.72 -" - -# 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 -" - -# syn-ext -LICENSE+=" - BSD-2 -" - -# 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},flake8-to-ruff,ruff_python_formatter} - dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.1.1.ebuild b/dev-util/ruff/ruff-0.1.1.ebuild new file mode 100644 index 000000000000..fb8925fb3d05 --- /dev/null +++ b/dev-util/ruff/ruff-0.1.1.ebuild @@ -0,0 +1,467 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.10 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=maturin + +CRATES=" + Inflector@0.11.4 + adler@1.0.2 + ahash@0.8.3 + 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.1 + 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.75 + 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.0 + bstr@1.6.2 + bumpalo@3.13.0 + cachedir@0.3.0 + 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.6 + clap_builder@4.4.6 + 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.2 + clap_lex@0.5.1 + clearscreen@2.0.1 + codspeed-criterion-compat@2.2.0 + codspeed@2.2.0 + 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 + 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.0 + equivalent@1.0.1 + errno-dragonfly@0.1.2 + errno@0.3.3 + fastrand@2.0.0 + fern@0.6.2 + filetime@0.2.22 + fixedbitset@0.4.2 + flate2@1.0.27 + fnv@1.0.7 + form_urlencoded@1.2.0 + fs-err@2.9.0 + fsevent-sys@4.1.0 + getopts@0.2.21 + getrandom@0.2.10 + glob@0.3.1 + globset@0.4.13 + half@1.8.2 + hashbrown@0.12.3 + hashbrown@0.14.0 + 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.4.0 + ignore@0.4.20 + imara-diff@0.1.5 + imperative@1.0.5 + indexmap@2.0.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-macro@0.3.0 + is-terminal@0.4.9 + itertools@0.10.5 + itertools@0.11.0 + itoa@1.0.9 + js-sys@0.3.64 + 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.147 + 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.5 + 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.18.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 + pep508_rs@0.2.1 + percent-encoding@2.3.0 + 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.5.3 + 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.69 + pyproject-toml@0.7.0 + quick-junit@0.3.3 + quick-xml@0.29.0 + quote@1.0.33 + 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_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.4.6 + result-like@0.4.6 + ring@0.16.20 + rust-stemmers@1.2.0 + rustc-hash@1.1.0 + rustix@0.38.10 + 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.15 + schemars_derive@0.8.15 + 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.0 + serde@1.0.188 + serde_derive@1.0.188 + serde_derive_internals@0.26.0 + serde_json@1.0.107 + serde_spanned@0.6.3 + serde_test@1.0.176 + serde_with@3.3.0 + serde_with_macros@3.3.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.1 + spin@0.5.2 + static_assertions@1.1.0 + string_cache@0.8.7 + strsim@0.10.0 + strum@0.25.0 + strum_macros@0.25.2 + syn-ext@0.4.0 + syn@1.0.109 + syn@2.0.38 + tempfile@3.8.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.2.1 + thiserror-impl@1.0.49 + thiserror@1.0.49 + 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.7.8 + toml_datetime@0.6.3 + toml_edit@0.19.15 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + tracing-indicatif@0.3.5 + tracing-log@0.1.3 + tracing-subscriber@0.3.17 + tracing@0.1.39 + 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.0 + unicode_names2_generator@1.2.0 + untrusted@0.7.1 + ureq@2.8.0 + url@2.4.1 + utf8parse@0.2.1 + uuid-macro-internal@1.4.1 + uuid@1.4.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.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.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-targets@0.42.2 + windows-targets@0.48.5 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.5 + winnow@0.5.15 + wsl@0.1.0 + yaml-rust@0.4.5 + yansi-term@0.1.2 + yansi@0.5.1 +" + +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" + +BDEPEND=" + dev-util/patchelf + >=virtual/rust-1.72 +" + +# 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 +" + +# syn-ext +LICENSE+=" + BSD-2 +" + +# 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},flake8-to-ruff,ruff_python_formatter} + dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') + + dodoc -r "${DOCS[@]}" +} -- cgit v1.2.3-65-gdbad