From 8ba94db1fe69019bb2d3b4f50fe9d1ccf3d94b3a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Feb 2023 08:00:22 +0000 Subject: gentoo auto-resync : 15:02:2023 - 08:00:21 --- dev-util/maturin/Manifest | 2 +- dev-util/maturin/maturin-1.0.0_beta1-r1.ebuild | 493 +++++++++++++++++++++++++ dev-util/maturin/maturin-1.0.0_beta1.ebuild | 491 ------------------------ 3 files changed, 494 insertions(+), 492 deletions(-) create mode 100644 dev-util/maturin/maturin-1.0.0_beta1-r1.ebuild delete mode 100644 dev-util/maturin/maturin-1.0.0_beta1.ebuild (limited to 'dev-util/maturin') diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest index e321a3e235be..d64b768b82a3 100644 --- a/dev-util/maturin/Manifest +++ b/dev-util/maturin/Manifest @@ -449,5 +449,5 @@ DIST zvariant-2.10.0.crate 64374 BLAKE2B 65f5ec09b812217b2d96f57fcaca7fba97545dc DIST zvariant_derive-2.10.0.crate 8746 BLAKE2B 8408e6689f6f849d37d0ade5549dbac25a01a8ef6de5692290f24462e0984128fb5b1d72e87e94e4c422896d68f9acaa382ca6af57f47f470448894a85071b1a SHA512 ba06d0761de8e20839246517d89494e5728fd654cf95eec193a4ca4cdb90090542bbfd7ed0ffbc9fc44edda38c5270139f54e63cb88d09f6c26b39199ea1deec EBUILD maturin-0.14.12.ebuild 10426 BLAKE2B 1417362f707a9ed2f17dd8d29df766f50614ea74113bf71c45368b29447edbaf5463f8170acf633d38e8e1333620ff286d8533d4af5b9096d1c7c8bdc43888af SHA512 1dc3daf08dd45f7cedf4b8957b173bb746f17e8fda5cc1b0eda6d3ca484818fb2e9b695f3a7fdaad352d56841dd1050afa7a97f5946844e0fe082ccc015bdc8b EBUILD maturin-0.14.13.ebuild 10452 BLAKE2B a77751fec6a9c327c217d11de4f55df536ee225b4e790c18a8a56023333f05ad502d3a909207af0d8d8745c312e5026e36fe02ade71d601331fef487a8b1db04 SHA512 3175e5147b926a04d493bb796cac39c284acf25e29a7314e47d85e1be2c2ee785736f134bbe50b10e2005c3dac65e240d95b440860a326cf4cc840c845abcfa1 -EBUILD maturin-1.0.0_beta1.ebuild 10259 BLAKE2B 012ee61ea85266acdb20203ccf918226c26c591954d2b22012ed6a2538e58c2734c5591ea69ea24ced247cd13c92f6cff3e02ef9cfb91cc3b746429eb2491372 SHA512 f54250ddf77cbb60dcc1cea75d49d8ae7eb7cf974ff5cf5cf895d14ddbc4e24e55053179ae754b33dbe45e3ef78d49223611b16729d771a99f70a302b6ca7966 +EBUILD maturin-1.0.0_beta1-r1.ebuild 10218 BLAKE2B 32d64deb42d9e55ff3ab03e895719c7089dc4985ee5eaaceba54c66d4aeb1cba0a8a915ebca8586917221f598143a89bc53ae21ba71fc3f0decdbb73edc0d1bf SHA512 6bf0e4555d82bf9bab27961fe4da6f1c139bb363de32cd1f72abd86b05c8b815df06217b9048648a4171321a9afefcdcf9209b130cdef7a8e614e5fc9ab87db7 MISC metadata.xml 581 BLAKE2B 9fd4c9b9ef68199ef36af2d3799e3c16f819e89a2858bbfefbedb35575f5018c44ccf6b851f1bd367adefec1e8e6dc4a817bd431037b2ee8d1c01e3638d81541 SHA512 93e477343b707475d8b5bd043575a047e7247998e62daaed232216a9a3bfaa9dcae0ac02ec8489e847018495b31f9ef1811d528498e0e129dde99b06712ef7f7 diff --git a/dev-util/maturin/maturin-1.0.0_beta1-r1.ebuild b/dev-util/maturin/maturin-1.0.0_beta1-r1.ebuild new file mode 100644 index 000000000000..c3aba92597fc --- /dev/null +++ b/dev-util/maturin/maturin-1.0.0_beta1-r1.ebuild @@ -0,0 +1,493 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + adler-1.0.2 + aes-0.7.5 + ahash-0.3.8 + ahash-0.7.6 + aho-corasick-0.7.20 + anyhow-1.0.69 + async-io-1.12.0 + async-lock-2.6.0 + autocfg-1.1.0 + base64-0.13.1 + bitflags-1.3.2 + block-buffer-0.10.3 + block-buffer-0.9.0 + block-modes-0.8.1 + block-padding-0.2.1 + bstr-1.2.0 + bumpalo-3.12.0 + byteorder-1.4.3 + bytes-1.4.0 + bytesize-1.1.0 + bzip2-0.4.4 + bzip2-sys-0.1.11+1.0.8 + cab-0.4.1 + camino-1.1.2 + cargo-config2-0.1.4 + cargo-options-0.6.0 + cargo-platform-0.1.2 + cargo-xwin-0.14.0 + cargo-zigbuild-0.16.0 + cargo_metadata-0.15.3 + cbindgen-0.24.3 + cc-1.0.79 + cfb-0.7.3 + cfg-expr-0.14.0 + cfg-if-1.0.0 + charset-0.1.3 + chumsky-0.8.0 + cipher-0.3.0 + clap-4.0.32 + clap_complete-4.0.7 + clap_complete_command-0.4.0 + clap_complete_fig-4.0.2 + clap_derive-4.0.21 + clap_lex-0.3.0 + cli-table-0.4.7 + concolor-0.0.11 + concolor-query-0.1.0 + concurrent-queue-2.1.0 + configparser-3.0.2 + console-0.15.5 + const-random-0.1.15 + const-random-macro-0.1.15 + content_inspector-0.2.4 + core-foundation-0.9.3 + core-foundation-sys-0.8.3 + cpufeatures-0.2.5 + crc32fast-1.3.2 + crossbeam-channel-0.5.6 + crossbeam-deque-0.8.2 + crossbeam-epoch-0.9.13 + crossbeam-utils-0.8.14 + crunchy-0.2.2 + crypto-common-0.1.6 + crypto-mac-0.11.1 + ctor-0.1.26 + data-encoding-2.3.3 + derivative-2.2.0 + dialoguer-0.10.3 + diff-0.1.13 + digest-0.10.6 + digest-0.9.0 + dirs-4.0.0 + dirs-sys-0.3.7 + dunce-1.0.3 + either-1.8.1 + encode_unicode-0.3.6 + encoding-0.2.33 + encoding-index-japanese-1.20141219.5 + encoding-index-korean-1.20141219.5 + encoding-index-simpchinese-1.20141219.5 + encoding-index-singlebyte-1.20141219.5 + encoding-index-tradchinese-1.20141219.5 + encoding_index_tests-0.1.4 + encoding_rs-0.8.32 + enumflags2-0.6.4 + enumflags2_derive-0.6.4 + errno-0.2.8 + errno-dragonfly-0.1.2 + event-listener-2.5.3 + fastrand-1.9.0 + fat-macho-0.4.6 + filetime-0.2.19 + flate2-1.0.25 + fnv-1.0.7 + foreign-types-0.3.2 + foreign-types-shared-0.1.1 + form_urlencoded-1.1.0 + fs-err-2.9.0 + futures-0.3.26 + futures-channel-0.3.26 + futures-core-0.3.26 + futures-executor-0.3.26 + futures-io-0.3.26 + futures-lite-1.12.0 + futures-macro-0.3.26 + futures-sink-0.3.26 + futures-task-0.3.26 + futures-util-0.3.26 + generic-array-0.14.6 + getrandom-0.2.8 + glob-0.3.1 + globset-0.4.10 + goblin-0.6.0 + hashbrown-0.12.3 + heck-0.4.1 + hermit-abi-0.2.6 + hkdf-0.11.0 + hmac-0.11.0 + home-0.5.4 + humantime-2.1.0 + humantime-serde-1.1.1 + idna-0.3.0 + ignore-0.4.20 + indexmap-1.9.2 + indicatif-0.17.3 + indoc-2.0.0 + instant-0.1.12 + io-lifetimes-1.0.4 + is-terminal-0.4.2 + itertools-0.10.5 + itoa-1.0.5 + js-sys-0.3.61 + keyring-1.2.1 + lazy_static-1.4.0 + lddtree-0.3.2 + libc-0.2.139 + linux-raw-sys-0.1.4 + lock_api-0.4.9 + log-0.4.17 + lzxd-0.1.4 + mailparse-0.13.8 + matchers-0.1.0 + memchr-2.5.0 + memoffset-0.6.5 + memoffset-0.7.1 + mime-0.3.16 + mime_guess-2.0.4 + minijinja-0.30.4 + minimal-lexical-0.2.1 + miniz_oxide-0.6.2 + msi-0.5.0 + multipart-0.18.0 + native-tls-0.2.11 + nb-connect-1.2.0 + nix-0.22.3 + nom-7.1.3 + nom8-0.2.0 + normalize-line-endings-0.3.0 + normpath-1.0.1 + nu-ansi-term-0.46.0 + num-0.4.0 + num-bigint-0.4.3 + num-complex-0.4.3 + num-integer-0.1.45 + num-iter-0.1.43 + num-rational-0.4.1 + num-traits-0.2.15 + num_cpus-1.15.0 + number_prefix-0.4.0 + once_cell-1.17.0 + opaque-debug-0.3.0 + openssl-0.10.45 + openssl-macros-0.1.0 + openssl-probe-0.1.5 + openssl-src-111.25.0+1.1.1t + openssl-sys-0.9.80 + os_pipe-1.1.2 + os_str_bytes-6.4.1 + output_vt100-0.1.3 + overload-0.1.1 + parking-2.0.0 + parking_lot-0.12.1 + parking_lot_core-0.9.6 + path-slash-0.2.1 + pep440-0.2.0 + percent-encoding-2.2.0 + pin-project-lite-0.2.9 + pin-utils-0.1.0 + pkg-config-0.3.26 + plain-0.2.3 + platform-info-1.0.2 + polling-2.5.2 + portable-atomic-0.3.19 + ppv-lite86-0.2.17 + pretty_assertions-1.3.0 + proc-macro-crate-0.1.5 + proc-macro-crate-1.2.1 + proc-macro-error-1.0.4 + proc-macro-error-attr-1.0.4 + proc-macro-hack-0.5.20+deprecated + proc-macro2-1.0.51 + pyproject-toml-0.3.3 + python-pkginfo-0.5.5 + quote-1.0.23 + quoted_printable-0.4.7 + rand-0.8.5 + rand_chacha-0.3.1 + rand_core-0.6.4 + rayon-1.6.1 + rayon-core-1.10.2 + redox_syscall-0.2.16 + redox_users-0.4.3 + regex-1.7.1 + regex-automata-0.1.10 + regex-syntax-0.6.28 + remove_dir_all-0.5.3 + rfc2047-decoder-0.2.1 + ring-0.16.20 + rustc_version-0.4.0 + rustix-0.36.7 + rustls-0.20.8 + rustversion-1.0.11 + ryu-1.0.12 + same-file-1.0.6 + schannel-0.1.21 + scoped-tls-1.0.1 + scopeguard-1.1.0 + scroll-0.11.0 + scroll_derive-0.11.0 + sct-0.7.0 + secret-service-2.0.2 + security-framework-2.8.2 + security-framework-sys-2.8.0 + semver-1.0.16 + serde-1.0.152 + serde_derive-1.0.152 + serde_json-1.0.93 + serde_repr-0.1.10 + serde_spanned-0.6.1 + sha2-0.10.6 + sha2-0.9.9 + sharded-slab-0.1.4 + shell-escape-0.1.5 + shell-words-1.1.0 + shlex-1.1.0 + similar-2.2.1 + slab-0.4.7 + smallvec-1.10.0 + smawk-0.3.1 + snapbox-0.4.4 + snapbox-macros-0.3.1 + socket2-0.4.7 + socks-0.3.4 + spin-0.5.2 + static_assertions-1.1.0 + strsim-0.10.0 + subtle-2.4.1 + syn-1.0.107 + tar-0.4.38 + target-lexicon-0.12.6 + tempfile-3.3.0 + termcolor-1.2.0 + terminal_size-0.2.3 + textwrap-0.16.0 + thiserror-1.0.38 + thiserror-impl-1.0.38 + thread_local-1.1.7 + time-0.3.17 + time-core-0.1.0 + time-macros-0.2.6 + tiny-keccak-2.0.2 + tinyvec-1.6.0 + tinyvec_macros-0.1.1 + toml-0.5.11 + toml-0.7.2 + toml_datetime-0.6.1 + toml_edit-0.19.3 + tracing-0.1.37 + tracing-attributes-0.1.23 + tracing-core-0.1.30 + tracing-log-0.1.3 + tracing-serde-0.1.3 + tracing-subscriber-0.3.16 + trycmd-0.14.11 + twox-hash-1.6.3 + typenum-1.16.0 + unicase-2.6.0 + unicode-bidi-0.3.10 + unicode-ident-1.0.6 + unicode-linebreak-0.1.4 + unicode-normalization-0.1.22 + unicode-width-0.1.10 + untrusted-0.7.1 + ureq-2.6.2 + url-2.3.1 + uuid-1.3.0 + valuable-0.1.0 + vcpkg-0.2.15 + version_check-0.9.4 + versions-4.1.0 + wait-timeout-0.2.0 + waker-fn-1.1.0 + walkdir-2.3.2 + wasi-0.11.0+wasi-snapshot-preview1 + wasm-bindgen-0.2.84 + wasm-bindgen-backend-0.2.84 + wasm-bindgen-macro-0.2.84 + wasm-bindgen-macro-support-0.2.84 + wasm-bindgen-shared-0.2.84 + web-sys-0.3.61 + webpki-0.22.0 + webpki-roots-0.22.6 + wepoll-ffi-0.1.2 + which-4.4.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-sys-0.42.0 + windows_aarch64_gnullvm-0.42.1 + windows_aarch64_msvc-0.42.1 + windows_i686_gnu-0.42.1 + windows_i686_msvc-0.42.1 + windows_x86_64_gnu-0.42.1 + windows_x86_64_gnullvm-0.42.1 + windows_x86_64_msvc-0.42.1 + xattr-0.2.3 + xwin-0.2.10 + yansi-0.5.1 + zbus-1.9.3 + zbus_macros-1.9.3 + zeroize-1.5.7 + zip-0.6.4 + zvariant-2.10.0 + zvariant_derive-2.10.0" +# additional crates used by test-crates/* test packages, +# `grep test-crates tests/run.rs` to see which are needed +CRATES_TEST=" + askama-0.11.1 + askama_derive-0.11.2 + askama_escape-0.10.3 + askama_shared-0.12.2 + bincode-1.3.3 + cc-1.0.73 + cc-1.0.74 + indoc-1.0.7 + libc-0.2.134 + libc-0.2.137 + memoffset-0.8.0 + once_cell-1.15.0 + once_cell-1.16.0 + parking_lot_core-0.9.3 + parking_lot_core-0.9.4 + paste-1.0.11 + proc-macro2-1.0.46 + proc-macro2-1.0.47 + pyo3-0.18.0 + pyo3-build-config-0.17.3 + pyo3-build-config-0.18.0 + pyo3-ffi-0.17.3 + pyo3-ffi-0.18.0 + pyo3-macros-0.18.0 + pyo3-macros-backend-0.18.0 + python3-dll-a-0.2.6 + quote-1.0.21 + siphasher-0.3.10 + syn-1.0.102 + syn-1.0.103 + target-lexicon-0.12.4 + unicode-ident-1.0.5 + uniffi-0.23.0 + uniffi_bindgen-0.23.0 + uniffi_build-0.23.0 + uniffi_checksum_derive-0.23.0 + uniffi_core-0.23.0 + uniffi_macros-0.23.0 + uniffi_meta-0.23.0 + uniffi_testing-0.23.0 + unindent-0.1.10 + weedle2-4.0.0 + windows-sys-0.36.1 + windows_aarch64_gnullvm-0.42.0 + windows_aarch64_msvc-0.36.1 + windows_aarch64_msvc-0.42.0 + windows_i686_gnu-0.36.1 + windows_i686_gnu-0.42.0 + windows_i686_msvc-0.36.1 + windows_i686_msvc-0.42.0 + windows_x86_64_gnu-0.36.1 + windows_x86_64_gnu-0.42.0 + windows_x86_64_gnullvm-0.42.0 + windows_x86_64_msvc-0.36.1 + windows_x86_64_msvc-0.42.0" +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{9..11} ) +inherit cargo distutils-r1 edo flag-o-matic + +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/_beta/-beta.}.tar.gz + -> ${P}.gh.tar.gz + $(cargo_crate_uris) + test? ( $(cargo_crate_uris ${CRATES_TEST}) )" +S="${WORKDIR}/${P/_beta/-beta.}" + +LICENSE=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD + CC0-1.0 ISC MIT MPL-2.0 SSLeay Unicode-DFS-2016 openssl + doc? ( CC-BY-4.0 OFL-1.1 )" +SLOT="0" +# unkeyworded beta for testing +#KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{9..10} pypy3)" +BDEPEND=" + dev-python/setuptools-rust[${PYTHON_USEDEP}] + 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}] + )" + +QA_FLAGS_IGNORED="usr/bin/${PN}" + +src_prepare() { + distutils-r1_src_prepare + + # used to prevent use of network during tests + cat > "${T}"/pip.conf <<-EOF || die + [install] + no-index = yes + no-dependencies = yes + EOF +} + +src_configure() { + filter-lto # TODO: cleanup after bug #893658 + + local cargoargs=( + $(usev debug '--profile dev') + --no-default-features + --features full,password-storage # see release.yml + ) + + # rustls needs ring crate that only works on specific arches (bug #859577) + use amd64 || use x86 || use arm64 || use arm && + cargoargs+=(--features rustls) + + export MATURIN_SETUP_ARGS=${cargoargs[*]} # --no-default-features if empty +} + +python_compile_all() { + use !doc || mdbook build -d html guide || die +} + +python_test() { + local -x MATURIN_TEST_PYTHON=${EPYTHON} + local -x PIP_CONFIG_FILE=${T}/pip.conf + local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1 + + local skip=( + --skip locked_doesnt_build_without_cargo_lock + # relies on 80-chars terminal output but ignores exported COLUMNS=80 + --skip cli_tests + # 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 +} diff --git a/dev-util/maturin/maturin-1.0.0_beta1.ebuild b/dev-util/maturin/maturin-1.0.0_beta1.ebuild deleted file mode 100644 index 44299f0b5696..000000000000 --- a/dev-util/maturin/maturin-1.0.0_beta1.ebuild +++ /dev/null @@ -1,491 +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 - aes-0.7.5 - ahash-0.3.8 - ahash-0.7.6 - aho-corasick-0.7.20 - anyhow-1.0.69 - async-io-1.12.0 - async-lock-2.6.0 - autocfg-1.1.0 - base64-0.13.1 - bitflags-1.3.2 - block-buffer-0.10.3 - block-buffer-0.9.0 - block-modes-0.8.1 - block-padding-0.2.1 - bstr-1.2.0 - bumpalo-3.12.0 - byteorder-1.4.3 - bytes-1.4.0 - bytesize-1.1.0 - bzip2-0.4.4 - bzip2-sys-0.1.11+1.0.8 - cab-0.4.1 - camino-1.1.2 - cargo-config2-0.1.4 - cargo-options-0.6.0 - cargo-platform-0.1.2 - cargo-xwin-0.14.0 - cargo-zigbuild-0.16.0 - cargo_metadata-0.15.3 - cbindgen-0.24.3 - cc-1.0.79 - cfb-0.7.3 - cfg-expr-0.14.0 - cfg-if-1.0.0 - charset-0.1.3 - chumsky-0.8.0 - cipher-0.3.0 - clap-4.0.32 - clap_complete-4.0.7 - clap_complete_command-0.4.0 - clap_complete_fig-4.0.2 - clap_derive-4.0.21 - clap_lex-0.3.0 - cli-table-0.4.7 - concolor-0.0.11 - concolor-query-0.1.0 - concurrent-queue-2.1.0 - configparser-3.0.2 - console-0.15.5 - const-random-0.1.15 - const-random-macro-0.1.15 - content_inspector-0.2.4 - core-foundation-0.9.3 - core-foundation-sys-0.8.3 - cpufeatures-0.2.5 - crc32fast-1.3.2 - crossbeam-channel-0.5.6 - crossbeam-deque-0.8.2 - crossbeam-epoch-0.9.13 - crossbeam-utils-0.8.14 - crunchy-0.2.2 - crypto-common-0.1.6 - crypto-mac-0.11.1 - ctor-0.1.26 - data-encoding-2.3.3 - derivative-2.2.0 - dialoguer-0.10.3 - diff-0.1.13 - digest-0.10.6 - digest-0.9.0 - dirs-4.0.0 - dirs-sys-0.3.7 - dunce-1.0.3 - either-1.8.1 - encode_unicode-0.3.6 - encoding-0.2.33 - encoding-index-japanese-1.20141219.5 - encoding-index-korean-1.20141219.5 - encoding-index-simpchinese-1.20141219.5 - encoding-index-singlebyte-1.20141219.5 - encoding-index-tradchinese-1.20141219.5 - encoding_index_tests-0.1.4 - encoding_rs-0.8.32 - enumflags2-0.6.4 - enumflags2_derive-0.6.4 - errno-0.2.8 - errno-dragonfly-0.1.2 - event-listener-2.5.3 - fastrand-1.9.0 - fat-macho-0.4.6 - filetime-0.2.19 - flate2-1.0.25 - fnv-1.0.7 - foreign-types-0.3.2 - foreign-types-shared-0.1.1 - form_urlencoded-1.1.0 - fs-err-2.9.0 - futures-0.3.26 - futures-channel-0.3.26 - futures-core-0.3.26 - futures-executor-0.3.26 - futures-io-0.3.26 - futures-lite-1.12.0 - futures-macro-0.3.26 - futures-sink-0.3.26 - futures-task-0.3.26 - futures-util-0.3.26 - generic-array-0.14.6 - getrandom-0.2.8 - glob-0.3.1 - globset-0.4.10 - goblin-0.6.0 - hashbrown-0.12.3 - heck-0.4.1 - hermit-abi-0.2.6 - hkdf-0.11.0 - hmac-0.11.0 - home-0.5.4 - humantime-2.1.0 - humantime-serde-1.1.1 - idna-0.3.0 - ignore-0.4.20 - indexmap-1.9.2 - indicatif-0.17.3 - indoc-2.0.0 - instant-0.1.12 - io-lifetimes-1.0.4 - is-terminal-0.4.2 - itertools-0.10.5 - itoa-1.0.5 - js-sys-0.3.61 - keyring-1.2.1 - lazy_static-1.4.0 - lddtree-0.3.2 - libc-0.2.139 - linux-raw-sys-0.1.4 - lock_api-0.4.9 - log-0.4.17 - lzxd-0.1.4 - mailparse-0.13.8 - matchers-0.1.0 - memchr-2.5.0 - memoffset-0.6.5 - memoffset-0.7.1 - mime-0.3.16 - mime_guess-2.0.4 - minijinja-0.30.4 - minimal-lexical-0.2.1 - miniz_oxide-0.6.2 - msi-0.5.0 - multipart-0.18.0 - native-tls-0.2.11 - nb-connect-1.2.0 - nix-0.22.3 - nom-7.1.3 - nom8-0.2.0 - normalize-line-endings-0.3.0 - normpath-1.0.1 - nu-ansi-term-0.46.0 - num-0.4.0 - num-bigint-0.4.3 - num-complex-0.4.3 - num-integer-0.1.45 - num-iter-0.1.43 - num-rational-0.4.1 - num-traits-0.2.15 - num_cpus-1.15.0 - number_prefix-0.4.0 - once_cell-1.17.0 - opaque-debug-0.3.0 - openssl-0.10.45 - openssl-macros-0.1.0 - openssl-probe-0.1.5 - openssl-src-111.25.0+1.1.1t - openssl-sys-0.9.80 - os_pipe-1.1.2 - os_str_bytes-6.4.1 - output_vt100-0.1.3 - overload-0.1.1 - parking-2.0.0 - parking_lot-0.12.1 - parking_lot_core-0.9.6 - path-slash-0.2.1 - pep440-0.2.0 - percent-encoding-2.2.0 - pin-project-lite-0.2.9 - pin-utils-0.1.0 - pkg-config-0.3.26 - plain-0.2.3 - platform-info-1.0.2 - polling-2.5.2 - portable-atomic-0.3.19 - ppv-lite86-0.2.17 - pretty_assertions-1.3.0 - proc-macro-crate-0.1.5 - proc-macro-crate-1.2.1 - proc-macro-error-1.0.4 - proc-macro-error-attr-1.0.4 - proc-macro-hack-0.5.20+deprecated - proc-macro2-1.0.51 - pyproject-toml-0.3.3 - python-pkginfo-0.5.5 - quote-1.0.23 - quoted_printable-0.4.7 - rand-0.8.5 - rand_chacha-0.3.1 - rand_core-0.6.4 - rayon-1.6.1 - rayon-core-1.10.2 - redox_syscall-0.2.16 - redox_users-0.4.3 - regex-1.7.1 - regex-automata-0.1.10 - regex-syntax-0.6.28 - remove_dir_all-0.5.3 - rfc2047-decoder-0.2.1 - ring-0.16.20 - rustc_version-0.4.0 - rustix-0.36.7 - rustls-0.20.8 - rustversion-1.0.11 - ryu-1.0.12 - same-file-1.0.6 - schannel-0.1.21 - scoped-tls-1.0.1 - scopeguard-1.1.0 - scroll-0.11.0 - scroll_derive-0.11.0 - sct-0.7.0 - secret-service-2.0.2 - security-framework-2.8.2 - security-framework-sys-2.8.0 - semver-1.0.16 - serde-1.0.152 - serde_derive-1.0.152 - serde_json-1.0.93 - serde_repr-0.1.10 - serde_spanned-0.6.1 - sha2-0.10.6 - sha2-0.9.9 - sharded-slab-0.1.4 - shell-escape-0.1.5 - shell-words-1.1.0 - shlex-1.1.0 - similar-2.2.1 - slab-0.4.7 - smallvec-1.10.0 - smawk-0.3.1 - snapbox-0.4.4 - snapbox-macros-0.3.1 - socket2-0.4.7 - socks-0.3.4 - spin-0.5.2 - static_assertions-1.1.0 - strsim-0.10.0 - subtle-2.4.1 - syn-1.0.107 - tar-0.4.38 - target-lexicon-0.12.6 - tempfile-3.3.0 - termcolor-1.2.0 - terminal_size-0.2.3 - textwrap-0.16.0 - thiserror-1.0.38 - thiserror-impl-1.0.38 - thread_local-1.1.7 - time-0.3.17 - time-core-0.1.0 - time-macros-0.2.6 - tiny-keccak-2.0.2 - tinyvec-1.6.0 - tinyvec_macros-0.1.1 - toml-0.5.11 - toml-0.7.2 - toml_datetime-0.6.1 - toml_edit-0.19.3 - tracing-0.1.37 - tracing-attributes-0.1.23 - tracing-core-0.1.30 - tracing-log-0.1.3 - tracing-serde-0.1.3 - tracing-subscriber-0.3.16 - trycmd-0.14.11 - twox-hash-1.6.3 - typenum-1.16.0 - unicase-2.6.0 - unicode-bidi-0.3.10 - unicode-ident-1.0.6 - unicode-linebreak-0.1.4 - unicode-normalization-0.1.22 - unicode-width-0.1.10 - untrusted-0.7.1 - ureq-2.6.2 - url-2.3.1 - uuid-1.3.0 - valuable-0.1.0 - vcpkg-0.2.15 - version_check-0.9.4 - versions-4.1.0 - wait-timeout-0.2.0 - waker-fn-1.1.0 - walkdir-2.3.2 - wasi-0.11.0+wasi-snapshot-preview1 - wasm-bindgen-0.2.84 - wasm-bindgen-backend-0.2.84 - wasm-bindgen-macro-0.2.84 - wasm-bindgen-macro-support-0.2.84 - wasm-bindgen-shared-0.2.84 - web-sys-0.3.61 - webpki-0.22.0 - webpki-roots-0.22.6 - wepoll-ffi-0.1.2 - which-4.4.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-sys-0.42.0 - windows_aarch64_gnullvm-0.42.1 - windows_aarch64_msvc-0.42.1 - windows_i686_gnu-0.42.1 - windows_i686_msvc-0.42.1 - windows_x86_64_gnu-0.42.1 - windows_x86_64_gnullvm-0.42.1 - windows_x86_64_msvc-0.42.1 - xattr-0.2.3 - xwin-0.2.10 - yansi-0.5.1 - zbus-1.9.3 - zbus_macros-1.9.3 - zeroize-1.5.7 - zip-0.6.4 - zvariant-2.10.0 - zvariant_derive-2.10.0" -# additional crates used by test-crates/* test packages, -# `grep test-crates tests/run.rs` to see which are needed -CRATES_TEST=" - askama-0.11.1 - askama_derive-0.11.2 - askama_escape-0.10.3 - askama_shared-0.12.2 - bincode-1.3.3 - cc-1.0.73 - cc-1.0.74 - indoc-1.0.7 - libc-0.2.134 - libc-0.2.137 - memoffset-0.8.0 - once_cell-1.15.0 - once_cell-1.16.0 - parking_lot_core-0.9.3 - parking_lot_core-0.9.4 - paste-1.0.11 - proc-macro2-1.0.46 - proc-macro2-1.0.47 - pyo3-0.18.0 - pyo3-build-config-0.17.3 - pyo3-build-config-0.18.0 - pyo3-ffi-0.17.3 - pyo3-ffi-0.18.0 - pyo3-macros-0.18.0 - pyo3-macros-backend-0.18.0 - python3-dll-a-0.2.6 - quote-1.0.21 - siphasher-0.3.10 - syn-1.0.102 - syn-1.0.103 - target-lexicon-0.12.4 - unicode-ident-1.0.5 - uniffi-0.23.0 - uniffi_bindgen-0.23.0 - uniffi_build-0.23.0 - uniffi_checksum_derive-0.23.0 - uniffi_core-0.23.0 - uniffi_macros-0.23.0 - uniffi_meta-0.23.0 - uniffi_testing-0.23.0 - unindent-0.1.10 - weedle2-4.0.0 - windows-sys-0.36.1 - windows_aarch64_gnullvm-0.42.0 - windows_aarch64_msvc-0.36.1 - windows_aarch64_msvc-0.42.0 - windows_i686_gnu-0.36.1 - windows_i686_gnu-0.42.0 - windows_i686_msvc-0.36.1 - windows_i686_msvc-0.42.0 - windows_x86_64_gnu-0.36.1 - windows_x86_64_gnu-0.42.0 - windows_x86_64_gnullvm-0.42.0 - windows_x86_64_msvc-0.36.1 - windows_x86_64_msvc-0.42.0" -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{9..11} ) -inherit cargo distutils-r1 edo flag-o-matic - -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/_beta/-beta.}.tar.gz - -> ${P}.gh.tar.gz - $(cargo_crate_uris) - test? ( $(cargo_crate_uris ${CRATES_TEST}) )" -S="${WORKDIR}/${P/_beta/-beta.}" - -LICENSE=" - 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD - CC0-1.0 ISC MIT MPL-2.0 SSLeay Unicode-DFS-2016 openssl - doc? ( CC-BY-4.0 OFL-1.1 )" -SLOT="0" -# unkeyworded beta for testing -#KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.{9..10} pypy3)" -BDEPEND=" - dev-python/setuptools-rust[${PYTHON_USEDEP}] - 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}] - )" - -QA_FLAGS_IGNORED="usr/bin/${PN}" - -src_prepare() { - distutils-r1_src_prepare - - # used to prevent use of network during tests - cat > "${T}"/pip.conf <<-EOF || die - [install] - no-index = yes - no-dependencies = yes - EOF -} - -src_configure() { - filter-lto # TODO: cleanup after bug #893658 - - # no features if empty (pep517-only), this re-enables them like releases do - export MATURIN_SETUP_ARGS=" " - - # cargo.eclass adds IUSE=debug, avoid it being a noop - use debug && MATURIN_SETUP_ARGS+=" --profile dev" - - # rustls needs ring crate that only works on specific arches (bug #859577) - use !amd64 && use !x86 && use !arm64 && use !arm && - MATURIN_SETUP_ARGS+=" --no-default-features --features full" -} - -python_compile_all() { - use !doc || mdbook build -d html guide || die -} - -python_test() { - local -x MATURIN_TEST_PYTHON=${EPYTHON} - local -x PIP_CONFIG_FILE=${T}/pip.conf - local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1 - - local skip=( - --skip locked_doesnt_build_without_cargo_lock - # relies on 80-chars terminal output but ignores exported COLUMNS=80 - --skip cli_tests - # 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 -} -- cgit v1.2.3