diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-02-28 04:24:49 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-02-28 05:42:15 +0100 |
| commit | a8e6da7f7761a509a6f4fbb3631627b8938c1686 (patch) | |
| tree | a414aadf835134f304229f6098a470acd8ac3ff0 /dev-python | |
| parent | 3bfd1db1cb222fb79518fa3d85605440787da021 (diff) | |
| download | gentoo-a8e6da7f7761a509a6f4fbb3631627b8938c1686.tar.gz gentoo-a8e6da7f7761a509a6f4fbb3631627b8938c1686.tar.bz2 gentoo-a8e6da7f7761a509a6f4fbb3631627b8938c1686.zip | |
dev-python/hypothesis: Bump to 6.127.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/hypothesis/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/hypothesis/hypothesis-6.127.3.ebuild | 110 |
2 files changed, 111 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 2d95692f0928..1e6fca56aa74 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -2,3 +2,4 @@ DIST hypothesis-6.125.2.gh.tar.gz 9508767 BLAKE2B 2f356f9678c1c8a56dcc66c5f96fee DIST hypothesis-6.126.0.gh.tar.gz 9515798 BLAKE2B 8fbecef130bee50e856b4a3af9726d0bff759c1c8d69de9cff28387f87bc4aba72fc7b4944b9c1748c0b032de1556e197de5005ad193a61cc7d9f790f4975c5b SHA512 ee9e633c2f91c7d1a122515be0853c3aa9604db5ff79419c9ede646444c19d895b5cec8bb0dfed707b2b5a09c0899928643040c821e5b9dc47f46e19a18a0128 DIST hypothesis-6.127.1.gh.tar.gz 9518068 BLAKE2B 6cbc8aab8d2c952a7ab1ff9180f37e4acf6fb515899dbe1053ea474a6e4c1978a6fc928b94ee35ac12ed74581bf1b14869bffccb7e6564b1ab8578d025d8f710 SHA512 d77cfa4938779b0d6eda0c7a757f4b4dc23a199cc59eee89f59af90f1fa466f3b83ea1cd392ba0a88f1258ab08af77cae4d36afeccd0779707f82a8f9d1cca2f DIST hypothesis-6.127.2.gh.tar.gz 9518116 BLAKE2B 7a114549226f2bf85bbc211695575881db5b6d099075cb5ae0f076b1339b040ac942a6783721b717fee6cbf0dd404381f82e13779269547d971664758ca1ae37 SHA512 0cad6b5c00152bb67f81df1f00d6f3ba4d047cc0820e6b8a74031af42ed5baca3cf7cfaa53f988782d4ddb61e0465a1625a177dba4f8c46c66b1804ef389674f +DIST hypothesis-6.127.3.gh.tar.gz 9517446 BLAKE2B 3ac2f05b8e740830b7b2edff470c59620969f7b9eecf67666e40256ae7a1100ab2f93a8acf2855287d1066bb9f5254da8cf2672118d90c0f267c34a238461853 SHA512 17083054e990028ee82135645c1f3321823a1bde8f96c4fcd672812ee8b256d7a4a61a3224e651bc2ef8afd165835711943074de339db1233ee0bc3a5906a6c5 diff --git a/dev-python/hypothesis/hypothesis-6.127.3.ebuild b/dev-python/hypothesis/hypothesis-6.127.3.ebuild new file mode 100644 index 000000000000..5e0df5815a5e --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.127.3.ebuild @@ -0,0 +1,110 @@ +# 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[@]}" pypy3_11 ) +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 + ) + ;; + python3.13) + EPYTEST_DESELECT+=( + # TODO + 'hypothesis-python/tests/cover/test_reflection.py::test_clean_source[case-5]' + ) + ;; + 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 +} |
