mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
dev-python/hypothesis: Bump to 6.170.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -12,6 +12,7 @@ DIST hypothesis-6.169.0.gh.tar.gz 9710358 BLAKE2B fb65497c921687a5e1a3b551528b38
|
||||
DIST hypothesis-6.169.1.gh.tar.gz 9710711 BLAKE2B 8abedcdcba8a1d32e424a951047450be5ee33d8fa4fd8cd66e152c89abf60d7fb39fc0573e5778bf09442af2e30a648e4621208c7fe285a8fed670b9c37e15c2 SHA512 f1da6e1709e8e5eccf337cfeece87a197b402d62175a869b1ba4d1e1b06429d438cdf8b9ef8dc99c4928a0f24f8a7991d52272dc748bd2ccfe8655aae62556b0
|
||||
DIST hypothesis-6.169.3.gh.tar.gz 9711107 BLAKE2B 973dc2650033c5b31dd2b6e792353609ba51c362e0cd69e312a1731400ba83fdc2babe2be2c82c2fedc998036d15ee245c2f96a8cc4280c646da3b1268b5e46d SHA512 bee8c5489645835eb8371dd6e242ce51c07d937fe06138235637ebc57fc29b9b40272b45e92ce16b0fc43a1992510490189bd55bd635fe1270b3cb34d65069ba
|
||||
DIST hypothesis-6.170.0.gh.tar.gz 9723099 BLAKE2B 0876a9786084cb4b9d6f0494a14ae7953b64641968991fdd8ac03944582018cf665db55fabee07d2da11a8a50d85dcc97b9cb907cec35dab97588492b928cd3d SHA512 b0505bbbfe05e3d3df1d622accb6a971b68b3ba6680c9611fd4185be1f55a598875d4319dba012d3ca53491663b673e595a6fe9303f04a0255ecc55ff4cc77a0
|
||||
DIST hypothesis-6.170.1.gh.tar.gz 9724551 BLAKE2B a890c940391e77985c4e9b6131410cc03c371fd985e9102cbadd5e0e52e70db06358c73614cb0a8729f8d305c0d5062ff1badc9c5e092161d6e6d2ed6a02c475 SHA512 001cf30549c78ee0c469c804f154b528c44b8e2126a7578cb9eb5a3423b8419b9894fcde7c65290922a225fc6bae9f5d030953c40625bcdd9cabd16681320e58
|
||||
DIST libc-0.2.186.crate 821883 BLAKE2B ebe7aac5f8937a8064c64a0d4dc72e5fc794080e09b96c6d245bdec0fd9a19d49ab38e25306e22e47564764cf5dcde45855237cffc70230a143eca2626bd5c3c SHA512 6a58e671ec6811dff9a0d7d4db8f37d38bcbca9efff20dad4706190e5cdb77b426567754bcf0ef0f2d0c31d6506401f724f3ca500b9bed57bb8605b1141ed690
|
||||
DIST once_cell-1.21.4.crate 35010 BLAKE2B 9117ed1d478e626b7b7be2e3ff8b68a382b051112c7ca4425367bdae86977671f8b5c576131c82fb437740b6d98b72501f718f4172d39781decac2385e8fbd4d SHA512 af67669b0107f44268ba74c355200cb2ed1aab235a6989a8bc54323eb2c9a45677010f8672e7790edadd4c981e939436e0c3a099d33c06dce9c14fd5ede86155
|
||||
DIST portable-atomic-1.13.1.crate 197001 BLAKE2B 6d0898c2a537a9bf204b7749cca5f5fddf280772b56eb7ce8fdd9cf7d71561137b26ef89f415c40277a1c89981333eef78e5bb4624515a294ba28fdaeb4c70ea SHA512 2a1b31ac9814af884640b3398ab824a9795c72d260527a0966b193113808cfbb3345d50cd1beaebb45863437c3d06c8706d34b26efecceefc649319a4bc274a3
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=maturin
|
||||
CLI_COMPAT=( python3_{12..15} )
|
||||
PYTHON_COMPAT=( "${CLI_COMPAT[@]}" python3_{14..15}t )
|
||||
PYTHON_REQ_USE="threads(+),sqlite"
|
||||
|
||||
RUST_MIN_VER="1.91.0"
|
||||
CRATES="
|
||||
cfg-if@1.0.4
|
||||
crunchy@0.2.4
|
||||
getrandom@0.3.4
|
||||
half@2.7.1
|
||||
heck@0.5.0
|
||||
libc@0.2.186
|
||||
once_cell@1.21.4
|
||||
portable-atomic@1.13.1
|
||||
ppv-lite86@0.2.21
|
||||
proc-macro2@1.0.106
|
||||
pyo3-build-config@0.29.3
|
||||
pyo3-ffi@0.29.3
|
||||
pyo3-macros-backend@0.29.3
|
||||
pyo3-macros@0.29.3
|
||||
pyo3@0.29.3
|
||||
quote@1.0.46
|
||||
r-efi@5.3.0
|
||||
rand@0.9.4
|
||||
rand_chacha@0.9.0
|
||||
rand_core@0.9.5
|
||||
syn@2.0.118
|
||||
target-lexicon@0.13.5
|
||||
unicode-ident@1.0.24
|
||||
wasip2@1.0.4+wasi-0.2.12
|
||||
wit-bindgen@0.57.1
|
||||
zerocopy-derive@0.8.53
|
||||
zerocopy@0.8.53
|
||||
"
|
||||
|
||||
inherit cargo distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A library for property based testing"
|
||||
HOMEPAGE="
|
||||
https://github.com/HypothesisWorks/hypothesis/
|
||||
https://pypi.org/project/hypothesis/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/HypothesisWorks/hypothesis/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
S="${WORKDIR}/${P}/hypothesis"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
# Dependent crate licenses
|
||||
LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="cli"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
|
||||
cli? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/black[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
' "${CLI_COMPAT[@]}")
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/attrs-22.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-8[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
PDEPEND="
|
||||
dev-python/hypothesis-gentoo[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_PLUGIN_LOAD_VIA_ENV=1
|
||||
EPYTEST_PLUGINS=( "${PN}" pytest-xdist )
|
||||
EPYTEST_RERUNS=5
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
QA_PREBUILT="usr/lib/python.*/site-packages/hypothesis/_native.*"
|
||||
|
||||
python_test() {
|
||||
# NB: paths need to be relative to pytest.ini, i.e. start with hypothesis/
|
||||
local EPYTEST_DESELECT=(
|
||||
# broken somehow (xdist?)
|
||||
'hypothesis/tests/pytest/test_constant_collection_timing.py::test_constant_collection_timing[True]'
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
# require syrupy
|
||||
tests/cover/test_custom_reprs.py
|
||||
)
|
||||
|
||||
case ${EPYTHON} in
|
||||
python3.15*)
|
||||
EPYTEST_DESELECT+=(
|
||||
'hypothesis/tests/cover/test_lookup.py::test_resolves_forwardrefs_to_builtin_types[sentinel]'
|
||||
'hypothesis/tests/cover/test_lookup.py::test_resolves_builtin_types[sentinel]'
|
||||
'hypothesis/tests/cover/test_lambda_formatting.py::test_modifying_lambda_source_code_returns_unknown[False]'
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
local -x HYPOTHESIS_NO_PLUGINS=1
|
||||
epytest tests/{cover,pytest,quality}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local HAD_CLI=
|
||||
|
||||
distutils-r1_src_install
|
||||
|
||||
if [[ ! ${HAD_CLI} ]]; then
|
||||
rm -r "${ED}/usr/bin" || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
if use cli && has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
|
||||
HAD_CLI=1
|
||||
else
|
||||
rm -r "${D}$(python_get_scriptdir)" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "datetime support" dev-python/pytz
|
||||
optfeature "dateutil support" dev-python/python-dateutil
|
||||
optfeature "numpy support" dev-python/numpy
|
||||
optfeature "django support" dev-python/django dev-python/pytz
|
||||
optfeature "pandas support" dev-python/pandas
|
||||
optfeature "pytest support" dev-python/pytest
|
||||
}
|
||||
Reference in New Issue
Block a user