diff options
author | 2025-01-25 06:32:06 +0100 | |
---|---|---|
committer | 2025-01-25 07:24:21 +0100 | |
commit | ba58f4137dc8c26587bc7c15cad26f6fb4583e0d (patch) | |
tree | 7d6a9e83204de39b1a42ba4fecaad6e8e8ba5229 /dev-python/hypothesis | |
parent | sys-apps/toybox: add 0.8.12 (diff) | |
download | gentoo-ba58f4137dc8c26587bc7c15cad26f6fb4583e0d.tar.gz gentoo-ba58f4137dc8c26587bc7c15cad26f6fb4583e0d.tar.bz2 gentoo-ba58f4137dc8c26587bc7c15cad26f6fb4583e0d.zip |
dev-python/hypothesis: Bump to 6.124.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/hypothesis')
-rw-r--r-- | dev-python/hypothesis/Manifest | 1 | ||||
-rw-r--r-- | dev-python/hypothesis/hypothesis-6.124.3.ebuild | 104 |
2 files changed, 105 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 0164e278d13c..012f8f432c12 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -3,3 +3,4 @@ DIST hypothesis-6.123.2.gh.tar.gz 9506171 BLAKE2B a7033cf2b5d56753ce19c5b369889b DIST hypothesis-6.123.7.gh.tar.gz 9509012 BLAKE2B 71def0634aee97b4d64bacf9b4a09e091fb209c9de2d2ecbcbb86ad0f7bc2e330e7d7b93e1c810b864fd80ecd82eb6bf51aaf6a6de99c74c338609062ce1e90e SHA512 00b26f4e040a948aaf64554ee395fad4c9b0bb116c87d97bd3ef20be1d25068a79ed1c856c497c1d3d5122481386625c3323be77c0ec851fab823a706350b437 DIST hypothesis-6.124.1.gh.tar.gz 9512599 BLAKE2B 4220d41a7c2573fc4fe2ae550370c563feb3a558f74808979ea66afc5da3e749960842ab8a213d4826c2c2c4c8e9ddfbb263b99820b7fb142f0586036a8683d4 SHA512 64a1c64ad68295ddaeb11cd28c7650fc79fbf668129daefc6fa8c492d3de919468015127721bf1525512f1929dd0dd70906a864ab402571517ddd61ddb097ae7 DIST hypothesis-6.124.2.gh.tar.gz 9510654 BLAKE2B 10f8564cfb51433c397205a8c7f550e4fbf1429ea0b7e2d52d03907045374d63da4961f6ce6ef3883d95d6d2190db3aec085f7ed2ff4227592aa02121c0530f8 SHA512 8cccf5dfaa4a020ad491ee43006b3ec823ac5e230e9222a271e7fae0fa08b2adae7feca9526f980e40b7a470fcbfb83c79937d9ab7e52e02f94f5e9025424c68 +DIST hypothesis-6.124.3.gh.tar.gz 9510786 BLAKE2B d4104ce7cbe009ce1e0d2d6fa04db8d5dda2db08f8dcdaea90d4a111cbcf71db53214a5b06a69ca40715a0999970e45293aad754dcfbd06c1a6e4e04700aee83 SHA512 898567b6e32b619892292c07e95ca57f671e9fcc6925dd560285147491fba72df5fe5c41a3642d3910961ef569cbce8790ea1100359e674f08f5b24522073184 diff --git a/dev-python/hypothesis/hypothesis-6.124.3.ebuild b/dev-python/hypothesis/hypothesis-6.124.3.ebuild new file mode 100644 index 000000000000..4486f30faf3d --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.124.3.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( pypy3 python3_{10..13} ) +PYTHON_COMPAT=( "${CLI_COMPAT[@]}" ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 optfeature + +TAG=hypothesis-python-${PV} +MY_P=hypothesis-${TAG} +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/${TAG}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/hypothesis-python" + +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/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + ' 3.9 3.10) + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' "${CLI_COMPAT[@]}") + ) +" +BDEPEND=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + >=dev-python/pytest-8[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + esac + + epytest -o filterwarnings= -p rerunfailures --reruns=5 \ + tests/cover tests/pytest tests/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 +} |