summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-04-03 08:46:54 +0200
committerMichał Górny <mgorny@gentoo.org>2024-04-03 09:25:42 +0200
commit6ebd6ca1b951e928e93b8d08fdd273125c48b6d9 (patch)
tree6b68c09e162c8f51e41291c9e3c991016a5ff99b /dev-python/beartype
parentdev-python/oslo-log: Bump to 5.5.1 (diff)
downloadgentoo-6ebd6ca1b951e928e93b8d08fdd273125c48b6d9.tar.gz
gentoo-6ebd6ca1b951e928e93b8d08fdd273125c48b6d9.tar.bz2
gentoo-6ebd6ca1b951e928e93b8d08fdd273125c48b6d9.zip
dev-python/beartype: Bump to 0.18.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/beartype')
-rw-r--r--dev-python/beartype/Manifest1
-rw-r--r--dev-python/beartype/beartype-0.18.0.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/beartype/Manifest b/dev-python/beartype/Manifest
index 329d05577ff0..914401acc2e0 100644
--- a/dev-python/beartype/Manifest
+++ b/dev-python/beartype/Manifest
@@ -1 +1,2 @@
DIST beartype-0.17.2.tar.gz 1133779 BLAKE2B 61cb21511cbf9274e6e3eb1441bd32eb068b722c4fec1accadeed7aeaf8d26748a4b0adc79e8b9c45bfa8048ccffeef8e2e3506a2b651612b8fcdc6bb6c2953a SHA512 90953abeb80b512a0e127e24f7896b350a243d8593a3d9f0b8508f0e5e8595a8b85a8b28326c2c15dd12779adeb74d1b8637cb646b1e27fea8c95b8d4811d804
+DIST beartype-0.18.0.tar.gz 1173664 BLAKE2B 8c5a1131ccc06ef43e354ef9300ed4f170a8d7b9df4b435345c7e5ec4b7637c0b605c525f3c00033d32425dc9b1e2ae853f5662418053f77939671d113c25f0e SHA512 304dda79941bb458445c63e05d447896c2f8b49db95787fe059b6b25f4aa863fc1cbee1e1b13af22dfe22c2359c83da61632ced03ee4391832ffbf88b5f541a1
diff --git a/dev-python/beartype/beartype-0.18.0.ebuild b/dev-python/beartype/beartype-0.18.0.ebuild
new file mode 100644
index 000000000000..8337b30a5732
--- /dev/null
+++ b/dev-python/beartype/beartype-0.18.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+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/mypy[${PYTHON_USEDEP}]
+ dev-python/numpy[${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
+}