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/hpack/
Date: Tue, 18 May 2021 11:40:14
Message-Id: 1621337997.fec9eef953e725bef4f7304266ae0ef46c1a0ff8.mgorny@gentoo
1 commit: fec9eef953e725bef4f7304266ae0ef46c1a0ff8
2 Author: Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
3 AuthorDate: Sun May 16 09:11:17 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 11:39:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fec9eef9
7
8 dev-python/hpack: Bump 3.0.0 to python 3.10
9
10 Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/hpack/hpack-3.0.0.ebuild | 30 ++++++++++++++----------------
14 1 file changed, 14 insertions(+), 16 deletions(-)
15
16 diff --git a/dev-python/hpack/hpack-3.0.0.ebuild b/dev-python/hpack/hpack-3.0.0.ebuild
17 index b52fcbda705..99cf18dfe91 100644
18 --- a/dev-python/hpack/hpack-3.0.0.ebuild
19 +++ b/dev-python/hpack/hpack-3.0.0.ebuild
20 @@ -1,42 +1,40 @@
21 # Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=6
25 -PYTHON_COMPAT=( python3_{7,8,9})
26 +EAPI=7
27 +PYTHON_COMPAT=( python3_{7..10} )
28
29 inherit distutils-r1
30
31 DESCRIPTION="Pure-Python HPACK header compression"
32 -HOMEPAGE="https://python-hyper.org/hpack/en/latest/ https://pypi.org/project/hpack/"
33 +HOMEPAGE="
34 + https://python-hyper.org/hpack/en/latest/
35 + https://pypi.org/project/hpack/"
36 SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37
38 LICENSE="MIT"
39 SLOT="0"
40 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
41 -IUSE="test"
42 -RESTRICT="!test? ( test )"
43
44 -RDEPEND=""
45 # dev-python/pytest-relaxed causes tests to fail
46 -DEPEND="${RDEPEND}
47 +BDEPEND="
48 test? (
49 - >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}]
50 >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}]
51 !!dev-python/pytest-relaxed[${PYTHON_USEDEP}]
52 )
53 "
54
55 +distutils_enable_tests pytest
56 +
57 PATCHES=(
58 "${FILESDIR}"/hpack-3.0.0-hypothesis-healthcheck.patch
59 )
60
61 -python_prepare_all() {
62 - # Remove a test that is not part of the mainstream tests
63 - # Also, it's data directory is not included in the release
64 - rm test/test_hpack_integration.py || die
65 - distutils-r1_python_prepare_all
66 -}
67 -
68 python_test() {
69 - pytest -vv hpack test || die "Tests fail with ${EPYTHON}"
70 + local deselect=(
71 + # relies on outdated exception strings
72 + test/test_table.py::TestHeaderTable::test_get_by_index_out_of_range
73 + )
74 +
75 + epytest hpack test ${deselect[@]/#/--deselect }
76 }