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: Mon, 13 Sep 2021 20:31:25
Message-Id: 1631565072.55ecafc0e1acfad510f2ba32c76003bc94e638fe.mgorny@gentoo
1 commit: 55ecafc0e1acfad510f2ba32c76003bc94e638fe
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 13 20:08:04 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 13 20:31:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55ecafc0
7
8 dev-python/httpcore: Bump to 0.13.7
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.7.ebuild | 65 ++++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest
17 index a6800a518bf..72fa0eb6dfc 100644
18 --- a/dev-python/httpcore/Manifest
19 +++ b/dev-python/httpcore/Manifest
20 @@ -4,3 +4,4 @@ DIST httpcore-0.13.1.tar.gz 58538 BLAKE2B 4c0b681f96fd64d17bc1974bdb74486fd336f8
21 DIST httpcore-0.13.2.tar.gz 59043 BLAKE2B c534c304b238837486b8a61860553475c87363b43842c9dad2629673c1d30c2f906f31658f6ff75bd9354040c08453c3d4ffe8bdf53077ca993399b93d68a57a SHA512 b032d56bc5bf4049d02ca2ddfaf66615a1ac2f0723291f82f9104a0d7f09d5eec710f9e1ac2082fa1e83ef7fa6fe4f5a6c7c28d660abd6803a990094c952834f
22 DIST httpcore-0.13.3.tar.gz 64246 BLAKE2B afc43122a5502770b6efe7052846926e25fa678dcbd5c8ddbcd806df36dcf684d94df12571efaab0ff1b657fef14d5d71dd902be5cbec12c61db13004d7fe5a9 SHA512 7ba6c2cb77c082bcdb8cdfad2bc17646ccc9348f49760150ec1070429f94913b2fb9eae6d3407b404581b48670b866bf11696453325dd70610bd700e94990450
23 DIST httpcore-0.13.6.tar.gz 64716 BLAKE2B 6eadcaac626d4561dec2e41bdbde21836727f10870093890469e6b5a4af2aa276361044d08b5e25e3bf760092e5537edff9d0c99acb1ddf6ab0a17343bcd9af2 SHA512 52b6189763755dbbd762ad26fef0107ad50949c1dd4865db788317ce981079cc095161e543f1a455ce84138b51f89806d8c55267378574feced107675f6cde47
24 +DIST httpcore-0.13.7.tar.gz 64734 BLAKE2B e6c4b1720ce4bf62689995d3e1c648c4702bb416f3b3586eb8dd2f0cfd2155046e64181c4c04e65f721a5f0fcbc23b5ffd01c2930c7c69d37ee4c36e37b7d0d4 SHA512 0cc48828d0710066b3ef89998ec85975285763ac63a8b59106952ef2dac5a02dac71e7e106c4b6ea1022eb4d06a9cb5ee3e634eb564bad49c5508beff75279d6
25
26 diff --git a/dev-python/httpcore/httpcore-0.13.7.ebuild b/dev-python/httpcore/httpcore-0.13.7.ebuild
27 new file mode 100644
28 index 00000000000..1d04b3d28c9
29 --- /dev/null
30 +++ b/dev-python/httpcore/httpcore-0.13.7.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A minimal low-level HTTP client"
41 +HOMEPAGE="https://www.encode.io/httpcore/"
42 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
47 +
48 +RDEPEND="
49 + =dev-python/anyio-3*[${PYTHON_USEDEP}]
50 + <dev-python/h11-0.13[${PYTHON_USEDEP}]
51 + <dev-python/hyper-h2-5[${PYTHON_USEDEP}]
52 + =dev-python/sniffio-1*[${PYTHON_USEDEP}]
53 +"
54 +BDEPEND="
55 + test? (
56 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
57 + dev-python/trustme[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +distutils_enable_tests pytest
62 +
63 +python_prepare_all() {
64 + # trio is not in the tree, anyio is causing tons of test failures
65 + # (probably insisting on using trio)
66 + sed -i 's/^@pytest.mark.\(anyio\|trio\)/@pytest.mark.skip/' \
67 + tests/async_tests/test_*.py || die
68 + sed -i '/^import trio/d' tests/utils.py || die
69 + # pproxy is not in the tree, the associated fixture
70 + # must be disabled to prevent errors during test setup
71 + sed -i 's/def proxy_server().*/&\n pytest.skip()/' \
72 + tests/conftest.py || die
73 + distutils-r1_python_prepare_all
74 +}
75 +
76 +python_test() {
77 + local skipped_tests=(
78 + # Require Internet access or hypercorn (not in the tree)
79 + tests/test_threadsafety.py::test_threadsafe_basic
80 + tests/sync_tests/test_interfaces.py::test_http_request
81 + tests/sync_tests/test_interfaces.py::test_https_request
82 + tests/sync_tests/test_interfaces.py::test_http2_request
83 + tests/sync_tests/test_interfaces.py::test_closing_http_request
84 + tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info
85 + tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly
86 + tests/sync_tests/test_interfaces.py::test_explicit_backend_name
87 + tests/sync_tests/test_interfaces.py::test_connection_timeout_tcp
88 + tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files
89 + tests/sync_tests/test_retries.py::test_no_retries
90 + tests/sync_tests/test_retries.py::test_retries_exceeded
91 + tests/sync_tests/test_retries.py::test_retries_enabled
92 + # Require hypercorn
93 + tests/sync_tests/test_interfaces.py::test_connection_timeout_uds
94 + )
95 + epytest ${skipped_tests[@]/#/--deselect }
96 +}