Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cerberus/, dev-python/cerberus/files/
Date: Mon, 17 Jan 2022 21:08:14
Message-Id: 1642453680.61db20a923d2f8874d108cdf030e697eb74cd188.marecki@gentoo
1 commit: 61db20a923d2f8874d108cdf030e697eb74cd188
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 17 20:52:51 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 17 21:08:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61db20a9
7
8 dev-python/cerberus: add 1.3.4
9
10 No DISTUTILS_USE_PEP517 yet because it causes import errors in the test
11 suite.
12
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 dev-python/cerberus/Manifest | 1 +
16 dev-python/cerberus/cerberus-1.3.4.ebuild | 29 ++++++++++++++++++++++
17 .../files/cerberus-1.3.4-raw_docstrings.patch | 23 +++++++++++++++++
18 3 files changed, 53 insertions(+)
19
20 diff --git a/dev-python/cerberus/Manifest b/dev-python/cerberus/Manifest
21 index 59e83aabb5d5..47e18720ce95 100644
22 --- a/dev-python/cerberus/Manifest
23 +++ b/dev-python/cerberus/Manifest
24 @@ -1 +1,2 @@
25 DIST cerberus-1.3.2.tar.gz 149344 BLAKE2B ce65f3c4c612f87562c28f913cac95c1c7af9b2dfa72955bce3f0e0459e4ff9024a126ceea4587e2c72cf606be2a249046a090a2e2d5e908bfe4b700ba5e9b92 SHA512 e9cfef5a936783eb0576afd3d23397dab38d8c88b6b43f98de0ad7e20739e5ff983eaf4ac769206adb7fe9692c651583f6a5f2bab263b81b8de96f45707c84fb
26 +DIST cerberus-1.3.4.tar.gz 926258 BLAKE2B 6fabfcf32e26ee7f4881b64ce9c3098a27949d95fd0998e09b7adcc3b834033f904a07b6e9b2cadea218b952142f6c2bc6051d8c208a14d6e8172a0c3823c38b SHA512 c816b426ed1b32367d1e8f1c26d6ddd4b49c6578540e688baf693e3094a05800f645cfe879be6378c1e9be9899cad7bc2ad1ed9844d6762d2ef6e0cc54a7476a
27
28 diff --git a/dev-python/cerberus/cerberus-1.3.4.ebuild b/dev-python/cerberus/cerberus-1.3.4.ebuild
29 new file mode 100644
30 index 000000000000..74d544b5ff1f
31 --- /dev/null
32 +++ b/dev-python/cerberus/cerberus-1.3.4.ebuild
33 @@ -0,0 +1,29 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +DISTUTILS_USE_SETUPTOOLS=rdepend
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="A lightweight and extensible data-validation library for Python"
45 +HOMEPAGE="https://docs.python-cerberus.org/"
46 +SRC_URI="https://github.com/pyeve/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="ISC"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +
52 +PATCHES=(
53 + "${FILESDIR}"/${PN}-1.3.2_no-pytest-runner.patch
54 + "${FILESDIR}"/${PN}-1.3.4-raw_docstrings.patch
55 +)
56 +
57 +# Require currently unpackaged pytest-benchmark, more useful to developers than to end users.
58 +EPYTEST_DESELECT=(
59 + cerberus/benchmarks/
60 +)
61 +
62 +distutils_enable_tests pytest
63
64 diff --git a/dev-python/cerberus/files/cerberus-1.3.4-raw_docstrings.patch b/dev-python/cerberus/files/cerberus-1.3.4-raw_docstrings.patch
65 new file mode 100644
66 index 000000000000..70ba15b0445f
67 --- /dev/null
68 +++ b/dev-python/cerberus/files/cerberus-1.3.4-raw_docstrings.patch
69 @@ -0,0 +1,23 @@
70 +Addresses https://github.com/pyeve/cerberus/issues/568.
71 +Backported upstream commit 5c267b554a39b5a8650659d3eea0cf383e47a166.
72 +
73 +--- a/cerberus/errors.py
74 ++++ b/cerberus/errors.py
75 +@@ -153,7 +153,7 @@
76 +
77 + @property
78 + def definitions_errors(self):
79 +- """
80 ++ r"""
81 + Dictionary with errors of an \*of-rule mapped to the index of the definition it
82 + occurred in. Returns :obj:`None` if not applicable.
83 + """
84 +@@ -181,7 +181,7 @@
85 +
86 + @property
87 + def is_logic_error(self):
88 +- """
89 ++ r"""
90 + ``True`` for validation errors against different schemas with \*of-rules.
91 + """
92 + return bool(self.code & LOGICAL.code - ERROR_GROUP.code)