mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/maturin: drop 1.11.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
DIST maturin-1.10.2-vendor.tar.xz 16239924 BLAKE2B 6561098c0e9c6d42239a53ed01a59d68967df6c26190ea8e35d207ee4631dca9eda588cac8de2f75c47f86f7866d45604bc19e12625fcb6286b2c75dabfda6f6 SHA512 80a588970b93e0cf9f4bca5aa4541bb7aa080c491285fe39cabc8747f2b43f8e7d6cb6bc0b37f24841181bd12a6ba8fe7d0518d5f2dea0f791f0266fda327bde
|
||||
DIST maturin-1.10.2.gh.tar.gz 586416 BLAKE2B a1aa5edcdc40b96149605b4fbe3672a8f7ec69327b42a96915fd8ba55aa4a03798b59db9d228e8df5be195933613080768ade58ca8d393aae2c123508c9d28a0 SHA512 5b14426d8324e48ccce1979ddc6b71a2055b725d090156a5de5b54c598ed2da282da54e25fe5dfe260ab09f4788f4af6235272e266ee62bd6a690ce5476c758a
|
||||
DIST maturin-1.11.0-vendor.tar.xz 16283584 BLAKE2B 3128d238fe2eb302974ba4cc275b5a6bdeb85b1bcf715b807789c2c1ac764e3d343b2ee8b8689ad4b3746b5b412fed4c7f73df5093b2a0ca48d6a5a464af16ef SHA512 2cff5b3e63a7f4faf9458652c93c76f5f135ba4151cae90e95af10c4f9df27a69bd4f35a296df5bc04c6a2e723ad07af29b943861bfade0aef69acc30b244c8a
|
||||
DIST maturin-1.11.0.gh.tar.gz 592915 BLAKE2B 1861d3ed71ebc2734807a28ad29a3a000cb077a844598b354e2c8f5a180f8594f6ca328b8981b2dd2f1a8e2a029330ac5e9cabf658616c054d100cbc4de3a4ab SHA512 42be019116235fd07b65af5b030b27110eca701416ae6fa71afd355eb99f41c172502a1b9b1f40a6fc7ed70ce11c0cef402cb19aced448d2538637976432ff77
|
||||
DIST maturin-1.11.2-vendor.tar.xz 16507192 BLAKE2B 62a0ec60cec29c85e59db336fc48e9333364d1499afc75862d17adeff8b42b9bb33bbbe17aaa991127defb062d27215be6fc912ac649e28ad266a742ea237d2b SHA512 bcdaccd748feacf58770660b245410e47d7dceaa6718229ad865282d8f751090d5ce60bab744ab6a6f9785ecbb54bd528211cdc1e8c0d57357aa6f61ec2269c3
|
||||
DIST maturin-1.11.2.gh.tar.gz 595840 BLAKE2B 288cb76e8f6af35458aa6a05d54ce3266d0477a6e06c21c0e3092b6603eda318fb5338f5a2d5653a96363a1c52b33d03149370a31eabd722996bb59d8b161d00 SHA512 37a28e246462c8f936fccd25a1a2df939b61ac4f7dbaa75d6f175c10229c5b77e48eaf645a3e547e46342e64e2686bfdef6598d8fcc2b0d5274ba35e337c279d
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_UPSTREAM_PEP517=standalone
|
||||
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
|
||||
RUST_MIN_VER=1.85.0
|
||||
inherit cargo distutils-r1 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
|
||||
https://dev.gentoo.org/~ionen/distfiles/${P}-vendor.tar.xz
|
||||
"
|
||||
# ^ tarball also includes test-crates' Cargo.lock(s) crates for tests
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT ) doc? ( OFL-1.1 )"
|
||||
LICENSE+="
|
||||
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT MPL-2.0
|
||||
Unicode-3.0 ZLIB BZIP2
|
||||
" # crates
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="doc +ssl test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/xz-utils
|
||||
app-arch/zstd:=
|
||||
ssl? ( dev-libs/openssl:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( >=app-text/mdbook-0.5 )
|
||||
test? (
|
||||
$(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*')
|
||||
dev-python/boltons[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
elibc_musl? ( dev-util/patchelf )
|
||||
)
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# we build the Rust executable (just once) via cargo_src_compile
|
||||
sed -i -e '/setuptools_rust/d' -e '/rust_extensions/d' setup.py || die
|
||||
|
||||
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
|
||||
|
||||
# uv does not work easily w/ network-sandbox, force virtualenv
|
||||
sed -i 's/"uv"/"uv-not-found"/' tests/common/mod.rs || die
|
||||
|
||||
# increase timeouts for tests (bug #950332)
|
||||
sed -i '/^#\[timeout/s/secs(60)/secs(300)/' tests/run.rs || die
|
||||
|
||||
# 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() {
|
||||
export OPENSSL_NO_VENDOR=1
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1
|
||||
|
||||
# https://github.com/rust-lang/stacker/issues/79
|
||||
use s390 && ! is-flagq '-march=*' &&
|
||||
append-cflags $(test-flags-CC -march=z10)
|
||||
|
||||
local myfeatures=(
|
||||
# like release.yml + native-tls for better platform support than rustls
|
||||
full
|
||||
password-storage
|
||||
$(usev ssl native-tls)
|
||||
)
|
||||
|
||||
cargo_src_configure --no-default-features
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
cargo_src_compile
|
||||
|
||||
use !doc || mdbook build -d "${T}"/html guide || die
|
||||
|
||||
if ! tc-is-cross-compiler; then
|
||||
local maturin=$(cargo_target_dir)/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 MATURIN_TEST_PYTHON=${EPYTHON}
|
||||
local -x PIP_CONFIG_FILE=${T}/pip.conf
|
||||
local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1
|
||||
|
||||
# need this for (new) python versions not yet recognized by pyo3
|
||||
local -x PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
|
||||
|
||||
local skip=(
|
||||
# picky cli output test that easily benignly fail (bug #937992)
|
||||
--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
|
||||
# unimportant tests that require uv, and not obvious to get it
|
||||
# to work with network-sandbox (not worth the trouble)
|
||||
--skip develop_hello_world::case_2
|
||||
--skip develop_pyo3_ffi_pure::case_2
|
||||
# compliance test using zig requires an old libc to pass (bug #946967)
|
||||
--skip integration_pyo3_mixed_py_subdir
|
||||
# these currently attempt to install tomli regardless of python version
|
||||
--skip pep517_default_profile
|
||||
--skip pep517_editable_profile
|
||||
)
|
||||
|
||||
cargo_src_test -- "${skip[@]}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dobin "$(cargo_target_dir)"/maturin
|
||||
|
||||
dodoc Changelog.md README.md
|
||||
use doc && dodoc -r "${T}"/html
|
||||
|
||||
if ! tc-is-cross-compiler; then
|
||||
dobashcomp "${T}"/${PN}
|
||||
dofishcomp "${T}"/${PN}.fish
|
||||
dozshcomp "${T}"/_${PN}
|
||||
fi
|
||||
}
|
||||
@@ -36,11 +36,6 @@
|
||||
|
||||
#--- END OF EXAMPLES ---
|
||||
|
||||
# Ionen Wolkens <ionen@gentoo.org> (2025-12-30)
|
||||
# This release has been yanked upstream, do the same in case.
|
||||
# https://github.com/PyO3/maturin/issues/2909
|
||||
~dev-util/maturin-1.11.0
|
||||
|
||||
# James Le Cuirot <chewi@gentoo.org> (2025-12-24)
|
||||
# The upstream community has forked with the vast majority going to UZDoom, now
|
||||
# packaged as games-engines/uzdoom in Gentoo. https://zdoom.org now follows this
|
||||
|
||||
Reference in New Issue
Block a user