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/httplib2/
Date: Tue, 09 Feb 2021 09:27:55
Message-Id: 1612862415.01fa5e8e750b5d0baa16ff7f7bd27fcffc247713.mgorny@gentoo
1 commit: 01fa5e8e750b5d0baa16ff7f7bd27fcffc247713
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 9 09:13:19 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 09:20:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01fa5e8e
7
8 dev-python/httplib2: Bump to 0.19.0
9
10 Bug: https://bugs.gentoo.org/769653
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/httplib2/Manifest | 1 +
14 dev-python/httplib2/httplib2-0.19.0.ebuild | 56 ++++++++++++++++++++++++++++++
15 2 files changed, 57 insertions(+)
16
17 diff --git a/dev-python/httplib2/Manifest b/dev-python/httplib2/Manifest
18 index c4f54fc1445..64c843876d8 100644
19 --- a/dev-python/httplib2/Manifest
20 +++ b/dev-python/httplib2/Manifest
21 @@ -1 +1,2 @@
22 DIST httplib2-0.18.1.tar.gz 262930 BLAKE2B d8130dfbbee71dae1319a8a65fb2ae96d667bba08cfc586c0a9239d6bf6cb475fbd4548d6b5276b8001a02417eebff4a7565024d43c630b8ed51e467cdd3de71 SHA512 a1bb527279bdc92fb75bffebc317ff549bb6efb678580cbe40d187921b7ace66b1a5bc1d98bdf065ec5667fe69632da086b0eb201ff911497324fd817bfe1b7a
23 +DIST httplib2-0.19.0.tar.gz 263522 BLAKE2B b35c8dcf86de17a5d8eac86a9a6b4110fb247925662e24a7645a67dfd0b2e640dc29875b41673c5a91a083f17e9619fd40dd08cf2c9ee7f48c8069bc14a50966 SHA512 9193a0e8e9a58a3f0e9b27fdf827932482a47b88af297af6e5f004164ca0b72feeff513b8191bf7c48d6714070a1390ae54eb8a2c6840f54f2580889c7837c7f
24
25 diff --git a/dev-python/httplib2/httplib2-0.19.0.ebuild b/dev-python/httplib2/httplib2-0.19.0.ebuild
26 new file mode 100644
27 index 00000000000..dfc3b496767
28 --- /dev/null
29 +++ b/dev-python/httplib2/httplib2-0.19.0.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A comprehensive HTTP client library"
41 +HOMEPAGE="https://pypi.org/project/httplib2/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
47 +
48 +RDEPEND="app-misc/ca-certificates"
49 +BDEPEND="
50 + test? (
51 + dev-python/mock[${PYTHON_USEDEP}]
52 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
53 + )"
54 +
55 +distutils_enable_tests pytest
56 +
57 +PATCHES=( "${FILESDIR}"/${PN}-0.12.1-use-system-cacerts.patch )
58 +
59 +src_prepare() {
60 + sed -i -e '/--cov/d' setup.cfg || die
61 + distutils-r1_src_prepare
62 +}
63 +
64 +python_test() {
65 + local deselect=(
66 + # broken by using system certificates
67 + tests/test_cacerts_from_env.py::test_certs_file_from_builtin
68 + tests/test_cacerts_from_env.py::test_certs_file_from_environment
69 + tests/test_cacerts_from_env.py::test_with_certifi_removed_from_modules
70 +
71 + # broken by new PySocks, probably
72 + tests/test_proxy.py::test_server_not_found_error_is_raised_for_invalid_hostname
73 + tests/test_proxy.py::test_socks5_auth
74 + )
75 +
76 + [[ ${EPYTHON} == pypy3 ]] && deselect+=(
77 + # known pypy3.7 bug
78 + # https://foss.heptapod.net/pypy/pypy/-/issues/3396
79 + tests/test_https.py::test_sni_set_servername_callback
80 + )
81 +
82 + # tests in python* are replaced by tests/
83 + # upstream fails at cleaning up stuff
84 + pytest -vv ${deselect[@]/#/--deselect } tests ||
85 + die "Tests fail with ${EPYTHON}"
86 +}