diff --git a/dev-python/beartype/Manifest b/dev-python/beartype/Manifest index bd3548b9db1fb..5686f89f47bf4 100644 --- a/dev-python/beartype/Manifest +++ b/dev-python/beartype/Manifest @@ -1,2 +1,3 @@ DIST beartype-0.20.2.tar.gz 1410390 BLAKE2B fa1ca4000b7a32fe7fae4d3712060ba29f1bb690fe9c4c28dda91962f1a76aacdc906305de104e77c7bd34c9063e927c190c9f38c6f6aa8a4d790dd39401392c SHA512 72bb5f1a71e59f7f9debe6d10cb96de01c2f5a9f10f59d2d7002ef01320e17a9bf47d070c8e17d9cf82140b3917082f08a5eb442b825fd43b2cacf9c0fc65455 +DIST beartype-0.21.0.tar.gz 1437066 BLAKE2B 10c08fc07a87257fc21a85c2ab8c1402044b383051e5ecc919812710f74d277cbe70653a02aeeafc1007da5716bcb78c2024b5debb66b84ab5cdf4c3901fabb4 SHA512 fd3026c15bc1e9fc3985f7c691ad9c4c55532e5148bd3f554f40b7b6a33189af07ce9174c197907b4cd57f41778a436644e6ad610eec942d94c01cabb295c19b DIST beartype-0.21.0rc0.tar.gz 1437966 BLAKE2B 569eac36552c82e24218385478a48a471757e38f157be926b0a524d2c4366a84d1fd615d41b1d29b8b2dcff534e1a5a48a7b20ed894eecc62b2e31413aae9692 SHA512 e3a3ec779eee910741c2e1ac7514d516a05bf800255141a0cbac70c81a87b0bc25028f41e9b0a65396717631e6707164e0ab1cb39cb7d997f1faa3e85743bc73 diff --git a/dev-python/beartype/beartype-0.21.0.ebuild b/dev-python/beartype/beartype-0.21.0.ebuild new file mode 100644 index 0000000000000..f5f4db2b7fcb2 --- /dev/null +++ b/dev-python/beartype/beartype-0.21.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Unbearably fast runtime type checking in pure Python" +HOMEPAGE=" + https://pypi.org/project/beartype/ + https://github.com/beartype/beartype/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +BDEPEND=" + test? ( + dev-python/click[${PYTHON_USEDEP}] + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/xarray[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # fragile performance test + beartype_test/a00_unit/a70_decor/test_decorwrapper.py::test_wrapper_fail_obj_large + # test for building docs, apparently broken too + beartype_test/a90_func/z90_lib/a00_sphinx + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +}