diff options
Diffstat (limited to 'dev-util/maturin')
-rw-r--r-- | dev-util/maturin/Manifest | 3 | ||||
-rw-r--r-- | dev-util/maturin/maturin-1.3.0.ebuild | 495 |
2 files changed, 0 insertions, 498 deletions
diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest index 62d7edc12233..c2b52c86493a 100644 --- a/dev-util/maturin/Manifest +++ b/dev-util/maturin/Manifest @@ -44,7 +44,6 @@ DIST cargo-platform-0.1.2.crate 11645 BLAKE2B 7770acb90e299f71c60bbadceaf894a310 DIST cargo-platform-0.1.3.crate 11230 BLAKE2B a67d0f77015b85c7cc8e9cadd5eca3c1ac57fc5c54345f80c9892c4ca7a4bc295f8e23330fc9a51b4954ab4fff7cf2a6ed509b506bf801baad6882f19f173404 SHA512 09897871995f40ae792cfbc58a46b602ea9e28458cc066bbf89451edca6755809816ea7b927cc7f35aa95a8da35e1765d38471bd9317946f8c3c81cea82d6d10 DIST cargo-xwin-0.14.3.crate 27491 BLAKE2B 046b28b4362f9aba620f3f03c9bd4aee5cca43f75c70afafe961474ee8bc5f351b315ca143dd7a6521320aed07d5d97a280d69fd3c47a3dd2ce419af3c398919 SHA512 c4b4108add55055573381b7714fd84577a8d6c5b94f40f8c6d6420cd8aca22379f940b48c858e918352a6453656fa4b7b7239c66d5eccb98f23a9fa761630588 DIST cargo-xwin-0.14.6.crate 27861 BLAKE2B 652222f036a2914ea44437ca6afe61084d683d0469b8a45c2830b1b75b544c5e5388fb33bc3de325efd364ed3afb604ebb548931c574e3bcac0ea4fc4eabfbdd SHA512 b5df44409cf3242f59b99b0b435d73145cced5c0c021004484eaf3f93f9737b8893505a37aa33361b1d7a683b9b2cd77993d4cb8a62f6cf1b89dc9294cc1bd03 -DIST cargo-xwin-0.14.7.crate 27856 BLAKE2B ed288d27a3c9dd0276d3164efd5f4e51b85e71f5b0aa022eb27316283a45b91a4f148789f07cf97b83b4f00cff1bababdd9a3f8f99102b3eeb48b86453e37c7c SHA512 5da63aa8c51ab5f1e29f0f4b1da7fa95a989ab1ebbeb546b2287259d697d91deeea0b748b2112b2792c5c0bc2e08f34f7a27cc1b4d84ef9e01e268a09a8045c3 DIST cargo-xwin-0.14.8.crate 27941 BLAKE2B 79938f6c8f015d281e1da771b363e2fac6195764999e9be00a530840e9b1102248f389ba9bb307b3ab102f82a968ffc33ec2459d403553c4dd67baba56f40c22 SHA512 44b0edd3b0d3d7678d3522cab00138b28324c026e93fb1504be3603a8a5db8864cbf83cd02eca2fa5ebc549ac181438b7b4d410054a0ff7ee1d410611aa4c3d5 DIST cargo-zigbuild-0.16.10.crate 30627 BLAKE2B 88f8de5a8ce9459f46ce82811edbd669f582ff60a9be12056b21d64fdc6058cefdd67821b92b244ef4c4d497e32c95b0b4a49066a241b61602be1de3a3ad1c32 SHA512 a7cd9a9ec235707746f4e455e95d625f3ec2b8ff8f6a6aebf2ea1960c5a013089e1a9853cbfc04d2851ceaae2c6b8fbe3696d52027f7e45d15f993a0a672435d DIST cargo-zigbuild-0.17.0.crate 34388 BLAKE2B 706319c00a0e152ce157c73af7b5b6bdaeb1330dde1fcac99b07d1d81a8023f39b5e02bbc59819f29ab71f259632d48880ffdba18514d006f89c1745c69cdd88 SHA512 9d895e9048b6198258471333f4f8152a9784adfc79910d8064215411ba49546e7c5ec5ba83a164e8c82fbaaf8bdb079b0dbbb18b94d7d44cee4b39e003e73565 @@ -183,7 +182,6 @@ DIST mailparse-0.14.0.crate 36965 BLAKE2B 577df2a11928120ae88a8afc5781767d4ffecd DIST matchers-0.1.0.crate 6948 BLAKE2B ec3a5d01d2fedbb4dbf5bb185afbb9401410463a61f51674e0df6a571db352b2bbabfb99cdbdcfb4e511ae783165bf0258f5163f240a229b9087f9edbd0df41a SHA512 84214c1a84952d85631aa1ab5115df7cda223ac64e2acf055b6129ba1aa26ddc87615a8b51ca890ce3fee0419053fa7fe1599ae128f1d211b58c07b0c4af3b19 DIST maturin-1.1.0.gh.tar.gz 429480 BLAKE2B fe32c1e244548d95808d24aa4faa3d1fe6c5dce6bc1529167df9f09eac10e0342a087529788034bb4d8b43a13153016df3342c6839c2ff9ae51bafa32170b8be SHA512 1e35288bd671d9133a10fd3c4cdebc7488aa58b5d42e8c12e867d8dff662b80d8d149bb28bc0292debd1225a2e2f15b2ae91df1dba8efe85a1d94cdfb22d12e2 DIST maturin-1.2.3.gh.tar.gz 439221 BLAKE2B 13c4481a9968c18757e226b9fe6237d274082e84a79257eef403c579dea8e2ed63473f6259e6192617ddb9606872cd91d2aca958d711d6c9c69b8a3c7ead8f73 SHA512 ffbcb806f70015567db69be5f0214bb9b42c79d24f7e38ec2d46abfc831feda6d69952fc9e9f72fd2704154790e755b0f2ff4da8d273b8f02865bf148c8a16c1 -DIST maturin-1.3.0.gh.tar.gz 439104 BLAKE2B 1fb399ac3cd8463282091b04f1132977ca776811c178075bffa03aff8e66699754ceff992226313a35db5779b8ecb213c854d65183f1ccde42472081fc70f77e SHA512 49812a9ca89ce1839704034d80a717552421e76adc37f510125ce1ed2b776907533171a4413fdf2b273760630a0c7c1a0bddfda5b7f5c0c3526650d66f0e29bb DIST maturin-1.3.1.gh.tar.gz 440416 BLAKE2B d24262dfb66d548f63c700af774fd176ae995a5dade34f86fd616d6839ea27e27c20c85259c6fd350f7e3559e11b735672f75e3af178cd2dcdb6370bd565c02f SHA512 71d222f9038359028b13c09a69f27b1c5e8cad8b75e79f09ef4dd97061d31d8d26e017aad90263b72b13a84da3819419df7c527dbd7e4bd14e8ac17e0ac985bd DIST memchr-2.5.0.crate 65812 BLAKE2B 57966413a1f933dcb2d2d4ccb29c247070f65a83299b2a9f5aa83f5a48a5c5f1c4c7c632fa63bd19f9508e9291e7258db2f16e2813a56fd84e0856f70f1e67ab SHA512 444a163b484c233e78c0e2e4d51f01ce2da93d7d29f516a95e4b0866b20bdfd3f34137653abed53eb70387991ee3e2b5937d8d4360a85bbcb50a93005a75defa DIST memoffset-0.8.0.crate 8912 BLAKE2B 19ad3abed21fc39461b0382b15a8cc312378aba36f042b1e5335012115d31b350a4e3bc720f1eea300d7d19b9b317f75a28d4ccd78ff3b31defd9e4b3147899c SHA512 47adcae0848ff967035e10543ea599c7af9c5bad387023eb4dc77c9e8d875994ec8139b9941b3ecc4fc17214d80944a47a3be174a45b334661914a5a7382dfbe @@ -519,6 +517,5 @@ DIST zeroize-1.6.0.crate 19049 BLAKE2B 8dad6af58edd7b22ece7dfefa47b478dfb74efd1e DIST zip-0.6.6.crate 65789 BLAKE2B acefc076297468d72cb20d8c6234fe5406875056fbf78fc0eac3ac430af78f320ed839f8683bd96fa1a03c457d6ac568d42bd703a902bc37bd126791d8b4c709 SHA512 affd46c17ceaa0545a155250dfd16756f8706dda43bae8a322ec0481dbfb41e4cf3166bf9662fc139ef9d0ab3b0f9f158535b21d2a61b21d38b8b2407813eeef EBUILD maturin-1.1.0.ebuild 10461 BLAKE2B 7d65f6788cdfa0682e7b68f14ae4cb0ea98d4ba52e4f4d63d58563eecf1bf6dff9769afd60d34d3b10cd614c67a9e457595a389ccc51cf2dc5d40a1da5fb51ae SHA512 f798bfefe415821ce8974aaed933eebb7b98c97825ea75d39847735b3fa97cad4e0adf75cd981ebc70785f13a075da4dbafd82dc979b97e2643c060d626d068b EBUILD maturin-1.2.3.ebuild 10504 BLAKE2B b8e9ceb3ecc505b28600b19f2564a2e37d06bbfd9a55bf0f8e6156b97ca4d0c9f63d0aaa80a6bd0faf52618940adf196b11a7e9513c20a667881cc2a9c108c3a SHA512 f7a66a4de766568677127b6f94acdea25529e09842fb0d2e373c066a0d21e56074ceb4f452889a843433d26a7e07a6c986ad5545c04b67af851787772722c477 -EBUILD maturin-1.3.0.ebuild 10611 BLAKE2B 6e93fdf057dafcbef3ddb105d4e1e84c0cc7ddea37ffdc1435f216dcbf77d7f97d790810302a3b7b7d48c552a59464c7536ad5d5b065f6a1485373dc59552f2c SHA512 44b9ee04b736064432f8305d1592a77f1dfb7dfeed8ebe926b9cabf95efb15680601b0f27ca1b4e74f64419d939eb4c91162336c8210e871660d2ec1d4f89ba4 EBUILD maturin-1.3.1.ebuild 10551 BLAKE2B ce8f83c9f91fee10d0fcb5a3ff50bfff41ce97d1be6080f0d3804100e2954cd4c28490e003fb5b2ce240f2267fd1f905d4f6701f68a4d2410d549e601ae3f62e SHA512 535d4323fa49fa635c6edf598b6c9d98391aeb48c2e0e2adcab9b6dc6fc8780f49c848fd8c44d9bc06c045918299be1055aca88f972a4551c22425d0ddbebcac MISC metadata.xml 431 BLAKE2B 15731479f56d8b819c60e8e5541d3c4720462c5a90b199b803097b208432b18cc0143f8cbee471ce81ffeb8b54846fdb61fad083e7507f4f6c3630ac628546ed SHA512 7431db948fd5ab520fb6cae76c7e7dbb2c7aef907d7cde21189d1bb17c686cca7f69a0b84470b1c5d90f672e80d30fbb56f37beec1da04ebfdf025015c099ae7 diff --git a/dev-util/maturin/maturin-1.3.0.ebuild b/dev-util/maturin/maturin-1.3.0.ebuild deleted file mode 100644 index 63d8133f97a1..000000000000 --- a/dev-util/maturin/maturin-1.3.0.ebuild +++ /dev/null @@ -1,495 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CRATES=" - adler@1.0.2 - ahash@0.7.6 - aho-corasick@0.7.20 - anstream@0.3.2 - anstyle-parse@0.2.1 - anstyle-query@1.0.0 - anstyle-wincon@1.0.2 - anstyle@1.0.1 - anyhow@1.0.75 - autocfg@1.1.0 - base64@0.13.1 - base64@0.21.2 - bitflags@1.3.2 - block-buffer@0.10.4 - bstr@1.6.0 - bumpalo@3.13.0 - byteorder@1.4.3 - bytesize@1.2.0 - bytes@1.4.0 - bzip2-sys@0.1.11+1.0.8 - bzip2@0.4.4 - cab@0.4.1 - camino@1.1.6 - cargo-config2@0.1.9 - cargo-options@0.6.0 - cargo-platform@0.1.3 - cargo-xwin@0.14.7 - cargo-zigbuild@0.17.3 - cargo_metadata@0.18.0 - cbindgen@0.25.0 - cc@1.0.82 - cfb@0.7.3 - cfg-expr@0.15.4 - cfg-if@1.0.0 - charset@0.1.3 - chumsky@0.9.2 - clap@4.1.14 - clap_builder@4.1.14 - clap_complete@4.2.3 - clap_complete_command@0.5.1 - clap_complete_fig@4.2.0 - clap_complete_nushell@0.1.11 - clap_derive@4.1.14 - clap_lex@0.4.1 - cli-table@0.4.7 - colorchoice@1.0.0 - configparser@3.0.2 - console@0.15.7 - content_inspector@0.2.4 - core-foundation-sys@0.8.4 - core-foundation@0.9.3 - cpufeatures@0.2.9 - crc32fast@1.3.2 - crossbeam-channel@0.5.8 - crossbeam-deque@0.8.3 - crossbeam-epoch@0.9.15 - crossbeam-utils@0.8.16 - crypto-common@0.1.6 - data-encoding@2.4.0 - dialoguer@0.10.4 - diff@0.1.13 - digest@0.10.7 - dirs-sys@0.4.1 - dirs@5.0.1 - dissimilar@1.0.7 - dunce@1.0.4 - either@1.9.0 - encode_unicode@0.3.6 - encoding_rs@0.8.32 - errno-dragonfly@0.1.2 - errno@0.3.2 - expect-test@1.4.1 - fastrand@1.9.0 - fat-macho@0.4.7 - filetime@0.2.22 - flate2@1.0.27 - fnv@1.0.7 - foreign-types-shared@0.1.1 - foreign-types@0.3.2 - form_urlencoded@1.2.0 - fs-err@2.9.0 - generic-array@0.14.7 - getrandom@0.2.10 - globset@0.4.10 - glob@0.3.1 - goblin@0.7.1 - hashbrown@0.12.3 - heck@0.4.1 - hermit-abi@0.3.2 - home@0.5.5 - humantime-serde@1.1.1 - humantime@2.1.0 - idna@0.4.0 - ignore@0.4.20 - indexmap@1.9.3 - indicatif@0.17.6 - indoc@2.0.3 - instant@0.1.12 - io-lifetimes@1.0.11 - is-terminal@0.4.7 - itertools@0.11.0 - itoa@1.0.9 - js-sys@0.3.64 - keyring@2.0.5 - lazy_static@1.4.0 - lddtree@0.3.3 - libc@0.2.147 - linux-keyutils@0.2.3 - linux-raw-sys@0.3.8 - lock_api@0.4.10 - log@0.4.20 - lzxd@0.1.4 - mailparse@0.14.0 - matchers@0.1.0 - memchr@2.5.0 - memoffset@0.9.0 - mime@0.3.17 - mime_guess@2.0.4 - minijinja@1.0.6 - minimal-lexical@0.2.1 - miniz_oxide@0.7.1 - msi@0.6.0 - multipart@0.18.0 - native-tls@0.2.11 - nom@7.1.3 - normalize-line-endings@0.3.0 - normpath@1.1.1 - number_prefix@0.4.0 - num_cpus@1.16.0 - nu-ansi-term@0.46.0 - once_cell@1.18.0 - openssl-macros@0.1.1 - openssl-probe@0.1.5 - openssl-src@111.27.0+1.1.1v - openssl-sys@0.9.91 - openssl@0.10.56 - option-ext@0.2.0 - os_pipe@1.1.4 - overload@0.1.1 - parking_lot@0.12.1 - parking_lot_core@0.9.8 - paste@1.0.14 - path-slash@0.2.1 - pep440_rs@0.3.6 - pep508_rs@0.2.1 - percent-encoding@2.3.0 - pin-project-lite@0.2.12 - pkg-config@0.3.27 - plain@0.2.3 - platform-info@2.0.2 - portable-atomic@1.4.2 - ppv-lite86@0.2.17 - pretty_assertions@1.4.0 - proc-macro2@1.0.66 - psm@0.1.21 - pyproject-toml@0.6.1 - python-pkginfo@0.6.0 - quoted_printable@0.4.8 - 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-syntax@0.6.29 - regex@1.7.3 - rfc2047-decoder@0.2.2 - ring@0.16.20 - rustc_version@0.4.0 - rustix@0.37.23 - rustls-pemfile@1.0.3 - rustls-webpki@0.100.2 - rustls@0.21.2 - rustversion@1.0.14 - ryu@1.0.15 - same-file@1.0.6 - schannel@0.1.22 - scopeguard@1.2.0 - scroll@0.11.0 - scroll_derive@0.11.1 - sct@0.7.0 - security-framework-sys@2.9.1 - security-framework@2.9.2 - semver@1.0.18 - serde@1.0.183 - serde_derive@1.0.183 - serde_json@1.0.105 - serde_spanned@0.6.3 - sha2@0.10.7 - sharded-slab@0.1.4 - shell-escape@0.1.5 - shell-words@1.1.0 - shlex@1.1.0 - similar@2.2.1 - smallvec@1.11.0 - smawk@0.3.1 - snapbox-macros@0.3.4 - snapbox@0.4.11 - socks@0.3.4 - spin@0.5.2 - stacker@0.1.15 - static_assertions@1.1.0 - strsim@0.10.0 - syn@1.0.109 - syn@2.0.29 - target-lexicon@0.12.11 - tar@0.4.40 - tempfile@3.6.0 - termcolor@1.2.0 - terminal_size@0.2.6 - textwrap@0.16.0 - thiserror-impl@1.0.47 - thiserror@1.0.47 - thread_local@1.1.7 - time-core@0.1.0 - time-macros@0.2.8 - time@0.3.20 - tinyvec@1.6.0 - tinyvec_macros@0.1.1 - toml@0.5.11 - toml@0.7.4 - toml_datetime@0.6.2 - toml_edit@0.19.10 - tracing-attributes@0.1.26 - tracing-core@0.1.31 - tracing-log@0.1.3 - tracing-serde@0.1.3 - tracing-subscriber@0.3.17 - tracing@0.1.37 - trycmd@0.14.16 - twox-hash@1.6.3 - typenum@1.16.0 - unicase@2.6.0 - unicode-bidi@0.3.13 - unicode-ident@1.0.11 - unicode-linebreak@0.1.5 - unicode-normalization@0.1.22 - unicode-width@0.1.10 - untrusted@0.7.1 - ureq@2.7.1 - url@2.4.0 - utf8parse@0.2.1 - uuid@1.4.1 - valuable@0.1.0 - vcpkg@0.2.15 - versions@5.0.1 - version_check@0.9.4 - wait-timeout@0.2.0 - walkdir@2.3.3 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.87 - wasm-bindgen-macro-support@0.2.87 - wasm-bindgen-macro@0.2.87 - wasm-bindgen-shared@0.2.87 - wasm-bindgen@0.2.87 - webpki-roots@0.23.1 - web-sys@0.3.64 - 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.2 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.2 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.2 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.2 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.2 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.2 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.2 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.2 - winnow@0.4.7 - xattr@1.0.1 - xwin@0.3.1 - yansi@0.5.1 - zeroize@1.6.0 - zip@0.6.6 -" -# additional crates used by test-crates/* test packages, -# `grep test-crates tests/run.rs` to see which are needed -CRATES_TEST=" - anyhow@1.0.72 - askama@0.12.0 - askama_derive@0.12.1 - askama_escape@0.10.3 - basic-toml@0.1.4 - bincode@1.3.3 - cargo_metadata@0.15.4 - cc@1.0.73 - cc@1.0.81 - goblin@0.6.1 - indoc@1.0.7 - indoc@1.0.9 - libc@0.2.134 - lock_api@0.4.9 - log@0.4.19 - once_cell@1.15.0 - parking_lot_core@0.9.3 - proc-macro2@1.0.46 - pyo3-build-config@0.18.3 - pyo3-build-config@0.19.0 - pyo3-build-config@0.19.2 - pyo3-ffi@0.18.3 - pyo3-ffi@0.19.0 - pyo3-ffi@0.19.2 - pyo3-macros-backend@0.19.0 - pyo3-macros-backend@0.19.2 - pyo3-macros@0.19.0 - pyo3-macros@0.19.2 - pyo3@0.19.0 - pyo3@0.19.2 - python3-dll-a@0.2.6 - python3-dll-a@0.2.9 - quote@1.0.21 - quote@1.0.32 - scopeguard@1.1.0 - serde@1.0.182 - serde_derive@1.0.182 - serde_json@1.0.104 - siphasher@0.3.10 - smallvec@1.10.0 - syn@1.0.102 - syn@2.0.28 - target-lexicon@0.12.7 - thiserror-impl@1.0.44 - thiserror@1.0.44 - unicode-ident@1.0.5 - uniffi@0.24.3 - uniffi_bindgen@0.24.3 - uniffi_build@0.24.3 - uniffi_checksum_derive@0.24.3 - uniffi_core@0.24.3 - uniffi_macros@0.24.3 - uniffi_meta@0.24.3 - uniffi_testing@0.24.3 - unindent@0.1.10 - unindent@0.1.11 - weedle2@4.0.0 - windows-sys@0.36.1 - windows-targets@0.48.1 - windows_aarch64_gnullvm@0.48.0 - windows_aarch64_msvc@0.36.1 - windows_aarch64_msvc@0.48.0 - windows_i686_gnu@0.36.1 - windows_i686_gnu@0.48.0 - windows_i686_msvc@0.36.1 - windows_i686_msvc@0.48.0 - windows_x86_64_gnullvm@0.48.0 - windows_x86_64_gnu@0.36.1 - windows_x86_64_gnu@0.48.0 - windows_x86_64_msvc@0.36.1 - windows_x86_64_msvc@0.48.0 -" -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{10..12} ) -inherit cargo distutils-r1 edo flag-o-matic shell-completion toolchain-funcs - -DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings" -HOMEPAGE="https://www.maturin.rs/" -SRC_URI=" - https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz - -> ${P}.gh.tar.gz - ${CARGO_CRATE_URIS} - test? ( $(cargo_crate_uris ${CRATES_TEST}) ) -" - -# note: ring is unused, so openssl license can be skipped -LICENSE="|| ( Apache-2.0 MIT ) doc? ( CC-BY-4.0 OFL-1.1 )" -LICENSE+=" - 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0 - Unicode-DFS-2016 -" # crates -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="doc +ssl test" -RESTRICT="!test? ( test )" - -RDEPEND="$(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' 3.10)" -DEPEND="ssl? ( dev-libs/openssl:= )" -BDEPEND=" - dev-python/setuptools-rust[${PYTHON_USEDEP}] - virtual/pkgconfig - doc? ( app-text/mdbook ) - test? ( - ${RDEPEND} - $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*') - dev-python/boltons[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - dev-vcs/git - ) -" -RDEPEND+=" ${DEPEND}" - -QA_FLAGS_IGNORED="usr/bin/${PN}" - -src_prepare() { - distutils-r1_src_prepare - - if use test; then - # used to prevent use of network during tests, and silence pip - # if it finds unrelated issues with system packages (bug #913613) - cat > "${T}"/pip.conf <<-EOF || die - [global] - quiet = 2 - - [install] - no-index = yes - no-dependencies = yes - EOF - - # used by *git_sdist_generator tests - git init -q || die - git config --global user.email "larry@gentoo.org" || die - git config --global user.name "Larry the Cow" || die - git add . || die - git commit -qm init || die - fi -} - -src_configure() { - filter-lto # TODO: cleanup after bug #893658 - - local cargoargs=( - # TODO: try switching to `--profile gentoo` then should be able to - # remove all `use debug` checks and --release in tests, but needs: - # https://github.com/gentoo/gentoo/pull/29510 - $(usev debug '--profile dev') - --no-default-features - # like release.yml + native-tls for better platform support than rustls - --features full,password-storage$(usev ssl ,native-tls) - ) - - export MATURIN_SETUP_ARGS=${cargoargs[*]} - export OPENSSL_NO_VENDOR=1 -} - -python_compile_all() { - use !doc || mdbook build -d html guide || die - - if ! tc-is-cross-compiler; then - local maturin=target/$(usex debug{,} release)/maturin - ${maturin} completions bash > "${T}"/${PN} || die - ${maturin} completions fish > "${T}"/${PN}.fish || die - ${maturin} completions zsh > "${T}"/_${PN} || die - else - ewarn "shell completion files were skipped due to cross-compilation" - fi -} - -python_test() { - local -x COLUMNS=100 # what tests/cmd was generated for - local -x MATURIN_TEST_PYTHON=${EPYTHON} - local -x PIP_CONFIG_FILE=${T}/pip.conf - local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1 - - local skip=( - # avoid need for wasm over a single hello world test - --skip integration_wasm_hello_world - # fragile depending on rust version, also wants libpypy*-c.so for pypy - --skip pyo3_no_extension_module - ) - - edo cargo test $(usev !debug --release) ${MATURIN_SETUP_ARGS} -- "${skip[@]}" -} - -python_install_all() { - dodoc Changelog.md README.md - use doc && dodoc -r guide/html - - if ! tc-is-cross-compiler; then - dobashcomp "${T}"/${PN} - dofishcomp "${T}"/${PN}.fish - dozshcomp "${T}"/_${PN} - fi -} |