summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-06-18 03:31:22 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-06-18 05:25:47 -0400
commitc743b0bd2072fb0ad2a7d82fb5e1115265937af0 (patch)
treebd559963e5edb315dadb29759e146d941562754e /dev-util/maturin
parentmedia-gfx/graphviz: add 4.0.0 (diff)
downloadgentoo-c743b0bd2072fb0ad2a7d82fb5e1115265937af0.tar.gz
gentoo-c743b0bd2072fb0ad2a7d82fb5e1115265937af0.tar.bz2
gentoo-c743b0bd2072fb0ad2a7d82fb5e1115265937af0.zip
dev-util/maturin: revert drive-by style changes
From 51a6052911456321df1622458f3586d232d6784b, keeping pypy3. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-util/maturin')
-rw-r--r--dev-util/maturin/maturin-0.12.20.ebuild28
1 files changed, 9 insertions, 19 deletions
diff --git a/dev-util/maturin/maturin-0.12.20.ebuild b/dev-util/maturin/maturin-0.12.20.ebuild
index 50a55d370a94..220a3fe60583 100644
--- a/dev-util/maturin/maturin-0.12.20.ebuild
+++ b/dev-util/maturin/maturin-0.12.20.ebuild
@@ -303,8 +303,7 @@ CRATES="
zbus_macros-1.9.1
zip-0.6.2
zvariant-2.10.0
- zvariant_derive-2.10.0
-"
+ zvariant_derive-2.10.0"
CRATES_TEST="
libc-0.2.119
libc-0.2.125
@@ -326,12 +325,9 @@ CRATES_TEST="
target-lexicon-0.12.3
unicode-ident-1.0.0
unicode-xid-0.2.3
- unindent-0.1.9
-"
-
+ unindent-0.1.9"
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
inherit cargo distutils-r1 flag-o-matic
DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings"
@@ -339,13 +335,11 @@ HOMEPAGE="https://maturin.rs/"
SRC_URI="
https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)
- test? ( $(cargo_crate_uris ${CRATES_TEST}) )
-"
+ test? ( $(cargo_crate_uris ${CRATES_TEST}) )"
LICENSE="
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC MIT MPL-2.0 openssl
- doc? ( CC-BY-4.0 OFL-1.1 )
-"
+ doc? ( CC-BY-4.0 OFL-1.1 )"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="doc test"
@@ -354,8 +348,7 @@ RESTRICT="!test? ( test )"
RDEPEND="
$(python_gen_cond_dep '
dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.{8..10})
-"
+ ' 3.{8..10})"
BDEPEND="
dev-python/setuptools-rust[${PYTHON_USEDEP}]
doc? ( app-text/mdbook )
@@ -365,8 +358,7 @@ BDEPEND="
' 'python*')
dev-python/boltons[${PYTHON_USEDEP}]
dev-python/virtualenv[${PYTHON_USEDEP}]
- )
-"
+ )"
QA_FLAGS_IGNORED=".*/${PN}"
@@ -408,18 +400,16 @@ python_test() {
local -x PIP_CONFIG_FILE=${T}/pip.conf
local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1
- local skips=(
+ local skip=(
# pyo3_no_extension_module is xfail but passes with >=rust-1.60, still
# need looking into but is not known to cause issues, disable for now.
--skip locked_doesnt_build_without_cargo_lock
--skip pyo3_no_extension_module
)
- [[ ${EPYTHON} == pypy3 ]] && skips+=(
- --skip integration_pyo3_bin
- )
+ [[ ${EPYTHON} == pypy3 ]] && skip+=( --skip integration_pyo3_bin )
cp -r test-crates{.orig,} || die
- cargo_src_test -- "${skips[@]}"
+ cargo_src_test -- "${skip[@]}"
rm -r test-crates || die
}