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/geventhttpclient/
Date: Tue, 28 Jun 2022 04:03:58
Message-Id: 1656389022.ca84a704bdf3d569e2c7e92cf1bf51881bbc127c.mgorny@gentoo
1 commit: ca84a704bdf3d569e2c7e92cf1bf51881bbc127c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 03:25:44 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 04:03:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca84a704
7
8 dev-python/geventhttpclient: Bump to 1.5.5
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/geventhttpclient/Manifest | 1 +
13 .../geventhttpclient/geventhttpclient-1.5.5.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/geventhttpclient/Manifest b/dev-python/geventhttpclient/Manifest
17 index 471a605c3854..7635b374a973 100644
18 --- a/dev-python/geventhttpclient/Manifest
19 +++ b/dev-python/geventhttpclient/Manifest
20 @@ -1,2 +1,3 @@
21 DIST geventhttpclient-1.5.3.tar.gz 58447 BLAKE2B a1cf529c6d40ee81ebe17cb066f2d837cf3d5ce2511bb735c1a63503b612c98c17c91f08de99d604c9ff6ebfa7e6502c338e7fbbc86de954ae7e559966aa8006 SHA512 9a0ed907f73f7f5ff8675502ef6fc82bff7b543d0a2d22e1eca5aba3592675a87fe09c48981f496b7f63a660e7eab5f68801ae74da8c33ac9d9bf55a0425eed1
22 DIST geventhttpclient-1.5.4.tar.gz 59551 BLAKE2B d1bda5315a92afeb408f33043c8ccf5911d6519dbe50266688f0b123fd92a95f1cb9cea449676117ea051af1400c656fe47d241b6e4e03803dc017806b5e0be4 SHA512 10d9ace4a555a5c39d8b737d96484041f9e704df41b8a3cca3b05b3c9ccb30d0490d154fa47a45edcad762a2e0807ca89425ed484275ee1b3098f0094fd6d166
23 +DIST geventhttpclient-1.5.5.tar.gz 59566 BLAKE2B f43ffe9880eefe77f19adc00bcef612df057f96e256f50ca4081658d7e0d01deca2473da3d2055dbc1cb98fc4f7f0a7442809fdcab635c43042792e2601efdb9 SHA512 89efe008099935ac8715ddf09c13e70c1a3552da50c495522b2a62e1ff51a407808e6b797f8fd3b0863a3a59e5b03e604bda8b1027c0326da75cb1fddb5d0fa3
24
25 diff --git a/dev-python/geventhttpclient/geventhttpclient-1.5.5.ebuild b/dev-python/geventhttpclient/geventhttpclient-1.5.5.ebuild
26 new file mode 100644
27 index 000000000000..d4807ee44f57
28 --- /dev/null
29 +++ b/dev-python/geventhttpclient/geventhttpclient-1.5.5.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="A high performance, concurrent HTTP client library for Python using gevent"
42 +HOMEPAGE="
43 + https://github.com/geventhttpclient/geventhttpclient/
44 + https://pypi.org/project/geventhttpclient/
45 +"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +
52 +RDEPEND="
53 + app-arch/brotli[python,${PYTHON_USEDEP}]
54 + dev-python/certifi[${PYTHON_USEDEP}]
55 + dev-python/gevent[events(+),${PYTHON_USEDEP}]
56 + dev-python/six[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + test? (
60 + dev-python/mock[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +
66 +python_prepare_all() {
67 + # Avoid ModuleNotFoundError for tests we skip later
68 + sed -i '/^import dpkt.ssl/d' src/geventhttpclient/tests/test_ssl.py || die
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_test() {
73 + local EPYTEST_DESELECT=(
74 + # These SNI tests require dpkt which is not in the tree
75 + src/geventhttpclient/tests/test_ssl.py::test_implicit_sni_from_host_in_ssl
76 + src/geventhttpclient/tests/test_ssl.py::test_implicit_sni_from_header_in_ssl
77 + src/geventhttpclient/tests/test_ssl.py::test_explicit_sni_in_ssl
78 + )
79 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
80 + # Skip tests which require internet access
81 + epytest -m "not online"
82 +}