Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cbor2/
Date: Tue, 18 May 2021 08:51:14
Message-Id: 1621327704.8ac13df033f1edfea9896b7aef86d7485e1dd811.mgorny@gentoo
1 commit: 8ac13df033f1edfea9896b7aef86d7485e1dd811
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 18 07:40:36 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 08:48:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ac13df0
7
8 dev-python/cbor2: Bump to 5.3.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cbor2/Manifest | 1 +
13 dev-python/cbor2/cbor2-5.3.0.ebuild | 40 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/cbor2/Manifest b/dev-python/cbor2/Manifest
17 index f37b56c16bd..6685277d1ba 100644
18 --- a/dev-python/cbor2/Manifest
19 +++ b/dev-python/cbor2/Manifest
20 @@ -1 +1,2 @@
21 DIST cbor2-5.2.0.tar.gz 81467 BLAKE2B ac35cf682f15eba2c2bff81f562fe2f22906ab8da39c04cbf65f403eeacb5e640e200b15a8cca0d7eede1d0106cd8674640b3093d166a4414a2d42452a374322 SHA512 101aed37c3921ace2f4a5fbb9964ddd2ec2ffcd23fb1a9f838b2f8925f17ffaf5eb39a40b5426e176f0c97a2ba1d3a045e96ceb53312b283101900eddacc6af4
22 +DIST cbor2-5.3.0.tar.gz 81162 BLAKE2B 41bb0f74998260e2612dbd1990970554b906eaca40e52c21fd90d026ce0aad706830b98f10a226bdc23b819d3f1c52f93f25892a1de04f2a673b4d150a5c47fa SHA512 05eacace46c4b2f7025f12613ae6a755aa7fab14f15d0131d4d856ec5c37bea547d3c4a8afdde28c8653139be741f47351de5460df7dd3ec662325c8d1e2f3fd
23
24 diff --git a/dev-python/cbor2/cbor2-5.3.0.ebuild b/dev-python/cbor2/cbor2-5.3.0.ebuild
25 new file mode 100644
26 index 00000000000..36bd7a9475e
27 --- /dev/null
28 +++ b/dev-python/cbor2/cbor2-5.3.0.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7..10} )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Pure Python CBOR (de)serializer with extensive tag support"
39 +HOMEPAGE="https://github.com/agronholm/cbor2 https://pypi.org/project/cbor2/"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
45 +
46 +distutils_enable_tests pytest
47 +
48 +python_prepare_all() {
49 + # remove pytest-cov dep
50 + sed -e "s/pytest-cov//" \
51 + -e "s/--cov //" \
52 + -i setup.cfg || die
53 +
54 + distutils-r1_python_prepare_all
55 +}
56 +
57 +python_test() {
58 + local deselect=()
59 +
60 + if use arm || use x86; then
61 + # https://github.com/agronholm/cbor2/issues/99
62 + deselect+=(
63 + tests/test_decoder.py::test_huge_truncated_bytes
64 + tests/test_decoder.py::test_huge_truncated_string
65 + )
66 + fi
67 +
68 + epytest ${deselect[@]/#/--deselect }
69 +}