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/httpcore/
Date: Thu, 22 Apr 2021 07:36:15
Message-Id: 1619076867.5effee574646ed41e5461e8fa478851808ab302f.mgorny@gentoo
1 commit: 5effee574646ed41e5461e8fa478851808ab302f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 22 06:30:23 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 22 07:34:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5effee57
7
8 dev-python/httpcore: Bump to 0.13.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/httpcore/Manifest | 1 +
13 dev-python/httpcore/httpcore-0.13.0.ebuild | 63 ++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest
17 index b7e7fb9d804..f76740ca2ad 100644
18 --- a/dev-python/httpcore/Manifest
19 +++ b/dev-python/httpcore/Manifest
20 @@ -1 +1,2 @@
21 DIST httpcore-0.12.3.tar.gz 57587 BLAKE2B 3c0e7a210b21e54564c4c6077fadf66344b887662c71b05a1ad4a2c0224a4d703eccdf576d4443341176edee03b6776bfd49aaef2ea2f29f02614677e1dfad85 SHA512 b31535231dc2b6a5f1c9c0c538628f75360f04b4747b447ab0a7168ed32d0eabd463335c2f7fa782dcabb4cbc32891a2839ae50e0999d5a791c01b02533d38f0
22 +DIST httpcore-0.13.0.tar.gz 58310 BLAKE2B 29ed4ad768088c6226ece27cb82e2a1d8df32eba4cf446015b43360c330ec65b433f571ac8e13e4b8f8994ff6e097ce5bf79ae1b9561d940298172c66d539153 SHA512 28ed65d3b3b30a62e3f198d98ae77a3cc26bd80250f10a506851433b5572a6fdcab38bf0d670caea94dec43d5b61de21a3ea967a445041536cad68eb98cc12bc
23
24 diff --git a/dev-python/httpcore/httpcore-0.13.0.ebuild b/dev-python/httpcore/httpcore-0.13.0.ebuild
25 new file mode 100644
26 index 00000000000..65db8571836
27 --- /dev/null
28 +++ b/dev-python/httpcore/httpcore-0.13.0.ebuild
29 @@ -0,0 +1,63 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="A minimal low-level HTTP client"
40 +HOMEPAGE="https://www.encode.io/httpcore/"
41 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +RDEPEND="
48 + =dev-python/h11-0*[${PYTHON_USEDEP}]
49 + =dev-python/sniffio-1*[${PYTHON_USEDEP}]
50 +"
51 +BDEPEND="
52 + test? (
53 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
54 + dev-python/trustme[${PYTHON_USEDEP}]
55 + )
56 +"
57 +
58 +distutils_enable_tests pytest
59 +
60 +python_prepare_all() {
61 + # anyio and trio are not in the tree
62 + sed -i 's/^@pytest.mark.\(anyio\|trio\)/@pytest.mark.skip/' \
63 + tests/async_tests/test_*.py || die
64 + sed -i '/^import trio/d' tests/utils.py || die
65 + # pproxy is not in the tree, the associated fixture
66 + # must be disabled to prevent errors during test setup
67 + sed -i 's/def proxy_server().*/&\n pytest.skip()/' \
68 + tests/conftest.py || die
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_test() {
73 + local skipped_tests=(
74 + # Require Internet access or hypercorn (not in the tree)
75 + tests/test_threadsafety.py::test_threadsafe_basic
76 + tests/sync_tests/test_interfaces.py::test_http_request
77 + tests/sync_tests/test_interfaces.py::test_https_request
78 + tests/sync_tests/test_interfaces.py::test_http2_request
79 + tests/sync_tests/test_interfaces.py::test_closing_http_request
80 + tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info
81 + tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly
82 + tests/sync_tests/test_interfaces.py::test_explicit_backend_name
83 + tests/sync_tests/test_interfaces.py::test_connection_timeout_tcp
84 + tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files
85 + tests/sync_tests/test_retries.py::test_no_retries
86 + tests/sync_tests/test_retries.py::test_retries_exceeded
87 + tests/sync_tests/test_retries.py::test_retries_enabled
88 + # Require hypercorn
89 + tests/sync_tests/test_interfaces.py::test_connection_timeout_uds
90 + )
91 + epytest ${skipped_tests[@]/#/--deselect }
92 +}