diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2023-09-11 11:48:56 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2023-09-11 11:48:56 -0700 |
commit | 56f3ca4ef6c6c468f2b0b9a7d0d51c658a2b23fe (patch) | |
tree | 98d73a21d737b8e148ac9e8f7400771e12844f46 /dev-util/ruff | |
parent | dev-python/psycopg: Stabilize 3.1.10 ppc64, #913992 (diff) | |
download | gentoo-56f3ca4ef6c6c468f2b0b9a7d0d51c658a2b23fe.tar.gz gentoo-56f3ca4ef6c6c468f2b0b9a7d0d51c658a2b23fe.tar.bz2 gentoo-56f3ca4ef6c6c468f2b0b9a7d0d51c658a2b23fe.zip |
dev-util/ruff: add 0.0.288
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-util/ruff')
-rw-r--r-- | dev-util/ruff/Manifest | 6 | ||||
-rw-r--r-- | dev-util/ruff/ruff-0.0.288.ebuild | 468 |
2 files changed, 474 insertions, 0 deletions
diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 464a770d1032..4fbfbcf5dd2f 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -64,7 +64,9 @@ DIST clap_lex-0.5.0.crate 11792 BLAKE2B 0409c9d957ea6a566eb8b50f4212702df038d04c DIST clap_lex-0.5.1.crate 11793 BLAKE2B 8e3d2dc120401fdd0cf0bf069119c8b7eafa13e5f682c56499062fc09acc05f443caafa6fca791ea53e693a83de69e98fd0488726a4170db037c37118ce0edf1 SHA512 ea5e49e9a8536093f7de89be30add7c3d880b232b0ce393b0429fd4402db2518036998689817bdfd472b6400224fd3c42fec1b5f8538dc433c31dadeb6281e80 DIST clearscreen-2.0.1.crate 151421 BLAKE2B c43020bf5a2aced2d053e46f3a5d38d5accdb7af6d742d7fbcd990f01f7e31138fbcfd2cee2a29a9a0a794b6dc75fb3213c4c593020d5b1e2eb521d82ef063a7 SHA512 e9ba90f1768537464b201b045f05522dfc9765ba5111fb484ada0968ee880d72ce46020e2798778179bbd191b256cb340329966cd6d182253c31d96d9824506c DIST codspeed-2.1.0.crate 4534 BLAKE2B 0740192c1e93e73174394b9c000bb8f73eab486d9c3b71b9b5c28de4f1f43d8d0472e5b6a6acefa0335dcc948fed97df620e2752cb552547c02195366850318d SHA512 99775742c194bedce01e24aff7fc593aecf671bb95a3ede4f83c691811e78b732dd9db2f9d8b2ccdff70138517a089765607b76c753f24d8b62bcc86b3280cc3 +DIST codspeed-2.2.0.crate 4524 BLAKE2B 2b6d5aa6ebea3c6f86e971ea97e0de85bfcdb455589a9bc1d0d9e0625050912fa1f9d53887faddbc33c919797343d8d12411104534b17be2c6ab648062b0c04f SHA512 39b31688fdd3a153a8384171a1f9ced209b8ff7e5cb734dd781fe17123f7f10c09468f1647d3ad6aff9d77e4e34de2de0d9a2c2ad037f9edf8eca7a318e3d62a DIST codspeed-criterion-compat-2.1.0.crate 9625 BLAKE2B 8398b75bfb2f645b066c6052e5b8ff641068814edea0e70db5288ef8b9940d3d5e223907429dd47baa3113627327729377201b84cd7ef92e439da2ff6afbb48e SHA512 94d5bd89f19d3e93245d4649c5609766774d98ecc1979f3f9d29b09f406e7c65e6d0939029d33291aa3c4150c923039a997b5e6e8d4dde9feab2a053bdaca4e4 +DIST codspeed-criterion-compat-2.2.0.crate 9740 BLAKE2B ebc479c05a2dff5ce08c79c274d5eb890709eae66320eb28187a56a769960e6ab32c9ef7fbad3cc18879ddbd4baa2f6e51602ad760757a5e25dc8590ec591d34 SHA512 f2c7fc980d5d4b6435aee826afcde26aa608f9315d46effef993f336dcac712e348e4926cd14aa0c3147540ec8ee28a0c037fa672fed24ac2fa1e2511a5f0151 DIST colorchoice-1.0.0.crate 6857 BLAKE2B a0818be1299717461ffc1bcfb6fc53a0b3b645aa8c45fb72e045cf2d876fa207948610e58d6a837aad24838ea9616e80b0558ca3eae03fdf9bc4c03a8e5ba52f SHA512 53363f2889cd8e8a3b3ed10c48356896c0daa72f3c12c9c7804707ab0dbc07c0e34ef52fa4f0fb1647311ce5913168c1bf62c2407ff86a33f765a9e6fccad551 DIST colored-2.0.4.crate 23654 BLAKE2B 41303ea33785c060415a955383ba2f22ac8e4afe9f1345b9f41dea9817348298f8715c4bfdc60cf4960315c3a7dfabf148f2fdf62e0e0a5ca77e34c57dfca307 SHA512 38e664d23546d77c81da6f5eca6ee8113d6ce20107bf7325255de2c59d532e662ee1f751420bba8ccbbe468b8cb13f743050e4145d0e1f1e37087a1f3a65ada0 DIST configparser-3.0.2.crate 22545 BLAKE2B f03f85d109c6d7781340f4514667740c664feb38fb597262d2531f978a04c53f284de7c5671243c77c9db8d7202429f56030a67d76382406ee07e44fbf15b5e3 SHA512 ffa9055a736a93dd062b92ab1345a29565804021268787ab6dd314c00ccec4d2dd94562b1576ac356692011ae67ddc86ae8965e217b1607b680f0669eb4ea9ec @@ -151,6 +153,7 @@ DIST indoc-2.0.3.crate 14305 BLAKE2B d0c1434a8199b4717b2ec7797fe83f93c81cec17a16 DIST inotify-0.9.6.crate 22971 BLAKE2B 7a6cedd29b2503911fb42324fe3b4f4f20abb62a6b4370f8a7f634d9988f1b3053a70d69d6bbd7b850aae2590ded7548b73326a598d31e5b579e19ac3cc781d8 SHA512 39c3db1b6da620df9eaaa41cc20c2f22b9a372e181ed7d8ba0c7ad4e711ba4486bcec7ff86bb4d814d9c53e071cc4e43845567069e45b897c562cb677fc872b2 DIST inotify-sys-0.1.5.crate 6965 BLAKE2B d70124656ce3e6f5ea3f430e8e7100d0691003161234b40542ca86c407ecaac1785f3eca98e9fd2914dababbc3f47a0855c99c9f19245d1f2cd5312739c802af SHA512 dae749f32c533b0c9f99963d97a77dcbfcacf173ec8fd7a02f275804f9925e867b4dfdf6be52c3c3c3de136d64e6e7d6b30a3bf804a01608cf974b0cc2e346da DIST insta-1.31.0.crate 543861 BLAKE2B ffc38a8d375eec92a4463def66ed0709e2af7b8eb344647c41bce406ed9ec01efc777ea4a364e40205f8fb6a74854b3a7bb194ec671a0dcab7d2c8cb4f7ce18d SHA512 c16eb300628e7bab359c5515399b55eb7b60fb38e41e62f7bcf00d51fb016a82dd8c49f4e83095a7e94430af00d7d8e8bd9b1b3fd1735717f0b1f79c078f2fcd +DIST insta-cmd-0.4.0.crate 11925 BLAKE2B 307a25394bc93e8289644c3df660ec0de96ea3e3b3ac53e632ee8b0ed8e2bf342019e9004ed7a78230ff28bb6807d3f8fe5c6b880f4ee27258d7fd2f4316c2ea SHA512 933ea5c3b0408523ab3e4587879f8ad8dbbbfea0ed30322b18ba6fe6aaea93f0687faa33fa1f5bb8d06394cdf0753aa53e2f5a74b9b7952383e71f96be15e83d DIST instant-0.1.12.crate 6128 BLAKE2B 728923f757c1ee4e4a7afb90e460eed81392068961240a538e5c6468e15a0b6491f590fb5f6cc46e6d78901ca232351f65abb9f2f230d8f4983c5e58c4011902 SHA512 fae494c00111c51c840f9dd6a10febe403e27ebb933dd16633a213e9c20f2bc11adeb431c71f8a6713bf88f270a010941e15d83df294e658791934f83a5d2407 DIST io-lifetimes-1.0.11.crate 37346 BLAKE2B 7f278b7378a8569d3552c9b6d4be06d7908e05d77cdb964267f0b621ec4975a42fb6e48fc030a75ad5865681adf32ff747943ac559ab4ad73331a6611a1b10c6 SHA512 30c6e5ce6f5beabe0d7bee4f4522884d1316cf7d9b8d093ba0f952995997be3d0f10e1e77b9c20b7fe2b65429de0d2ec89bb35e939455795205206a3154ed544 DIST is-macro-0.2.2.crate 5247 BLAKE2B f3b5ad468bd8d5f4b62e12d1474c139245057a455485cd4587f3bde86a2a9cd71e329b94e20899e7edd261ce251af8ff5a2711c5812d093f760ef6cca3afa5ce SHA512 bd51b9183cdb9151d71d0d4dd066c36252a2e2800d8b58dfbc81e481c119f526824876b079861cceb077aa62c6c6f59a594ef16e9e305dc3a21aef9a120aeed8 @@ -171,6 +174,8 @@ DIST lexical-parse-float-0.8.5.crate 180161 BLAKE2B 881e4db32a21c26a1919fd1373ae DIST lexical-parse-integer-0.8.6.crate 33647 BLAKE2B a0ebd7a51c271a163796b0f55bb85e16830bf06e26e3f10d9b13dc5b65af590c77f47fb64360a8738c5ad4be6e6932d58e83e1594a80c067859645c35b907c53 SHA512 e9a814d2928bf5bb2d9dce53e26c65356191c9e21c3aa0e674d58ed879aa52293272f3897f64372d996a3f8c471b0f59348ad48f15a21c2f35ed15f522ac2daa DIST lexical-util-0.8.5.crate 85152 BLAKE2B 42a968c6f9d20cb4cb10906399d37d6581b425eadb31439fec4a71395819133249c4fb75b1d962100e77ba35b6f6b4cd428d5b5c161b405b22333ee390e671a6 SHA512 449c7f2a22c109cd179937c36e14d91c742e1a837a85fcf4fb58c21f05317511d1281b564d216a34760ae54a0df2d0ff5caf49da4aa9d43a8d87fcec0033cc39 DIST libc-0.2.147.crate 686772 BLAKE2B ab2f0c65d071d46b8b88149add1c8429237ef6d9e0563d56ee1adbf23e6147dbb57fb68fbd02498f8ec75327693237a47e5e5259615ce8b0d5ed7a03bbf4fffb SHA512 bfb3c230b59d623b98726f92b7c3f897b47ba3d22fe9834c15f5b4c1b662289aba35a0ae3acfc704ad74696db8c691ee007b9cc6fa03ae65a18eb6bedc81931e +DIST libcst-0.1.0.crate 109735 BLAKE2B fb3b24625a8e0e79ea05b5c922ab66c37941dd7cb16d00163ef8120ac41ed7a6f768b97709be13d41d3d2cef682b7f8842cbc8ec5a2bd27848a9b633e3e6c21d SHA512 988d13734173da471f24523b84ee2ca58278eae2534be756124c4493bca332ee5d33f3f029016d402db19adfaddb07c5a87352d092e67f2bb7947641b8322563 +DIST libcst_derive-0.1.0.crate 9250 BLAKE2B 49fb3fd1260f1a040723c7c693a79f97a86310cc1e31ec2532d05bd44737db40454ae847e5b60f8dd9e67c2e5dec0585f084f8fd6d8a953b73cb93922e761c95 SHA512 5e6bfdf06e54903d685863660e8614d14c09a270e9f73fee1012641561e20ed5a8d4915f5a1bcaf252eb5b6889afdfcf55c969b31bdc4ac80954441cfd1cca5b DIST libmimalloc-sys-0.1.33.crate 1166827 BLAKE2B 0ac4664de727ad209a66f8a0ba0308815cd1be6a6ec2a73ca211cffaef51dc8a31ac4898233bdf9bf8ba260bdf466dfd751249f849f08b584243c43017d14366 SHA512 ac2161b4324436ff55b421bd5d26c5c3a54da62319299b392f9aaebd65dcd5862b8f8488738959e7e45be3165259b251643416ddd9905ddf6580807136c71616 DIST libmimalloc-sys-0.1.34.crate 1166241 BLAKE2B a7f742d91e3f2b7813f08f607f88dd97dba0ae1d21f2ebb7b2d71aff8deaaeaf93f2b8c1f7270525a794b811c559db9a7aea0f150bb35b863e802bee69cab1f4 SHA512 4f023025fc0e16813a6f02a0ff5852470000cfc43c073f93686b02adf900ca2d6fb280c070f5a36e70c85f371d7736304274f48706f06a1a276db86e25cb9d29 DIST linked-hash-map-0.5.6.crate 15049 BLAKE2B 0f30e388633c60433dcbee353507f1c6857bd210f0b61a4d166a9b95067bdadaebe49d5fca4fa6ce13072e26037c6f75d46cc30cf8dc3c9cfcb3f33b33630093 SHA512 031a87645381c96beff33572e4bac1a9877e52fd2f99d39918fbede17d72291b35e2eb69e07edec20c3058554c35cc38fe85b8f175c2a3c69366136fcc71f707 @@ -278,6 +283,7 @@ DIST result-like-derive-0.4.6.crate 5814 BLAKE2B 2598173bb8920e6b8143e034a77eeab DIST ring-0.16.20.crate 5082615 BLAKE2B 6011eb7148c2d2ab410e564a06604f4350e07ea030e4d7dcb30574b977f0b0c7e53e09f6e6dbb2d068cdf110262876c48dfaeeef1b691932a056fe149916d934 SHA512 d97d1b08eb796d4c107426ff2c015ab1f221612500c8a57fca8e3f064e8c0f5ae2a5e6071d013313cd9f4be8fed4ba03beae84bd446f56b2b2ca5d483c328191 DIST ruff-0.0.286.gh.tar.gz 3000874 BLAKE2B 93455817c42d64b219e88e054cc7ea9a8b17dab76d6af5bdadeeeff97ca82a78b8d26293637dd76a87fea53a457a93b51215e38c96feb7fd62b00d6f266bf37a SHA512 c7e9c39b2379508cf6fd2abdd2168b9a7fc544901db64efd38b6665bedcc583f9760dd1ef549ef33d81ff7e1b383be588724b7315f4802137796dcc5dd3c088e DIST ruff-0.0.287.gh.tar.gz 3020933 BLAKE2B 98741b2128f513da986beea3668bca51f1f421bdb858cdd4bebc2423abc11176690f8888fe4df48844b861d9e5e35e519cdc749e3d9d1d7282f2fa0a694fe4dc SHA512 a75d841dbec5faaba1fc4fbff4574fd67b34f4ee70d12597e8512faf6139a01d739cfe3c617771ec4502b450f037af00d028e7f2495de05cd055d8709f14f1fa +DIST ruff-0.0.288.gh.tar.gz 3051590 BLAKE2B 7b00501eb04c5e2048e92ae5ac65b1ab0c6ad4d59f004cb887824962e01581c9305516dc406aee4edd4170b9eb53ed10f68f52a479be7d09c4c8f61bd808d112 SHA512 ff9de3fb23f8cad298ed298c75d46cee766e5af746deedaac5501f5cd7712111ddbdefc87408bbd72fd9754dee6bfe24dc19b72e75b5b6920fc62ddaeebcc6d4 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 diff --git a/dev-util/ruff/ruff-0.0.288.ebuild b/dev-util/ruff/ruff-0.0.288.ebuild new file mode 100644 index 000000000000..9d0fc95cd065 --- /dev/null +++ b/dev-util/ruff/ruff-0.0.288.ebuild @@ -0,0 +1,468 @@ +# 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.0.5 + 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.5.0 + anstyle-parse@0.2.1 + anstyle-query@1.0.0 + anstyle-wincon@2.1.0 + anstyle@1.0.2 + anyhow@1.0.75 + argfile@0.1.5 + 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.28 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + ciborium@0.2.1 + clap@4.4.1 + clap_builder@4.4.1 + 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.0 + 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 + deranged@0.3.8 + 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 + 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 + 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 + imara-diff@0.1.5 + imperative@1.0.5 + indexmap@1.9.3 + indexmap@2.0.0 + indicatif@0.17.6 + indoc@2.0.3 + inotify-sys@0.1.5 + inotify@0.9.6 + insta-cmd@0.4.0 + insta@1.31.0 + instant@0.1.12 + is-macro@0.2.2 + is-terminal@0.4.9 + itertools@0.10.5 + 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@0.1.0 + libcst_derive@0.1.0 + libmimalloc-sys@0.1.34 + 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.2 + memoffset@0.9.0 + mimalloc@0.1.38 + 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@5.2.0 + nu-ansi-term@0.46.0 + num-bigint@0.4.4 + num-integer@0.1.45 + num-traits@0.2.16 + 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 + overload@0.1.1 + parking_lot@0.12.1 + parking_lot_core@0.9.8 + paste@1.0.14 + 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.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 + 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.66 + pyproject-toml@0.6.1 + 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.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.7 + regex-syntax@0.6.29 + regex-syntax@0.7.5 + regex@1.9.4 + 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.100.2 + 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.13 + schemars_derive@0.8.13 + scoped-tls@1.0.1 + scopeguard@1.2.0 + sct@0.7.0 + semver@1.0.18 + serde-wasm-bindgen@0.5.0 + serde@1.0.188 + serde_derive@1.0.188 + serde_derive_internals@0.26.0 + serde_json@1.0.105 + 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.1.0 + similar@2.2.1 + siphasher@0.3.11 + smallvec@1.11.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.29 + tempfile@3.8.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.47 + thiserror@1.0.47 + thread_local@1.1.7 + tikv-jemalloc-sys@0.5.4+5.3.0-patched + tikv-jemallocator@0.5.4 + time-core@0.1.1 + time-macros@0.2.14 + time@0.1.45 + time@0.3.28 + tiny-keccak@2.0.2 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.7.6 + toml_datetime@0.6.3 + toml_edit@0.19.14 + 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.11 + 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.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.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.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 +" + +declare -A GIT_CRATES=( + [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" + +# syn-ext +LICENSE+=" + BSD-2 +" + +# rustls-webpki +LICENSE+=" + ISC BSD +" + +# LibCST +LICENSE+=" + MIT PSF-2 Apache-2.0 +" + +# ring +LICENSE+=" + ISC SSLeay openssl MIT +" + +BDEPEND=" + dev-util/patchelf + >=virtual/rust-1.71 +" + +QA_FLAGS_IGNORED="usr/bin/.* usr/lib.*/libruff.*.so" + +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[@]}" +} |