From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 085D2159C9C for ; Mon, 5 Aug 2024 11:48:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB431E2A76; Mon, 5 Aug 2024 11:48:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABDBC2BC080 for ; Mon, 5 Aug 2024 11:48:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A69D4340813 for ; Mon, 5 Aug 2024 11:48:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12E9F1E9E for ; Mon, 5 Aug 2024 11:48:55 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1722858505.3ac47141684b404e68ace06a72eff4106f0bafba.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools-rust/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/setuptools-rust/Manifest dev-python/setuptools-rust/setuptools-rust-1.10.1.ebuild X-VCS-Directories: dev-python/setuptools-rust/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3ac47141684b404e68ace06a72eff4106f0bafba X-VCS-Branch: master Date: Mon, 5 Aug 2024 11:48:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3ccfb45b-b3c9-4fef-991d-c5637e54d17d X-Archives-Hash: e788f2b7195f2529d2fe251cce85f08e commit: 3ac47141684b404e68ace06a72eff4106f0bafba Author: Michał Górny gentoo org> AuthorDate: Mon Aug 5 03:49:18 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Aug 5 11:48:25 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ac47141 dev-python/setuptools-rust: Bump to 1.10.1 Signed-off-by: Michał Górny gentoo.org> dev-python/setuptools-rust/Manifest | 1 + .../setuptools-rust/setuptools-rust-1.10.1.ebuild | 176 +++++++++++++++++++++ 2 files changed, 177 insertions(+) diff --git a/dev-python/setuptools-rust/Manifest b/dev-python/setuptools-rust/Manifest index 18253348afbb..2f5e1719ec76 100644 --- a/dev-python/setuptools-rust/Manifest +++ b/dev-python/setuptools-rust/Manifest @@ -105,6 +105,7 @@ DIST serde-1.0.200.crate 77611 BLAKE2B 57f4a76cf534ffda009a5441e694b0ac87b30e470 DIST serde_derive-1.0.200.crate 55785 BLAKE2B 45eca5504aff6bd099a42dfc794cf732c7e76e5ed362d16082ac069d29e1e6c22bb3e13dede4bc498df8f008bdba15479de618380f37c9742a34d97c9ca12efe SHA512 e70f0e092d81542a96b33610da8ddbf04023d8ecc1fa4a4f31978699c118f096e8534f9e3e4e479ee74280efb86d752dd1fce038ef2def329fdcc10c1aa50942 DIST servo_arc-0.1.1.crate 9817 BLAKE2B 88586ca0c969df8bfb3a04ba4a689606995876434877a2cd48a72b26451deb6fdcf65273aa9b03948adcbc66b2450301840910e5c4162b993535d69585c62128 SHA512 59d531dcf7a9191b8462ce395e713194994714b65275c0af412186f862be169d0c6fc5d86603332a1aacd8af9ace934dc78531b9cb576cf8179ec35709225447 DIST setuptools-rust-1.10.0.gh.tar.gz 303846 BLAKE2B 33fd4bef8f3fffd76230211c1d419bce3eb0dc3729fa82ec37025e2779996b7a13826517d4f8bc955c79a05a04628962ab3553beebe0954a6acba4135274d5dc SHA512 dc1e4d6cc6094d54c993c13b41c6ea63a84772733640b17e7287c3f7fc144ef747d0807ea2ea134f833d2c2a74a1f8e5385aa700b0787383e1d0bc4f39be3e09 +DIST setuptools-rust-1.10.1.gh.tar.gz 303851 BLAKE2B 09ede3e017fb3c7202a6e4426f3ac401234ae306e93b88dc6c7364e0718ccb0ce2f1b863c3a41f1158b85cb24e3a4c3ea4ba8ef5e6fa16e4768f9ac42c89aa71 SHA512 9fff3f5a8f1808da4a588ab2e3684b0d279c7813fbcb994a98996a5f20bbe9f5e26e2ad3235f35baac727106ea5023e744015f238b22436bbf3a3f6e0e8b9c2f DIST setuptools-rust-1.9.0.gh.tar.gz 305578 BLAKE2B 5267a3ec9f816522feceee0e09f833d493e5a401b654a86269e8b8969b16313ed672ce35e1ef7023704ca1d084aa9d393cf2d115fff2e3f7fd1a68992fdd0dcf SHA512 874bb632a2847cd5febeaa766765ee58432b1a0b96fddfe0fb779f9d7965b726a7c7836e3de6700d801aca1b00a64326ca3de63027069c4a047800bd5d64dfcc DIST siphasher-0.3.10.crate 9889 BLAKE2B e5dd6d265340b4c9e4266ab1ff3a20f1fb87fd493b2d7b5fba32d26421cc858b38929e4ab96941d0c055375b8acebbd04236d994cadca324500ed05064b9bfc9 SHA512 f90425a2cccc9575d377bb92a765d34653ddef1ac12b7c63dc6d700aaa74b525787e11609061c2d3e44ea56fe0e4b8f93f7b13f0279b5de2e0f710c5caffd4ce DIST siphasher-0.3.11.crate 10442 BLAKE2B 771221614bbd56f609b9743da4352dc7a2cbd0f6257952fab0cd052e5e5b258a4c95a0461d6d1b579dec90b72d66a0e58e036899b3db8341ae753a421a4cd4d5 SHA512 601121bd41da896142dc6ccc74a6eec3ebee3e976857ab8b5d21e915fdc8bc6e979af66a489c406371fbbbfc7a13338cc4b3744aa981206e43c53998f3e1699b diff --git a/dev-python/setuptools-rust/setuptools-rust-1.10.1.ebuild b/dev-python/setuptools-rust/setuptools-rust-1.10.1.ebuild new file mode 100644 index 000000000000..ff8031b5fb46 --- /dev/null +++ b/dev-python/setuptools-rust/setuptools-rust-1.10.1.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CARGO_OPTIONAL=yes +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) + +CRATES=" + autocfg@1.3.0 + bitflags@1.3.2 + bitflags@2.5.0 + byteorder@1.5.0 + cfg-if@1.0.0 + convert_case@0.4.0 + cssparser-macros@0.6.1 + cssparser@0.27.2 + derive_more@0.99.17 + dtoa-short@0.3.4 + dtoa@1.0.9 + futf@0.1.5 + fxhash@0.2.1 + getrandom@0.1.16 + getrandom@0.2.15 + heck@0.5.0 + html5ever@0.25.2 + indoc@2.0.5 + itoa@0.4.8 + kuchiki@0.8.1 + libc@0.2.154 + lock_api@0.4.12 + log@0.4.21 + mac@0.1.1 + markup5ever@0.10.1 + matches@0.1.10 + memoffset@0.9.1 + new_debug_unreachable@1.0.6 + nodrop@0.1.14 + once_cell@1.19.0 + parking_lot@0.12.2 + parking_lot_core@0.9.10 + phf@0.8.0 + phf_codegen@0.8.0 + phf_generator@0.10.0 + phf_generator@0.8.0 + phf_macros@0.8.0 + phf_shared@0.10.0 + phf_shared@0.8.0 + portable-atomic@1.6.0 + ppv-lite86@0.2.17 + precomputed-hash@0.1.1 + proc-macro-hack@0.5.20+deprecated + proc-macro2@1.0.82 + pyo3-build-config@0.22.2 + pyo3-ffi@0.22.2 + pyo3-macros-backend@0.22.2 + pyo3-macros@0.22.2 + pyo3@0.22.2 + quote@1.0.36 + rand@0.7.3 + rand@0.8.5 + rand_chacha@0.2.2 + rand_chacha@0.3.1 + rand_core@0.5.1 + rand_core@0.6.4 + rand_hc@0.2.0 + rand_pcg@0.2.1 + redox_syscall@0.5.1 + rustc_version@0.4.0 + scopeguard@1.2.0 + selectors@0.22.0 + semver@1.0.23 + serde@1.0.200 + serde_derive@1.0.200 + servo_arc@0.1.1 + siphasher@0.3.11 + smallvec@1.13.2 + stable_deref_trait@1.2.0 + string_cache@0.8.7 + string_cache_codegen@0.5.2 + syn@1.0.109 + syn@2.0.61 + target-lexicon@0.12.14 + tendril@0.4.3 + thin-slice@0.1.1 + unicode-ident@1.0.12 + unindent@0.2.3 + utf-8@0.7.6 + wasi@0.11.0+wasi-snapshot-preview1 + wasi@0.9.0+wasi-snapshot-preview1 + windows-targets@0.52.5 + windows_aarch64_gnullvm@0.52.5 + windows_aarch64_msvc@0.52.5 + windows_i686_gnu@0.52.5 + windows_i686_gnullvm@0.52.5 + windows_i686_msvc@0.52.5 + windows_x86_64_gnu@0.52.5 + windows_x86_64_gnullvm@0.52.5 + windows_x86_64_msvc@0.52.5 +" + +inherit distutils-r1 cargo + +DESCRIPTION="A plugin for setuptools to build Rust Python extensions" +HOMEPAGE=" + https://github.com/PyO3/setuptools-rust/ + https://pypi.org/project/setuptools-rust/ +" +SRC_URI=" + https://github.com/PyO3/setuptools-rust/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz + test? ( ${CARGO_CRATE_URIS} ) +" + +# crates are used at test time only, update via pycargoebuild -L -i ... +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + virtual/rust + =dev-python/semantic-version-2.8.2[${PYTHON_USEDEP}] + >=dev-python/setuptools-62.4[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-62.4[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +src_unpack() { + cargo_src_unpack +} + +python_test() { + local -x UNSAFE_PYO3_SKIP_VERSION_CHECK=1 + + local examples=( + html-py-ever + namespace_package + rust_with_cffi + ) + for example_dir in ${examples[@]}; do + pushd examples/${example_dir} >/dev/null || die + einfo "Running ${example_dir} test" + esetup.py build --build-lib=build/lib + + case ${example_dir} in + html-py-ever) + pushd tests >/dev/null || die + local -x PYTHONPATH=../build/lib + ${EPYTHON} run_all.py || die "Tests failed with ${EPYTHON}" + popd >/dev/null || die + ;; + *) + pushd build/lib >/dev/null || die + epytest ../../tests + popd >/dev/null || die + ;; + esac + + rm -rf build || die + popd >/dev/null || die + done +}