diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-13 04:16:02 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-13 04:16:02 +0200 |
commit | 82b819566b616ef4d44b847aaec068e71d1ff25f (patch) | |
tree | 857be55247c5b7024bc43944da4df8d517979908 /dev-python/hypothesis | |
parent | dev-lang/python: Add freethreading variant as a slot (diff) | |
download | gentoo-82b819566b616ef4d44b847aaec068e71d1ff25f.tar.gz gentoo-82b819566b616ef4d44b847aaec068e71d1ff25f.tar.bz2 gentoo-82b819566b616ef4d44b847aaec068e71d1ff25f.zip |
dev-python/hypothesis: Bump to 6.115.0
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.115.0.ebuild | 103 |
2 files changed, 104 insertions, 0 deletions
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index cc2981428fa1..4181b2fa3f82 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -5,3 +5,4 @@ DIST hypothesis-6.112.4.gh.tar.gz 9477498 BLAKE2B ef27f97b419e0bb454ef63c03ecf87 DIST hypothesis-6.113.0.gh.tar.gz 9479824 BLAKE2B e5a87d042d409757451db19bf8b7433e78140cbc6bc9ab6dab4a02cdf2b311734fa37c03aa3b3d51a652b823a3fa554205d4f0188c2e5f2e439609132b4e17d9 SHA512 c8e4711b3496811fd67a20545aa4abfa5b38289befbffa3eab7d9daf155b899124e62a2771b772b009a373308a32967e8804c99a70507ee7996ab3adf92d41e0 DIST hypothesis-6.114.0.gh.tar.gz 9477661 BLAKE2B 26cc5cb5a4082b689f024963745f44cb0fbec169b6596145dafcabd7750887d3ecda15e22ef05ebebb0ea756629a51d86f7586f7eb0e2bcedd11380a86881c3f SHA512 e779047546b4f55a7085ee7b3bd05ea292d97cdfb5fe1b85a083a4d29120d3b8fdc50cb8651eee4ed391f6b1634c928b7e38f7956e595b856e9b53115d8a85af DIST hypothesis-6.114.1.gh.tar.gz 9477292 BLAKE2B 3dadb706f7d283febdc30c9e897fa5b648382edd9bba0ed0824abc2f2c1f6562f0ac77003df496d1def1e56092412c14674b5e768f9583607463f92b78770ad5 SHA512 14526a836c71cdec68a3fbd54391d4f6fe6911305fea9b349c77c59a3f352b7105531a44df05e26cd372d457ed07f7c8199967f444ede14b7d66151afe815727 +DIST hypothesis-6.115.0.gh.tar.gz 9478048 BLAKE2B 8c5ecea0b3515c06f692395e18f27dbc7c273d5b68aa15bacbd8a6965954647e7e8606ec5cd15aa7f42a7d651b21cef93b80bacb42844129d1ce8e57c55ff76f SHA512 1bb73466d35ba8254f0413e883994e734e514af2cfd73ce8ab352b451837a4f297125778939d99404b675a78e603272f76f695326ae52d904c75bea5aa910321 diff --git a/dev-python/hypothesis/hypothesis-6.115.0.ebuild b/dev-python/hypothesis/hypothesis-6.115.0.ebuild new file mode 100644 index 000000000000..f3d89f9d71ea --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.115.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2024 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-xdist[${PYTHON_USEDEP}] + !!<dev-python/requests-toolbelt-0.10.1 + ) +" + +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= 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 +} |