From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9F6D01581F3 for ; Sat, 30 Nov 2024 06:52:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A985AE0805; Sat, 30 Nov 2024 06:52:15 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A6EBDE07F6 for ; Sat, 30 Nov 2024 06:52:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BEAA8342FAE for ; Sat, 30 Nov 2024 06:52:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E96EDD81 for ; Sat, 30 Nov 2024 06:52:10 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1732946923.d7e4cc49e745c4a55a6576bd86f9151bc014d977.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/hypothesis/Manifest dev-python/hypothesis/hypothesis-6.122.0.ebuild X-VCS-Directories: dev-python/hypothesis/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d7e4cc49e745c4a55a6576bd86f9151bc014d977 X-VCS-Branch: master Date: Sat, 30 Nov 2024 06:52:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8cee07d1-95f7-4623-9a14-5338c2ff1fb6 X-Archives-Hash: bfc59432907bb2d0005cb8a32a012db3 commit: d7e4cc49e745c4a55a6576bd86f9151bc014d977 Author: Michał Górny gentoo org> AuthorDate: Sat Nov 30 06:08:43 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Nov 30 06:08:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7e4cc49 dev-python/hypothesis: Bump to 6.122.0 Signed-off-by: Michał Górny gentoo.org> dev-python/hypothesis/Manifest | 1 + dev-python/hypothesis/hypothesis-6.122.0.ebuild | 104 ++++++++++++++++++++++++ 2 files changed, 105 insertions(+) diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 025a3b976e25..3e403b96fb6c 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -3,3 +3,4 @@ DIST hypothesis-6.118.9.gh.tar.gz 9487943 BLAKE2B 3c8d17d2763877107c7342d9a9825c DIST hypothesis-6.119.4.gh.tar.gz 9490666 BLAKE2B 99a45054b90026317bca165915b2ffe3b3abfa03a98efc6181bd64f6ca851f9a90e4ba1b41ba4f3b2181de02818a91367f1c29523b78bca303da4eea31db1284 SHA512 003b01fd3e1e4ae2ea68f72b80063928dd56a069fdf8b6ffc73f6ffb3db4b048523564bd616d604d04a3ea55b19c01940ad7ba60bf1e88c54e29359ca0e397db DIST hypothesis-6.120.0.gh.tar.gz 9491124 BLAKE2B 56e2441f7f1daddfac37d4288513d6140c9af01764bd32e5a14b1ae91982c28038c077038cbe278a48db77029af188857561122c6b347b6ea1992f46ab77f2d0 SHA512 9bf39b114cc9fa4eda77651bc02433c49f1d6526827a65086ca911839e4d8a7bf245b4e47b07f71ae533904c3ba90498bc632a6e18d3b8ef8e632a5d1a31b0ec DIST hypothesis-6.121.1.gh.tar.gz 9492038 BLAKE2B 428d19c55e9b6633a8c75ad7f9e143c5701c1f1624e570df1ac060c9ee2386f1fd73467779febebf5b97310f7d2f71cd14a873080060e2e8c905f87a16beb4d8 SHA512 bd8d5bc78ca0a4f68bca69c07c0e6559d707746416793434e2c5622fc76cdb3a8b418f51df6fd1199b3bc8a2a879dfba3c5bc284dfd2b0387cbc3a0ccb44cdad +DIST hypothesis-6.122.0.gh.tar.gz 9492529 BLAKE2B 1ee9d13b3d12381d84252c5e810b975705e534852a68eef4fa77462719ca33ecd161897cad84786dd2cc4d6bdd110e79fa16ef3b4690c97f13a236c3c8ad8787 SHA512 297766c88b52b0b45113715edbffec0c4d9ecf2126bc367b53f7de50ddb66a255660f9ed27ae7a680012f28f153f0070ece5fca657f521eadd8ebee6b83acdc3 diff --git a/dev-python/hypothesis/hypothesis-6.122.0.ebuild b/dev-python/hypothesis/hypothesis-6.122.0.ebuild new file mode 100644 index 000000000000..dde5562c67da --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.122.0.ebuild @@ -0,0 +1,104 @@ +# 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-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 +}