From 7828eef5de9e45f50282e2b1eaf348f1ac7af477 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Jun 2023 01:23:10 +0100 Subject: gentoo auto-resync : 23:06:2023 - 01:23:10 --- dev-util/ruff/Manifest | 6 +- dev-util/ruff/ruff-0.0.274-r1.ebuild | 411 ----------------------------------- dev-util/ruff/ruff-0.0.275.ebuild | 411 +++++++++++++++++++++++++++++++++++ 3 files changed, 414 insertions(+), 414 deletions(-) delete mode 100644 dev-util/ruff/ruff-0.0.274-r1.ebuild create mode 100644 dev-util/ruff/ruff-0.0.275.ebuild (limited to 'dev-util/ruff') diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index aa118ea65d41..870eeea3614f 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -1,7 +1,7 @@ DIST Inflector-0.11.4.crate 17438 BLAKE2B eaf0c7f983b3186e9bc89353021a10592f2877e46585bd50b96db9b087343d1199c7b6cf3fa53cd274fb6d33de025a904b8aa31a7ac9599ae3689ecdbcec34cd SHA512 f1f6463e033b6d3c16c51dc1e1a3f5569954308b95b59058294b7f9310919bbda797e99e6a07529071bb83f0688867a243997d33795a7136b0af73977004296e DIST LibCST-80e4c1399f95e5beb532fdd1e209ad2dbb470438.gh.tar.gz 726513 BLAKE2B 2df71bc003ddd66a45da4529b2beb213fb28f39ea9f0a4016b9be43c4b38740bb0be0c154818e22b81680b1c1229e07c20a96dd0a29579c3d98bf19026aec087 SHA512 f2d5d07b4039046271a2edabfc0cdd244cf5637db44fb3bafe56b6b8966913f199d1483e2e04b993b14aa81330e748db6400510411f8f4543df2d6b867f474ff -DIST RustPython-Parser-08ebbe40d7776cac6e3ba66277d435056f2b8dca.gh.tar.gz 245049 BLAKE2B 33421c69a28e946d9d6d0fd292927d9e29aca7e1f3f6f23fed3237444fc5eef8dbafe523c847924186b6970ed5a21cc8a7bbe3812ee0ff33b71e8704c548e385 SHA512 731574ddc1176846db2e19d5af8f89df96166bfa3719f2e58e53799fc96ae7018ec68e78f442e23c445ec94b3fdc896272952d07b9167ac3887bf61e75edfc42 DIST RustPython-Parser-335780aeeac1e6fcd85994ba001d7b8ce99fcf65.gh.tar.gz 293927 BLAKE2B 68ab64e633ac85bae1b041815c3cdbdb8c277642cb2904e5751c938a3a02f83890ead3756f6f19d513b350cd592615fe96c6214d29bd40cff5c062eabab9888b SHA512 0b5f15f21d2631caec7f9ce70ffbbb16f2c8dffda06e95504640c95937ac35d474c0d2518586cf5fd37a2147dcae7c73360c461e995d7a515759bc571d0d4f0f +DIST RustPython-Parser-f60e204b73b95bdb6ce87ccd0de34081b4a17c11.gh.tar.gz 245066 BLAKE2B 7c2392905765c3ae398043b169422e16a53cf2e85ad28d67e170f333e652310291d98823706772c69ca1116b439bf38733e1b0caa518a43de3cc926886b61cb4 SHA512 c3cabb7ad64634841236d8da73888b00226a723750babaf517888b6aab3fe9b5ff6724fff6dfe80d6a360b545c8cbc2400c5d59d2d3df089eea95e3c6291ffa5 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 @@ -218,7 +218,7 @@ DIST result-like-0.4.6.crate 4311 BLAKE2B 612ad606f331449907b9c0c99b525aedd53b46 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.270.gh.tar.gz 1498770 BLAKE2B ecdfd462da6222228d3e3cf710e779ea16837e792417d05c26547cddd95e3fb16471347f201b494a0a624266e22d8295c3ceaa6da6fd280fb76e0315fdd92b30 SHA512 baf7a36d276ce034672f87c2af10a527b05fccc6ab9e0614a09e3871d72120f131092cd6f9f04957744425c1ee5152c31656a9ec635630eecff48c86c3769af2 -DIST ruff-0.0.274.gh.tar.gz 1681838 BLAKE2B 6df6d8faed913cd0c3566982644f6a249a9ca3f275825717cd4559c745783538b9e5e281e2addcc1e3ea3b14a85acc4b5731667758dba9a26693f53414c6d40c SHA512 ec860cda2036e457993c70e956c770cdcee6dcaad9f464c5a0550ea17a9f08318449e07c83ef2bcc95ad3ef10ee4000dae1b2324890cf62724d983e5de263585 +DIST ruff-0.0.275.gh.tar.gz 1676153 BLAKE2B 7b8901a10d6c68c4817bdbc73c14ee64b481d9af868bd80c1ba121261e07682845051b4b931d86e2c2531d03373994f944b5a828b61b5cd1cab2ba6349db3455 SHA512 f2373b821596f5abf226a03562ad4bd49483c439009cf197a3aa971c1608bcba85d6d301a5a8ee559790504a37646000a876d92f48128dd5941712dcb50a7cbd 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.19.crate 323809 BLAKE2B 6a01e5128910c4b1333359efdacd5d0c1f0cf0ac4f2615e6891c10e7de3ce8df5ca50955a3e5c27f3b85d3ffee9fe28105aac3baa4fadd05172645e9f7ddb853 SHA512 e1c00f97414313580dfb7a616cd0e9a64d87950b4d4e6b536b5eaea93b8741f769ef62d4ee1461af8266758f9bdc136a445abbb05c8355a11d338a166b498722 @@ -361,5 +361,5 @@ DIST yaml-rust-0.4.5.crate 47783 BLAKE2B 3e888c5cc7afb43eaf3aaab2b6f47b86df164a6 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.270.ebuild 8960 BLAKE2B 1b5b01c36567229d79b0307586a1099027566ab1ac38dcc3cab828c2554f46a836eaccb231b9fa2b592759ccd778d5b190a9f194598a22fae6a86809b8220a17 SHA512 5def159f82b7602003fc76e750cbf2a0e290acf4b2a9b76c9621f10f4ee606cd135177cd4dbdcc310825e4f59e2c005c382de5cb1f899c43c8270086d5b1c3c1 -EBUILD ruff-0.0.274-r1.ebuild 9093 BLAKE2B 0acb7f45f5138ea0cfadd8949d1a6eba7f65f3b799755cfd942487a188f6e9528ae415112024cbba4455860206a81abb2d9da1b31c4674e6ef8e573e4cdbbcbe SHA512 e47885f98d2c86adf295288c37189a4ff8d97a69c422ee4731087aac57ce3ce65b9ade3336ab601d8e91fbcd088eeb82748b4dddb7e1247396f36ee380cbd2f1 +EBUILD ruff-0.0.275.ebuild 9093 BLAKE2B e21745ca51719e7f3a3c32ca540ec3f731887a2c18f3fddf322133c9cba379d8579ffb54c2a86a4f62369b0603767d1b7fcc94fbca067b7cf032a7d8d267ed93 SHA512 9eca09728390123ada518cd2e5a19c13de64a5980e262cd71cd5c60a5727279571c104b376747e0b535894e2fc7ddf726ffdffe17d1dc68c8712d2acfc23e889 MISC metadata.xml 375 BLAKE2B 46856b904e322f25ebb96268418206fb70b76f22751c5f8c12d0b3fb51a11b91518c42313d8a9f2fbd71dd5a3ca359772f54829a7858148c5f5f03f44fe1dad4 SHA512 ad24b0cafc7adc414a0da36f5b518eacbba3069ac15484504ce063916133e7c15945c04c7c6886e30c75010300598876ab498d5d44c48f66c5ed252f3fd2f36f diff --git a/dev-util/ruff/ruff-0.0.274-r1.ebuild b/dev-util/ruff/ruff-0.0.274-r1.ebuild deleted file mode 100644 index 8c0f8655b951..000000000000 --- a/dev-util/ruff/ruff-0.0.274-r1.ebuild +++ /dev/null @@ -1,411 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..12} ) -DISTUTILS_USE_PEP517=maturin - -CRATES=" - Inflector-0.11.4 - adler-1.0.2 - aho-corasick-0.7.20 - aho-corasick-1.0.1 - 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.3.2 - anstyle-1.0.0 - anstyle-parse-0.2.0 - anstyle-query-1.0.0 - anstyle-wincon-1.0.1 - anyhow-1.0.71 - argfile-0.1.5 - assert_cmd-2.0.11 - atty-0.2.14 - autocfg-1.1.0 - base64-0.13.1 - base64-0.21.2 - bincode-1.3.3 - bitflags-1.3.2 - bitflags-2.3.1 - bstr-1.5.0 - bumpalo-3.13.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.26 - ciborium-0.2.1 - ciborium-io-0.2.1 - ciborium-ll-0.2.1 - clap-4.3.1 - clap_builder-4.3.1 - clap_complete-4.3.1 - clap_complete_command-0.5.1 - clap_complete_fig-4.3.1 - clap_complete_nushell-0.1.11 - clap_derive-4.3.1 - clap_lex-0.5.0 - clearscreen-2.0.1 - colorchoice-1.0.0 - colored-2.0.0 - 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-0.5.1 - 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 - darling-0.20.1 - darling_core-0.20.1 - darling_macro-0.20.1 - diff-0.1.13 - difflib-0.4.0 - dirs-4.0.0 - dirs-5.0.1 - dirs-sys-0.3.7 - dirs-sys-0.4.1 - doc-comment-0.3.3 - drop_bomb-0.1.5 - dyn-clone-1.0.11 - either-1.8.1 - 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 - flate2-1.0.26 - 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 - hex-0.4.3 - hexf-parse-0.2.1 - iana-time-zone-0.1.56 - iana-time-zone-haiku-0.1.2 - ident_case-1.0.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.11 - is-macro-0.2.2 - is-terminal-0.4.7 - itertools-0.10.5 - itoa-1.0.6 - js-sys-0.3.63 - kqueue-1.0.7 - kqueue-sys-1.0.3 - lalrpop-util-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.144 - libmimalloc-sys-0.1.33 - linked-hash-map-0.5.6 - linux-raw-sys-0.3.8 - log-0.4.18 - matches-0.1.10 - memchr-2.5.0 - memoffset-0.8.0 - mimalloc-0.1.37 - minimal-lexical-0.2.1 - miniz_oxide-0.7.1 - mio-0.8.8 - natord-1.0.9 - nextest-workspace-hack-0.1.0 - nix-0.26.2 - nohash-hasher-0.2.0 - nom-7.1.3 - notify-5.2.0 - num-bigint-0.4.3 - num-integer-0.1.45 - num-traits-0.2.15 - num_cpus-1.15.0 - once_cell-1.17.2 - oorandom-11.1.3 - option-ext-0.2.0 - os_str_bytes-6.5.0 - output_vt100-0.1.3 - paste-1.0.12 - path-absolutize-3.1.0 - path-dedot-3.1.0 - pathdiff-0.2.1 - peg-0.8.1 - peg-macros-0.8.1 - peg-runtime-0.8.1 - pep440_rs-0.3.9 - pep508_rs-0.1.5 - percent-encoding-2.2.0 - phf-0.11.1 - phf_codegen-0.11.1 - phf_generator-0.11.1 - phf_macros-0.11.1 - phf_shared-0.11.1 - pin-project-lite-0.2.9 - plotters-0.3.4 - plotters-backend-0.3.4 - plotters-svg-0.3.3 - pmutil-0.5.3 - 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.59 - pyproject-toml-0.6.0 - quick-junit-0.3.2 - quick-xml-0.26.0 - quote-1.0.28 - rand-0.8.5 - 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.3 - regex-automata-0.1.10 - regex-syntax-0.7.2 - 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.19 - 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 - sct-0.7.0 - semver-1.0.17 - serde-1.0.163 - serde-wasm-bindgen-0.5.0 - serde_derive-1.0.163 - serde_derive_internals-0.26.0 - serde_json-1.0.96 - serde_spanned-0.6.2 - serde_with-3.0.0 - serde_with_macros-3.0.0 - shellexpand-3.1.0 - similar-2.2.1 - siphasher-0.3.10 - smallvec-1.10.0 - spin-0.5.2 - static_assertions-1.1.0 - strsim-0.10.0 - strum-0.24.1 - strum_macros-0.24.3 - syn-1.0.109 - syn-2.0.18 - syn-ext-0.4.0 - tempfile-3.5.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 - 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 - time-0.3.21 - time-core-0.1.1 - time-macros-0.2.9 - tiny-keccak-2.0.2 - tinytemplate-1.2.1 - tinyvec-1.6.0 - tinyvec_macros-0.1.1 - toml-0.7.4 - toml_datetime-0.6.2 - toml_edit-0.19.10 - tracing-0.1.37 - tracing-attributes-0.1.24 - tracing-core-0.1.31 - 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.9 - unicode-normalization-0.1.22 - unicode-width-0.1.10 - untrusted-0.7.1 - ureq-2.6.2 - url-2.3.1 - utf8parse-0.2.1 - uuid-1.3.3 - version_check-0.9.4 - 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.86 - wasm-bindgen-backend-0.2.86 - wasm-bindgen-futures-0.4.36 - wasm-bindgen-macro-0.2.86 - wasm-bindgen-macro-support-0.2.86 - wasm-bindgen-shared-0.2.86 - wasm-bindgen-test-0.3.36 - wasm-bindgen-test-macro-0.3.36 - web-sys-0.3.63 - webpki-0.22.0 - webpki-roots-0.22.6 - which-4.4.0 - 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.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.6 - yaml-rust-0.4.5 - yansi-0.5.1 - yansi-term-0.1.2 -" - -LIBCST_COMMIT="80e4c1399f95e5beb532fdd1e209ad2dbb470438" -RUSTPYTHON_COMMIT="08ebbe40d7776cac6e3ba66277d435056f2b8dca" -declare -A GIT_CRATES=( - [libcst]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst" - [ruff_text_size]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/ruff_text_size" - [rustpython-ast]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/ast" - [rustpython-format]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/format" - [rustpython-literal]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/literal" - [rustpython-parser]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/parser" - [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.70 -" - -# 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 - - [[ -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 - 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[@]}" -} diff --git a/dev-util/ruff/ruff-0.0.275.ebuild b/dev-util/ruff/ruff-0.0.275.ebuild new file mode 100644 index 000000000000..3ab4cdc73289 --- /dev/null +++ b/dev-util/ruff/ruff-0.0.275.ebuild @@ -0,0 +1,411 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=maturin + +CRATES=" + Inflector-0.11.4 + adler-1.0.2 + aho-corasick-0.7.20 + aho-corasick-1.0.1 + 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.3.2 + anstyle-1.0.0 + anstyle-parse-0.2.0 + anstyle-query-1.0.0 + anstyle-wincon-1.0.1 + anyhow-1.0.71 + argfile-0.1.5 + assert_cmd-2.0.11 + atty-0.2.14 + autocfg-1.1.0 + base64-0.13.1 + base64-0.21.2 + bincode-1.3.3 + bitflags-1.3.2 + bitflags-2.3.1 + bstr-1.5.0 + bumpalo-3.13.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.26 + ciborium-0.2.1 + ciborium-io-0.2.1 + ciborium-ll-0.2.1 + clap-4.3.1 + clap_builder-4.3.1 + clap_complete-4.3.1 + clap_complete_command-0.5.1 + clap_complete_fig-4.3.1 + clap_complete_nushell-0.1.11 + clap_derive-4.3.1 + clap_lex-0.5.0 + clearscreen-2.0.1 + colorchoice-1.0.0 + colored-2.0.0 + 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-0.5.1 + 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 + darling-0.20.1 + darling_core-0.20.1 + darling_macro-0.20.1 + diff-0.1.13 + difflib-0.4.0 + dirs-4.0.0 + dirs-5.0.1 + dirs-sys-0.3.7 + dirs-sys-0.4.1 + doc-comment-0.3.3 + drop_bomb-0.1.5 + dyn-clone-1.0.11 + either-1.8.1 + 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 + flate2-1.0.26 + 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 + hex-0.4.3 + hexf-parse-0.2.1 + iana-time-zone-0.1.56 + iana-time-zone-haiku-0.1.2 + ident_case-1.0.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.11 + is-macro-0.2.2 + is-terminal-0.4.7 + itertools-0.10.5 + itoa-1.0.6 + js-sys-0.3.63 + kqueue-1.0.7 + kqueue-sys-1.0.3 + lalrpop-util-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.144 + libmimalloc-sys-0.1.33 + linked-hash-map-0.5.6 + linux-raw-sys-0.3.8 + log-0.4.18 + matches-0.1.10 + memchr-2.5.0 + memoffset-0.8.0 + mimalloc-0.1.37 + minimal-lexical-0.2.1 + miniz_oxide-0.7.1 + mio-0.8.8 + natord-1.0.9 + nextest-workspace-hack-0.1.0 + nix-0.26.2 + nohash-hasher-0.2.0 + nom-7.1.3 + notify-5.2.0 + num-bigint-0.4.3 + num-integer-0.1.45 + num-traits-0.2.15 + num_cpus-1.15.0 + once_cell-1.17.2 + oorandom-11.1.3 + option-ext-0.2.0 + os_str_bytes-6.5.0 + output_vt100-0.1.3 + paste-1.0.12 + path-absolutize-3.1.0 + path-dedot-3.1.0 + pathdiff-0.2.1 + peg-0.8.1 + peg-macros-0.8.1 + peg-runtime-0.8.1 + pep440_rs-0.3.9 + pep508_rs-0.1.5 + percent-encoding-2.2.0 + phf-0.11.1 + phf_codegen-0.11.1 + phf_generator-0.11.1 + phf_macros-0.11.1 + phf_shared-0.11.1 + pin-project-lite-0.2.9 + plotters-0.3.4 + plotters-backend-0.3.4 + plotters-svg-0.3.3 + pmutil-0.5.3 + 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.59 + pyproject-toml-0.6.0 + quick-junit-0.3.2 + quick-xml-0.26.0 + quote-1.0.28 + rand-0.8.5 + 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.3 + regex-automata-0.1.10 + regex-syntax-0.7.2 + 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.19 + 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 + sct-0.7.0 + semver-1.0.17 + serde-1.0.163 + serde-wasm-bindgen-0.5.0 + serde_derive-1.0.163 + serde_derive_internals-0.26.0 + serde_json-1.0.96 + serde_spanned-0.6.2 + serde_with-3.0.0 + serde_with_macros-3.0.0 + shellexpand-3.1.0 + similar-2.2.1 + siphasher-0.3.10 + smallvec-1.10.0 + spin-0.5.2 + static_assertions-1.1.0 + strsim-0.10.0 + strum-0.24.1 + strum_macros-0.24.3 + syn-1.0.109 + syn-2.0.18 + syn-ext-0.4.0 + tempfile-3.5.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 + 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 + time-0.3.21 + time-core-0.1.1 + time-macros-0.2.9 + tiny-keccak-2.0.2 + tinytemplate-1.2.1 + tinyvec-1.6.0 + tinyvec_macros-0.1.1 + toml-0.7.4 + toml_datetime-0.6.2 + toml_edit-0.19.10 + tracing-0.1.37 + tracing-attributes-0.1.24 + tracing-core-0.1.31 + 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.9 + unicode-normalization-0.1.22 + unicode-width-0.1.10 + untrusted-0.7.1 + ureq-2.6.2 + url-2.3.1 + utf8parse-0.2.1 + uuid-1.3.3 + version_check-0.9.4 + 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.86 + wasm-bindgen-backend-0.2.86 + wasm-bindgen-futures-0.4.36 + wasm-bindgen-macro-0.2.86 + wasm-bindgen-macro-support-0.2.86 + wasm-bindgen-shared-0.2.86 + wasm-bindgen-test-0.3.36 + wasm-bindgen-test-macro-0.3.36 + web-sys-0.3.63 + webpki-0.22.0 + webpki-roots-0.22.6 + which-4.4.0 + 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.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.6 + yaml-rust-0.4.5 + yansi-0.5.1 + yansi-term-0.1.2 +" + +LIBCST_COMMIT="80e4c1399f95e5beb532fdd1e209ad2dbb470438" +RUSTPYTHON_COMMIT="f60e204b73b95bdb6ce87ccd0de34081b4a17c11" +declare -A GIT_CRATES=( + [libcst]="https://github.com/charliermarsh/LibCST;${LIBCST_COMMIT};LibCST-%commit%/native/libcst" + [ruff_text_size]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/ruff_text_size" + [rustpython-ast]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/ast" + [rustpython-format]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/format" + [rustpython-literal]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/literal" + [rustpython-parser]="https://github.com/astral-sh/RustPython-Parser;${RUSTPYTHON_COMMIT};RustPython-Parser-%commit%/parser" + [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.70 +" + +# 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 + + [[ -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 + 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