mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/hypothesis: Bump to 6.155.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -8,3 +8,4 @@ DIST hypothesis-6.152.8.gh.tar.gz 9606671 BLAKE2B 446a28680368e1b8a764c5346bff2d
|
||||
DIST hypothesis-6.152.9.gh.tar.gz 9612140 BLAKE2B b4d2009d46eb28751446963edc51a653d05c5a39a28e76aa120a2ca00fd7d6c0f07c42f1026a16e0b4dc75742a66a191a8f5aa67249ecc3a397e8123f8153058 SHA512 b1f2301b7ced669dd4d53ee37173a48e8a937241138900c9dd17e70c1e4c8357215679c9ebb6e8a96c0d2fbe5e8e43aa45a21da569c624111b17417d0be1d426
|
||||
DIST hypothesis-6.153.2.gh.tar.gz 9618984 BLAKE2B b9107632220d14cb2022f5867bc41f42b76a15dc01cd042b6c9e2d057049a06138f96eb39434f433b8084dd3cc0f7d4eeec39f737102fde60761bb76e354e94b SHA512 42af13bc6934fa758931713c138f12a8c4b83b26a9cdf848e67731ade3f89e09c0c5f71a1a91f5d2ad3c10233c1976856b1233c1a231872ed662ce2d3e2f12b8
|
||||
DIST hypothesis-6.153.6.gh.tar.gz 9621507 BLAKE2B 3ec84c19c22a10417630dcb4987c2e9256ea7bc81f459c3734aa6af832222a829e9db1cffe82b531017f8dc42976fcc59726460cae86c8004528a4d4be2b81e1 SHA512 f2eb02367de4488be88184c543ef59deaf4fa4e402a429381648be0b207bd9369d7c476cedb9b1cd3b706615e5d3ecf9d2aa71ae341690c1c341cb047f0ed02a
|
||||
DIST hypothesis-6.155.0.gh.tar.gz 9624529 BLAKE2B 4eb9efd21e4eef5900cc54182303f63d68d3ae2df83f9fbabe5cf660b77ed1cd3c9e6a5a4659e2a1599a5c045b4fe2cae49f3587487db922f7bde3472edfb173 SHA512 d514b1869c8f6ff1d937c1ea8ca86627674316ab3268feac57a6c3fd49df9d75454beb9f4bab9d6ed9221bd257fddd5c286f39dcdc1bdd44fb139160647fe67e
|
||||
|
||||
105
dev-python/hypothesis/hypothesis-6.155.0.ebuild
Normal file
105
dev-python/hypothesis/hypothesis-6.155.0.ebuild
Normal file
@@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
CLI_COMPAT=( python3_{11..13} )
|
||||
PYTHON_COMPAT=( "${CLI_COMPAT[@]}" pypy3_11 python3_{14..15} python3_{13..15}t )
|
||||
PYTHON_REQ_USE="threads(+),sqlite"
|
||||
|
||||
inherit 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
|
||||
"
|
||||
S="${WORKDIR}/${P}/hypothesis"
|
||||
|
||||
LICENSE="MPL-2.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
|
||||
|
||||
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]'
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
local -x HYPOTHESIS_NO_PLUGINS=1
|
||||
epytest -o filterwarnings= 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