summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-05-21 05:51:56 +0200
committerMichał Górny <mgorny@gentoo.org>2024-05-21 06:08:01 +0200
commita2609be114f12a427cd7d533e4740afd2d75c104 (patch)
tree161b7ddf78ca4aa4181698b33d4a3a3588f8740a /dev-python/annotated-types
parentdev-python/requests: Bump to 2.32.1 (diff)
downloadgentoo-a2609be114f12a427cd7d533e4740afd2d75c104.tar.gz
gentoo-a2609be114f12a427cd7d533e4740afd2d75c104.tar.bz2
gentoo-a2609be114f12a427cd7d533e4740afd2d75c104.zip
dev-python/annotated-types: Bump to 0.7.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/annotated-types')
-rw-r--r--dev-python/annotated-types/Manifest1
-rw-r--r--dev-python/annotated-types/annotated-types-0.7.0.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/annotated-types/Manifest b/dev-python/annotated-types/Manifest
index bbf88893554b..f7a4f537b7ea 100644
--- a/dev-python/annotated-types/Manifest
+++ b/dev-python/annotated-types/Manifest
@@ -1 +1,2 @@
DIST annotated_types-0.6.0.tar.gz 14670 BLAKE2B 9390abe727f9b7a777e8266e192e032e2f36703c76a60e7fa34dd5517db8129f75e617b67ff88e9f299d10dd3f076d6793bf86e04b6230f2c4df886a8e0719cb SHA512 6b7f6fa23f47758d955822564227173951d6ddd854397b0c996bb6adeadd9caebfab6d193595be17003c1ef0e81a6bd8e20ec8221a70ffa35f9a4414300e788d
+DIST annotated_types-0.7.0.tar.gz 16081 BLAKE2B 45f536bafb0a9dead41a7fcafe50304508df5024921c2b3637ba51ff144d46fd8cba4d503a65fcec1a973cf2cd791074a83d72fbd2f17269bd9a2d2b9f8c114e SHA512 8a6dd7274270397f7779fc4ca242997ad2ea739b530be5abcc30a72d1e4042fc08753ab432c3d9c7a53c7474b3794504062f68235885cfb6c688cce0700d8758
diff --git a/dev-python/annotated-types/annotated-types-0.7.0.ebuild b/dev-python/annotated-types/annotated-types-0.7.0.ebuild
new file mode 100644
index 000000000000..878232d7d94e
--- /dev/null
+++ b/dev-python/annotated-types/annotated-types-0.7.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Reusable constraint types to use with typing.Annotated"
+HOMEPAGE="
+ https://github.com/annotated-types/annotated-types/
+ https://pypi.org/project/annotated-types/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+
+ case ${EPYTHON} in
+ pypy3)
+ EPYTEST_DESELECT+=(
+ # https://github.com/annotated-types/annotated-types/issues/71
+ 'tests/test_main.py::test_predicate_repr[pred2-Predicate(math.isfinite)]'
+ )
+ ;;
+ esac
+
+ epytest
+}