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