From f20958f66a5e97c92cc44354e07e3e3089dfc23d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 2 May 2023 23:23:40 +0100 Subject: gentoo auto-resync : 02:05:2023 - 23:23:39 --- dev-util/ruff/Manifest | 9 +- dev-util/ruff/ruff-0.0.263-r1.ebuild | 439 ----------------------------------- dev-util/ruff/ruff-0.0.264.ebuild | 439 +++++++++++++++++++++++++++++++++++ 3 files changed, 443 insertions(+), 444 deletions(-) delete mode 100644 dev-util/ruff/ruff-0.0.263-r1.ebuild create mode 100644 dev-util/ruff/ruff-0.0.264.ebuild (limited to 'dev-util/ruff') diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 0cd15b896d3e..ff7455b2425e 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -1,6 +1,6 @@ DIST Inflector-0.11.4.crate 17438 BLAKE2B eaf0c7f983b3186e9bc89353021a10592f2877e46585bd50b96db9b087343d1199c7b6cf3fa53cd274fb6d33de025a904b8aa31a7ac9599ae3689ecdbcec34cd SHA512 f1f6463e033b6d3c16c51dc1e1a3f5569954308b95b59058294b7f9310919bbda797e99e6a07529071bb83f0688867a243997d33795a7136b0af73977004296e DIST LibCST-80e4c1399f95e5beb532fdd1e209ad2dbb470438.gh.tar.gz 726513 BLAKE2B 2df71bc003ddd66a45da4529b2beb213fb28f39ea9f0a4016b9be43c4b38740bb0be0c154818e22b81680b1c1229e07c20a96dd0a29579c3d98bf19026aec087 SHA512 f2d5d07b4039046271a2edabfc0cdd244cf5637db44fb3bafe56b6b8966913f199d1483e2e04b993b14aa81330e748db6400510411f8f4543df2d6b867f474ff -DIST RustPython-c15f670f2c30cfae6b41a1874893590148c74bc4.gh.tar.gz 10780824 BLAKE2B 0724c9c0dc64f8c0e71472cf54cc11966bd8f607eeae8c6dde2fcf72ecb8aa206ec033b5899ac8ecd95cae1573569e9663b1a2ae47f2df5a132bf7e0de422b91 SHA512 c12f873c43bb6082c469f49fc262325b2973ce6b62060402cde75bc75821ef133d7fc2cbd93a18446951cc6cb87b8de9172020ec3007ce0567208419b2ffbe65 +DIST RustPython-c3147d2c1524ebd0e90cf1c2938d770314fd5a5a.gh.tar.gz 10875298 BLAKE2B 69df8fe93429dd36450bdfafcd4e8cc7eb52fc63280702385a2dc4ab5ae333bd52d32dfa5901c4ba5acabb702c4c81ba37512888f44c1c45d13114e56ff22cfd SHA512 fe3c5816a01c53450bd370f0f7240f6c76726bf9a771350365cd5d140dda6fc405cd19df5af70c7c5f253d1fd542d2d862ad0af995027d372b621b449bdb6c36 DIST adler-1.0.2.crate 12778 BLAKE2B a1dc17786adae945ac09d3525e609ed944e6465690787bbb831a1b9d53793cba1989793d0a5606d5d23ee20d36457923d451b1b3530c9ec7072a487aa3e55bbd SHA512 7ab190d31890fc05b0b55d8e2c6527a505e06793d5496be0b3831e0513412f9ba97f8148f6f68ed0770fa9cd980a5092d885e058becf1d5506b7c74b82674aa1 DIST ahash-0.7.6.crate 38030 BLAKE2B aca3661477fcd7822d6d10970151e05c28e1615f8cd7ddaac064b15102027e404b19b0f3f16dd76145048594ea1c22ae27dd08cc05c411efbae9ec7a1ef55ce9 SHA512 61354688b6fb096359faefb6f34be958cd2215d56b88c22c737d24183eaad433f811bc9e64f927e4852c87d2799c22fda82b55cfbef2ed6357ff74f0c4ffec68 DIST aho-corasick-0.7.20.crate 111440 BLAKE2B 3f5d54fea2793ce1c2c4d5b3049b910f45a5721e7538cb2557df63dc3069ab3f6b66aceb5e9a48f21c43ae29778fd045428ea103b2a6de81659e605e30e64ca6 SHA512 ad31f3d1b3fe41e593d4ca7e721bbad62936f2e6a17fd1e0997353edb6fc906d1bef2b79f0ac7c7676abe637bbabb23ff22059947be379a2441011f8178983c5 @@ -15,6 +15,7 @@ DIST anstyle-parse-0.2.0.crate 24361 BLAKE2B f796ddf1af04c93d7ee2721731e5cd22bb9 DIST anstyle-query-1.0.0.crate 8620 BLAKE2B 2d296b5066fd6284a2410923215571e6df650c5ef892d6de7a7088a0996ca30608797feabc84f3c325ff4d07001dac80ac5067d2a9c9d15d9ba59a276b399f53 SHA512 2781be5c82293b7ae338ec5046fbeb130de9eb2dbf2e4dfaa73ca5233032e1e52c133e141b02f33d4bc36d996a0a3f680ac82d42d614a5305005f60547133c7a DIST anstyle-wincon-1.0.0.crate 11662 BLAKE2B bb7fd569df3386b6bd7b4bb2b2dcd6905a180c755d38296ac389c9e1e5ad551195bccaa570ab9c71f20e39f13f48225d4dd0f839852fdb9122d3d05c367b2814 SHA512 753be99775c586e3f0c272f9ba131dd70a02e6faac006acb5dffa19e4c5f4be961275cdf4abbf2929da7335125082cd71a7161cbdf6e737c14607c06bd75267c DIST anyhow-1.0.70.crate 43803 BLAKE2B 574da0e447592c12051deef171850b00ac2347dd336f71915dd21f45cc03439fbcdbaffe261097d53cc11fa0db75b1e3b21ba667f26c08db7125b1c6264973de SHA512 6fd1338e4cbe915cb01fcc5e05e7e0c051868701eeb27f03577a7cfdd59057493922b36e2308f7050608a851112d4d24cff2826456160ac8930fe961640e809b +DIST argfile-0.1.5.crate 7951 BLAKE2B 91e38d07c0898b5a2b14ea69e9f1bc23203ced3dbb0eed279d3fdeaeba0bab4d8f97c148925379ef9d9efc63c716a700c2dd7537043548058fe39103a5f72f54 SHA512 771053dfe1d33d6f84865fa192929908e0bee07dc3aa806163c1f73da574eced877208705a047d68139f51c343bac4bbc5fc6ea91babc56129f499b5249296af DIST ascii-1.1.0.crate 36075 BLAKE2B 7e68e7b3d5e6aef132c52db8c078fdf2e70462d9238b637015d7964312737fc09b35719143ce1fbd3e5b8072c21717f33e5061adf4da1913a9b9f11ac9c453ec SHA512 d74982ad87796f0d745bfd654450dc74174fdc6aa2a0047e5d250f76dd6079189dc0f05d02a73a85b1d3a86c163524d1f43f5d014de0153cd69fad4de26cf0ec DIST ascii-canvas-3.0.0.crate 10575 BLAKE2B fc40c40551e3e1b2bec6ae5a85ee8b0a1ab1ef3425cdd19ec6dd47d849205004781a2c8f51470417fe7556cf8524cc63b84a532532c5081604adbcd92d286b44 SHA512 216056640604f5faba6d46e2c94ff75234fec83d3bc2dc7cf34dd279706362874e3a513c717b23bc591da07cc3088458913c4e9aa5f280550c93d261095c8703 DIST assert_cmd-2.0.11.crate 25346 BLAKE2B 1777fd5e3c0ea962d06b4e26e8c7437a3f1d8834fd0439338f53985e5958f2e11dadcf96a8ac86035bb9bce20ed9072fe4c37cee5dafdda3e6d2f72afe8b7a8e SHA512 45c142e7d4f526fe66f9987ea6c62750c53eb2e429cafff6a13bb5fd6377c59888cfa19abbc3a3d50f377f69ea894c42906639020c86de09805662d929a95aae @@ -168,7 +169,6 @@ DIST pathdiff-0.2.1.crate 7142 BLAKE2B 7f9a162c2add4acd69a81171fdb31aa9a67beb4e1 DIST peg-0.8.1.crate 17093 BLAKE2B 9cef0848d005fac3cd767dff16c1226bac39b1fbf9ab4730a03226249c672fc7d75c964eee0a6c109e631a43a1d9a161cb1093d2e98c29e03631af47c133b681 SHA512 e2b88ee2f55e1761b46191bd79a945261bbc7ce327a98cbd47394e5d60608a47cc845cdb0d834149e43d694ff542fb9eadbbc2b628facfe492f89a6bd1786d38 DIST peg-macros-0.8.1.crate 27881 BLAKE2B 70705aa86c901bd54cfc8e1bc37d5cfcc4e932e2953e4b2f70be862df938d5e0b57258d0ff7812f217ae19b9dbb3f2a40161a2392d4877b040892d8c61e22593 SHA512 84f7fb240ea3c543df4d28f3bbcd80fa6d68133af3557c214eca2298a8e988dbbea84fda85fc87d1f1149dcf4cf6e8b83e23c3a75525409aa0d02758fcf2cfc1 DIST peg-runtime-0.8.1.crate 4019 BLAKE2B 48293433e655ee0a243361f1af0fd35160a32a41cb40d5acbbffafec0d9adac9c7b01668288f4108d896c1509abccedac5ba9c08b2ab38482efafee2394c66bc SHA512 360677e388c0d98053bf60d7ae003bafae38e892d4f30e5f31f6fe26f13e236aa1e0dfc7c4d741604b4df601a1cbee376b5a32078ec6b0abe0b2062ab0d136cc -DIST pep440-rs-a8fef4ec47f4c25b070b39cdbe6a0b9847e49941.gh.tar.gz 22010 BLAKE2B 6f17d70a295ad0ef30417139d60cb6939af28b2a1ee60ec779130b92487348054a470a00474e2cd45a4f11109c3a8ef058822f4fe4839d663f7996dffdd2aade SHA512 99f1f98e41c21cb58dfa5c0db1005e378993e0d88b7b819d2c06f876054b5f6c64a92164ab30b2eb224bbeb75810c090ff333f40daecd1a29ad78d97a27045a3 DIST pep440_rs-0.3.5.crate 23571 BLAKE2B bb9b334b29bddbf26e836dba22ae80ccca2bcd46cfd369d41cfa6af66f27fcd4c1fc75d021dbad15b6f1b14e7281b1803cf79c4dd59f60cbf71e165ee1305e90 SHA512 673d2819d70c409fb56adbc3254a150de7ab9a2602583d352d71d61a86c2ada6615f53b6ad2f0b9456f0efe83359cf812b7b5dd03bcb82ca4b710000150ec7f0 DIST percent-encoding-2.2.0.crate 10075 BLAKE2B 397e59acc3953868c709244b89a2e0db3304c0b574ecba761026b570a485f2cb5b0b2a0159586d1f342ec395ef02ace536da3bc1c72093e1cf93f8b37b26b0ec SHA512 890a5256d2b4290e12e04a02c3529f3a017faa2b6016a4dd0f08b36509f0b1107eacfcb4702024d6a21ff8852a11f263c1adc096b16ef8d12c45a734c087fe68 DIST petgraph-0.6.3.crate 185740 BLAKE2B dc3d4a0c29662f761bfc107d9654619a3443b07890e0caea5851a6dfab2f071181ab94c521d641197e159098885363d7ed4e1c9c34333fd1339c7484c2237c4e SHA512 9b624ab93ebd06fcda716b1e79dd82c5594a11c71ea0ad806b6b708fee3f432ee174ac292c5af3bb0c84b411c26564ad11436624a52ac4e74ed40432778c21e8 @@ -211,7 +211,7 @@ DIST regex-syntax-0.7.1.crate 339705 BLAKE2B 59dcdb9e0f5a2008db491756fb353745bf4 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.263.gh.tar.gz 1389979 BLAKE2B ed92a85bd369798d0474acdf8b5df710822bdc708a596d2ecd95bdc060514cad0ac8b0ad3e8ee42fad84c913a32a77d969bd8e32b697f4fb1d3ed747fa40efdb SHA512 dc374262e90a519f54d8c6cd13fc493c22f9737db778836b42c9348738376ce9742f465e4f85dc1aae20b22febe7bda1b8b8727ddb36e313bcd2fa8683f33a20 +DIST ruff-0.0.264.gh.tar.gz 1395392 BLAKE2B c7c0b1c8e917f2f5b095ee98a23c6e4782a1e6ee86f85ba4cf48dcbb3dcf582d17feb2b084fc1635be61739519d6a3bc3ff8cf3976d044ad11ccf05bd7fdfde4 SHA512 523192acb8345bc768bab9cac0ce1763af43fbb3a2d21a242ded8e998db08a007d822685468632c941136a6dd3d5ae636632c018cc1b2e07aee5d2f701aee766 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.13.crate 316223 BLAKE2B 18cc0af254d078b164b015e91336ecd809541e379bec7ef8a3431c20eb72006e101a61be8c67787608b5f117833fd019d76bb11889ccc63b5bf8ad30908024d1 SHA512 6c88b727027232587f646052a601681328fa6b50f006d116c5c351db6ae7ad11ca35a9f4b5f306f6323507019deadbce9fca6ec6e7afebf44ade850769070a40 @@ -232,7 +232,6 @@ DIST serde_derive-1.0.160.crate 55081 BLAKE2B 851cbd173bd758d46c9f545f05a17f65f7 DIST serde_derive_internals-0.26.0.crate 25382 BLAKE2B 7829d9f7efe64b057efea96d60e4a53623757a58fe7fdd53c1225c0a1f1c80338aec9e2a8c4033a1e90f9e18940796601a2ef62f9a423fc39adc00a8b9b6e065 SHA512 acf635d10b41400e2c10d326fc7ca60dbe9094c2d1d94f4f34905e6978b155e014aebe29e0cc2b00587c97751360ab0dfa71b5c6901629bda9322754e2f07890 DIST serde_json-1.0.96.crate 144652 BLAKE2B 2754e63479aa07507015dcb0f989d6447f5b2c01e5f02cf8a843d90c90c6fd0acd3ecb68d80d76c249efdabe0bd0670649a9e576269928d2276ba00a3153131d SHA512 39779419900e1d395d81e70cff0e7a688564a66124b08e74da54ac30f389c912707f4bf5e29afab6fa106faf4bf4e0b841f42fef125cf7bec185482ff6bbba0e DIST serde_spanned-0.6.1.crate 7828 BLAKE2B 78d39bca0850b78f0835167ca7786c0bf356d668389aaaf3ace946e91d9a7db8dcba895e833d87e88502b2ba969cac9aad6c1a053c5ecb37f845ebb3b0bb5b32 SHA512 6271aa2af243021002a10cdbd16cb081bf10ab53a61cace104182eb4f28e0c0d7c447b7dcedb350ce78debf5ed6ce6502cb823ae9177d98c5288310094eb22d9 -DIST serde_test-1.0.160.crate 19533 BLAKE2B 02f49d39d1f5b8ebe24c362e9530b5913161feb6daf67dcb4e573cafbe4f7850f5dbeada12e6af3d804f9f913f4dc04ca61859a239e4c4b74f00996672b8818f SHA512 b064447a8a5a89d9fe8c0ecc90a216dfa6899bb293eba5b85e97cffb22ae094427c4e2b49dc0db241dc1973840bfc89e01a19b227d158358f6b3071f126fcda5 DIST shellexpand-3.1.0.crate 25591 BLAKE2B ba395d9d98fed37979e97609689f909b264ddb44dae56ae4958da9a0e85aa382a00bbca42530cda2701e934233aa1d44509495235ba0512beb33a827cee5c9f0 SHA512 9b20074425db359cf92f29c52be91a3a58a91e6f3116b210913f24dc31b5371ef9d77fe46e7da39e42eac87fa4ccb8ebf9175d7bd5fe6b520d12b9d3b31cc65e DIST similar-2.2.1.crate 51147 BLAKE2B c86005ff69a14980db2cb90b13ed908448a711f09d1ee20a109d1dab2cc5bd839274f3803082721f1d81003c9011efdadcd190f4cb46eb09b26e338107546f45 SHA512 9a353bfbe495bab83e401314bb97c6605fa6283af06e03bad50bc429388c7abf44bb9cc68db781ef2b786840eb444907f35b70b17343b2cb993800536b4e36a2 DIST siphasher-0.3.10.crate 9889 BLAKE2B e5dd6d265340b4c9e4266ab1ff3a20f1fb87fd493b2d7b5fba32d26421cc858b38929e4ab96941d0c055375b8acebbd04236d994cadca324500ed05064b9bfc9 SHA512 f90425a2cccc9575d377bb92a765d34653ddef1ac12b7c63dc6d700aaa74b525787e11609061c2d3e44ea56fe0e4b8f93f7b13f0279b5de2e0f710c5caffd4ce @@ -341,5 +340,5 @@ DIST winnow-0.4.1.crate 138177 BLAKE2B 9fb55dc5dbca2250c5921aebc42fd8dff7da6fc70 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.263-r1.ebuild 9618 BLAKE2B ba4f790aa995fcb7790afe5006bdd1755fc2a5c44a0fd785d8b69a137d5e3563100971a8f7651334a9482985b69aff12218a8473e38b0d900f157f5f48513e1e SHA512 6c657daeb823ffa18a0c17cb81a87e55551aea7cf245fc95d2553a6f2d9377e1356afb10b1fe3585cad335c1780b01eb36df266c2422caddc0a70a60b98303e1 +EBUILD ruff-0.0.264.ebuild 9640 BLAKE2B 36bc1966183facf09bc038654fd91aea7b40cd82c12644a9d5117866c4d63370802acd7e41d62d6acf94fd2aa1f5f96ce7535af00e8d08e18b6c09201ade6db2 SHA512 a126bb856acd44593cb17f6c5e316b016f6016f80c892f639df2cd8035fde914000c42df7b8bc4b1927c508ae38683902fd5f32e5e32edec9e4c4fb0984e591a MISC metadata.xml 375 BLAKE2B 46856b904e322f25ebb96268418206fb70b76f22751c5f8c12d0b3fb51a11b91518c42313d8a9f2fbd71dd5a3ca359772f54829a7858148c5f5f03f44fe1dad4 SHA512 ad24b0cafc7adc414a0da36f5b518eacbba3069ac15484504ce063916133e7c15945c04c7c6886e30c75010300598876ab498d5d44c48f66c5ed252f3fd2f36f diff --git a/dev-util/ruff/ruff-0.0.263-r1.ebuild b/dev-util/ruff/ruff-0.0.263-r1.ebuild deleted file mode 100644 index d58a4a6835fc..000000000000 --- a/dev-util/ruff/ruff-0.0.263-r1.ebuild +++ /dev/null @@ -1,439 +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 - aho-corasick-1.0.1 - android_system_properties-0.1.5 - anes-0.1.6 - annotate-snippets-0.6.1 - annotate-snippets-0.9.1 - anstream-0.3.0 - anstyle-1.0.0 - anstyle-parse-0.2.0 - anstyle-query-1.0.0 - anstyle-wincon-1.0.0 - anyhow-1.0.70 - ascii-1.1.0 - ascii-canvas-3.0.0 - assert_cmd-2.0.11 - atty-0.2.14 - autocfg-1.1.0 - base64-0.13.1 - bincode-1.3.3 - bit-set-0.5.3 - bit-vec-0.6.3 - bitflags-1.3.2 - bitflags-2.1.0 - bstr-0.2.17 - bstr-1.4.0 - bumpalo-3.12.1 - cachedir-0.3.0 - cast-0.3.0 - cc-1.0.79 - cfg-if-1.0.0 - chic-1.2.2 - chrono-0.4.24 - ciborium-0.2.0 - ciborium-io-0.2.0 - ciborium-ll-0.2.0 - clap-3.2.23 - clap-4.2.4 - clap_builder-4.2.4 - clap_complete-4.2.1 - clap_complete_command-0.5.1 - clap_complete_fig-4.2.0 - clap_complete_nushell-0.1.10 - clap_derive-4.2.0 - clap_lex-0.2.4 - clap_lex-0.4.1 - clearscreen-2.0.1 - codespan-reporting-0.11.1 - colorchoice-1.0.0 - colored-2.0.0 - configparser-3.0.2 - console-0.15.5 - console_error_panic_hook-0.1.7 - console_log-1.0.0 - core-foundation-sys-0.8.4 - crc32fast-1.3.2 - criterion-0.4.0 - criterion-plot-0.5.0 - crossbeam-channel-0.5.8 - crossbeam-deque-0.8.3 - crossbeam-epoch-0.9.14 - crossbeam-utils-0.8.15 - crunchy-0.2.2 - ctor-0.1.26 - cxx-1.0.94 - cxx-build-1.0.94 - cxxbridge-flags-1.0.94 - cxxbridge-macro-1.0.94 - diff-0.1.13 - difflib-0.4.0 - dirs-4.0.0 - dirs-5.0.0 - dirs-next-2.0.0 - dirs-sys-0.3.7 - dirs-sys-0.4.0 - dirs-sys-next-0.1.2 - doc-comment-0.3.3 - drop_bomb-0.1.5 - dyn-clone-1.0.11 - either-1.8.1 - ena-0.14.2 - encode_unicode-0.3.6 - errno-0.3.1 - errno-dragonfly-0.1.2 - fastrand-1.9.0 - fern-0.6.2 - filetime-0.2.21 - fixedbitset-0.4.2 - flate2-1.0.25 - fnv-1.0.7 - form_urlencoded-1.1.0 - fsevent-sys-4.1.0 - getrandom-0.2.9 - 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.56 - iana-time-zone-haiku-0.1.1 - idna-0.3.0 - ignore-0.4.20 - imperative-1.0.4 - indexmap-1.9.3 - inotify-0.9.6 - inotify-sys-0.1.5 - insta-1.29.0 - instant-0.1.12 - io-lifetimes-1.0.10 - is-macro-0.2.2 - is-terminal-0.4.7 - itertools-0.10.5 - itoa-1.0.6 - js-sys-0.3.61 - kqueue-1.0.7 - kqueue-sys-1.0.3 - lalrpop-0.19.9 - lalrpop-util-0.19.9 - 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.142 - libmimalloc-sys-0.1.32 - link-cplusplus-1.0.8 - linked-hash-map-0.5.6 - linux-raw-sys-0.3.3 - lock_api-0.4.9 - log-0.4.17 - lz4_flex-0.9.5 - matches-0.1.10 - memchr-2.5.0 - memoffset-0.8.0 - mimalloc-0.1.36 - minimal-lexical-0.2.1 - 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-7.1.3 - 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.5.0 - output_vt100-0.1.3 - parking_lot-0.12.1 - parking_lot_core-0.9.7 - paste-1.0.12 - 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 - pep440_rs-0.3.5 - percent-encoding-2.2.0 - 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-3.0.3 - predicates-core-1.0.6 - predicates-tree-1.0.9 - pretty_assertions-1.3.0 - proc-macro-error-1.0.4 - proc-macro-error-attr-1.0.4 - proc-macro2-1.0.56 - quick-junit-0.3.2 - quick-xml-0.26.0 - quote-1.0.26 - 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_syscall-0.3.5 - redox_users-0.4.3 - regex-1.8.1 - regex-automata-0.1.10 - regex-syntax-0.6.29 - regex-syntax-0.7.1 - 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.37.13 - rustls-0.20.8 - rustversion-1.0.12 - ryu-1.0.13 - 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.5 - sct-0.7.0 - semver-1.0.17 - serde-1.0.160 - serde-wasm-bindgen-0.5.0 - serde_derive-1.0.160 - serde_derive_internals-0.26.0 - serde_json-1.0.96 - serde_spanned-0.6.1 - serde_test-1.0.160 - shellexpand-3.1.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.7 - strsim-0.10.0 - strum-0.24.1 - strum_macros-0.24.3 - syn-1.0.109 - syn-2.0.15 - syn-ext-0.4.0 - tempfile-3.5.0 - term-0.7.0 - termcolor-1.2.0 - terminfo-0.8.0 - termtree-0.4.1 - test-case-3.1.0 - test-case-core-3.1.0 - test-case-macros-3.1.0 - textwrap-0.16.0 - thiserror-1.0.40 - thiserror-impl-1.0.40 - 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.3 - toml_datetime-0.6.1 - toml_edit-0.19.8 - tracing-0.1.37 - tracing-attributes-0.1.23 - tracing-core-0.1.30 - twox-hash-1.6.3 - typed-arena-2.0.2 - unic-char-property-0.9.0 - unic-char-range-0.9.0 - unic-common-0.9.0 - unic-emoji-char-0.9.0 - unic-ucd-category-0.9.0 - unic-ucd-ident-0.9.0 - unic-ucd-version-0.9.0 - unicode-bidi-0.3.13 - unicode-ident-1.0.8 - 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 - utf8parse-0.2.1 - uuid-1.3.1 - version_check-0.9.4 - volatile-0.3.0 - 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-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 - wild-2.1.0 - 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-0.48.0 - windows-sys-0.42.0 - windows-sys-0.45.0 - windows-sys-0.48.0 - windows-targets-0.42.2 - windows-targets-0.48.0 - windows_aarch64_gnullvm-0.42.2 - windows_aarch64_gnullvm-0.48.0 - windows_aarch64_msvc-0.42.2 - windows_aarch64_msvc-0.48.0 - windows_i686_gnu-0.42.2 - windows_i686_gnu-0.48.0 - windows_i686_msvc-0.42.2 - windows_i686_msvc-0.48.0 - windows_x86_64_gnu-0.42.2 - windows_x86_64_gnu-0.48.0 - windows_x86_64_gnullvm-0.42.2 - windows_x86_64_gnullvm-0.48.0 - windows_x86_64_msvc-0.42.2 - windows_x86_64_msvc-0.48.0 - winnow-0.4.1 - 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 - >=virtual/rust-1.69 -" - -# 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/.* 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.264.ebuild b/dev-util/ruff/ruff-0.0.264.ebuild new file mode 100644 index 000000000000..aba3897e295e --- /dev/null +++ b/dev-util/ruff/ruff-0.0.264.ebuild @@ -0,0 +1,439 @@ +# 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 + aho-corasick-1.0.1 + android_system_properties-0.1.5 + anes-0.1.6 + annotate-snippets-0.6.1 + annotate-snippets-0.9.1 + anstream-0.3.0 + anstyle-1.0.0 + anstyle-parse-0.2.0 + anstyle-query-1.0.0 + anstyle-wincon-1.0.0 + anyhow-1.0.70 + argfile-0.1.5 + ascii-1.1.0 + ascii-canvas-3.0.0 + assert_cmd-2.0.11 + atty-0.2.14 + autocfg-1.1.0 + base64-0.13.1 + bincode-1.3.3 + bit-set-0.5.3 + bit-vec-0.6.3 + bitflags-1.3.2 + bitflags-2.1.0 + bstr-0.2.17 + bstr-1.4.0 + bumpalo-3.12.1 + cachedir-0.3.0 + cast-0.3.0 + cc-1.0.79 + cfg-if-1.0.0 + chic-1.2.2 + chrono-0.4.24 + ciborium-0.2.0 + ciborium-io-0.2.0 + ciborium-ll-0.2.0 + clap-3.2.23 + clap-4.2.4 + clap_builder-4.2.4 + clap_complete-4.2.1 + clap_complete_command-0.5.1 + clap_complete_fig-4.2.0 + clap_complete_nushell-0.1.10 + clap_derive-4.2.0 + clap_lex-0.2.4 + clap_lex-0.4.1 + clearscreen-2.0.1 + codespan-reporting-0.11.1 + colorchoice-1.0.0 + colored-2.0.0 + configparser-3.0.2 + console-0.15.5 + console_error_panic_hook-0.1.7 + console_log-1.0.0 + core-foundation-sys-0.8.4 + crc32fast-1.3.2 + criterion-0.4.0 + criterion-plot-0.5.0 + crossbeam-channel-0.5.8 + crossbeam-deque-0.8.3 + crossbeam-epoch-0.9.14 + crossbeam-utils-0.8.15 + crunchy-0.2.2 + ctor-0.1.26 + cxx-1.0.94 + cxx-build-1.0.94 + cxxbridge-flags-1.0.94 + cxxbridge-macro-1.0.94 + diff-0.1.13 + difflib-0.4.0 + dirs-4.0.0 + dirs-5.0.0 + dirs-next-2.0.0 + dirs-sys-0.3.7 + dirs-sys-0.4.0 + dirs-sys-next-0.1.2 + doc-comment-0.3.3 + drop_bomb-0.1.5 + dyn-clone-1.0.11 + either-1.8.1 + ena-0.14.2 + encode_unicode-0.3.6 + errno-0.3.1 + errno-dragonfly-0.1.2 + fastrand-1.9.0 + fern-0.6.2 + filetime-0.2.21 + fixedbitset-0.4.2 + flate2-1.0.25 + fnv-1.0.7 + form_urlencoded-1.1.0 + fsevent-sys-4.1.0 + getrandom-0.2.9 + 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.56 + iana-time-zone-haiku-0.1.1 + idna-0.3.0 + ignore-0.4.20 + imperative-1.0.4 + indexmap-1.9.3 + inotify-0.9.6 + inotify-sys-0.1.5 + insta-1.29.0 + instant-0.1.12 + io-lifetimes-1.0.10 + is-macro-0.2.2 + is-terminal-0.4.7 + itertools-0.10.5 + itoa-1.0.6 + js-sys-0.3.61 + kqueue-1.0.7 + kqueue-sys-1.0.3 + lalrpop-0.19.9 + lalrpop-util-0.19.9 + 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.142 + libmimalloc-sys-0.1.32 + link-cplusplus-1.0.8 + linked-hash-map-0.5.6 + linux-raw-sys-0.3.3 + lock_api-0.4.9 + log-0.4.17 + lz4_flex-0.9.5 + matches-0.1.10 + memchr-2.5.0 + memoffset-0.8.0 + mimalloc-0.1.36 + minimal-lexical-0.2.1 + 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-7.1.3 + 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.5.0 + output_vt100-0.1.3 + parking_lot-0.12.1 + parking_lot_core-0.9.7 + paste-1.0.12 + 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 + pep440_rs-0.3.5 + percent-encoding-2.2.0 + 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-3.0.3 + predicates-core-1.0.6 + predicates-tree-1.0.9 + pretty_assertions-1.3.0 + proc-macro-error-1.0.4 + proc-macro-error-attr-1.0.4 + proc-macro2-1.0.56 + quick-junit-0.3.2 + quick-xml-0.26.0 + quote-1.0.26 + 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_syscall-0.3.5 + redox_users-0.4.3 + regex-1.8.1 + regex-automata-0.1.10 + regex-syntax-0.6.29 + regex-syntax-0.7.1 + 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.37.13 + rustls-0.20.8 + rustversion-1.0.12 + ryu-1.0.13 + 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.5 + sct-0.7.0 + semver-1.0.17 + serde-1.0.160 + serde-wasm-bindgen-0.5.0 + serde_derive-1.0.160 + serde_derive_internals-0.26.0 + serde_json-1.0.96 + serde_spanned-0.6.1 + shellexpand-3.1.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.7 + strsim-0.10.0 + strum-0.24.1 + strum_macros-0.24.3 + syn-1.0.109 + syn-2.0.15 + syn-ext-0.4.0 + tempfile-3.5.0 + term-0.7.0 + termcolor-1.2.0 + terminfo-0.8.0 + termtree-0.4.1 + test-case-3.1.0 + test-case-core-3.1.0 + test-case-macros-3.1.0 + textwrap-0.16.0 + thiserror-1.0.40 + thiserror-impl-1.0.40 + 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.3 + toml_datetime-0.6.1 + toml_edit-0.19.8 + tracing-0.1.37 + tracing-attributes-0.1.23 + tracing-core-0.1.30 + twox-hash-1.6.3 + typed-arena-2.0.2 + unic-char-property-0.9.0 + unic-char-range-0.9.0 + unic-common-0.9.0 + unic-emoji-char-0.9.0 + unic-ucd-category-0.9.0 + unic-ucd-ident-0.9.0 + unic-ucd-version-0.9.0 + unicode-bidi-0.3.13 + unicode-ident-1.0.8 + 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 + utf8parse-0.2.1 + uuid-1.3.1 + version_check-0.9.4 + volatile-0.3.0 + 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-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 + wild-2.1.0 + 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-0.48.0 + windows-sys-0.42.0 + windows-sys-0.45.0 + windows-sys-0.48.0 + windows-targets-0.42.2 + windows-targets-0.48.0 + windows_aarch64_gnullvm-0.42.2 + windows_aarch64_gnullvm-0.48.0 + windows_aarch64_msvc-0.42.2 + windows_aarch64_msvc-0.48.0 + windows_i686_gnu-0.42.2 + windows_i686_gnu-0.48.0 + windows_i686_msvc-0.42.2 + windows_i686_msvc-0.48.0 + windows_x86_64_gnu-0.42.2 + windows_x86_64_gnu-0.48.0 + windows_x86_64_gnullvm-0.42.2 + windows_x86_64_gnullvm-0.48.0 + windows_x86_64_msvc-0.42.2 + windows_x86_64_msvc-0.48.0 + winnow-0.4.1 + 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="c3147d2c1524ebd0e90cf1c2938d770314fd5a5a" +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/charliermarsh/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/ast" + [rustpython-common]="https://github.com/charliermarsh/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/common" + [rustpython-compiler-core]="https://github.com/charliermarsh/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/core" + [rustpython-parser]="https://github.com/charliermarsh/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/compiler/parser" + [ruff_text_size]="https://github.com/charliermarsh/RustPython;${RUSTPYTHON_COMMIT};RustPython-%commit%/ruff_text_size" + [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 + >=virtual/rust-1.69 +" + +# 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/.* 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{,_dev},flake8-to-ruff,ruff_python_formatter} + dolib.so $(find target/$(usex 'debug' 'debug' 'release') -maxdepth 1 -name '*.so') + + dodoc "${DOCS[@]}" +} -- cgit v1.2.3