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: Fri, 03 Dec 2021 16:41:21
Message-Id: 1638549635.501acb94355350d330f34c7c0492ba920bfcfa10.mgorny@gentoo
1 commit: 501acb94355350d330f34c7c0492ba920bfcfa10
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 3 16:40:35 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 3 16:40:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=501acb94
7
8 dev-python/httpcore: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/httpcore/Manifest | 2 -
13 dev-python/httpcore/httpcore-0.13.3.ebuild | 64 -----------------------------
14 dev-python/httpcore/httpcore-0.13.6.ebuild | 66 ------------------------------
15 3 files changed, 132 deletions(-)
16
17 diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest
18 index 8bd60a2b8957..484d518c7e83 100644
19 --- a/dev-python/httpcore/Manifest
20 +++ b/dev-python/httpcore/Manifest
21 @@ -1,3 +1 @@
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.3.ebuild b/dev-python/httpcore/httpcore-0.13.3.ebuild
27 deleted file mode 100644
28 index 23125e851e56..000000000000
29 --- a/dev-python/httpcore/httpcore-0.13.3.ebuild
30 +++ /dev/null
31 @@ -1,64 +0,0 @@
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 arm arm64 ppc ppc64 sparc x86"
48 -
49 -RDEPEND="
50 - <dev-python/h11-0.13[${PYTHON_USEDEP}]
51 - <dev-python/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 - # anyio and trio are not in the tree
65 - sed -i 's/^@pytest.mark.\(anyio\|trio\)/@pytest.mark.skip/' \
66 - tests/async_tests/test_*.py || die
67 - sed -i '/^import trio/d' tests/utils.py || die
68 - # pproxy is not in the tree, the associated fixture
69 - # must be disabled to prevent errors during test setup
70 - sed -i 's/def proxy_server().*/&\n pytest.skip()/' \
71 - tests/conftest.py || die
72 - distutils-r1_python_prepare_all
73 -}
74 -
75 -python_test() {
76 - local skipped_tests=(
77 - # Require Internet access or hypercorn (not in the tree)
78 - tests/test_threadsafety.py::test_threadsafe_basic
79 - tests/sync_tests/test_interfaces.py::test_http_request
80 - tests/sync_tests/test_interfaces.py::test_https_request
81 - tests/sync_tests/test_interfaces.py::test_http2_request
82 - tests/sync_tests/test_interfaces.py::test_closing_http_request
83 - tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info
84 - tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly
85 - tests/sync_tests/test_interfaces.py::test_explicit_backend_name
86 - tests/sync_tests/test_interfaces.py::test_connection_timeout_tcp
87 - tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files
88 - tests/sync_tests/test_retries.py::test_no_retries
89 - tests/sync_tests/test_retries.py::test_retries_exceeded
90 - tests/sync_tests/test_retries.py::test_retries_enabled
91 - # Require hypercorn
92 - tests/sync_tests/test_interfaces.py::test_connection_timeout_uds
93 - )
94 - epytest ${skipped_tests[@]/#/--deselect }
95 -}
96
97 diff --git a/dev-python/httpcore/httpcore-0.13.6.ebuild b/dev-python/httpcore/httpcore-0.13.6.ebuild
98 deleted file mode 100644
99 index de418b61e2df..000000000000
100 --- a/dev-python/httpcore/httpcore-0.13.6.ebuild
101 +++ /dev/null
102 @@ -1,66 +0,0 @@
103 -# Copyright 1999-2021 Gentoo Authors
104 -# Distributed under the terms of the GNU General Public License v2
105 -
106 -EAPI=7
107 -
108 -PYTHON_COMPAT=( python3_{8..10} )
109 -
110 -inherit distutils-r1
111 -
112 -DESCRIPTION="A minimal low-level HTTP client"
113 -HOMEPAGE="https://www.encode.io/httpcore/"
114 -SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
115 -
116 -LICENSE="BSD"
117 -SLOT="0"
118 -KEYWORDS="amd64 arm ~arm64 ppc ~ppc64 sparc x86"
119 -
120 -RDEPEND="
121 - =dev-python/anyio-3*[${PYTHON_USEDEP}]
122 - <dev-python/h11-0.13[${PYTHON_USEDEP}]
123 - <dev-python/h2-5[${PYTHON_USEDEP}]
124 - =dev-python/sniffio-1*[${PYTHON_USEDEP}]
125 -"
126 -BDEPEND="
127 - test? (
128 - dev-python/pytest-asyncio[${PYTHON_USEDEP}]
129 - dev-python/trustme[${PYTHON_USEDEP}]
130 - )
131 -"
132 -
133 -distutils_enable_tests pytest
134 -
135 -python_prepare_all() {
136 - # trio is not in the tree, anyio is causing tons of test failures
137 - # (probably insisting on using trio)
138 - sed -i 's/^@pytest.mark.\(anyio\|trio\)/@pytest.mark.skip/' \
139 - tests/async_tests/test_*.py || die
140 - sed -i '/^import trio/d' tests/utils.py || die
141 - # pproxy is not in the tree, the associated fixture
142 - # must be disabled to prevent errors during test setup
143 - sed -i 's/def proxy_server().*/&\n pytest.skip()/' \
144 - tests/conftest.py || die
145 - distutils-r1_python_prepare_all
146 -}
147 -
148 -python_test() {
149 - local skipped_tests=(
150 - # Require Internet access or hypercorn (not in the tree)
151 - tests/test_threadsafety.py::test_threadsafe_basic
152 - tests/sync_tests/test_interfaces.py::test_http_request
153 - tests/sync_tests/test_interfaces.py::test_https_request
154 - tests/sync_tests/test_interfaces.py::test_http2_request
155 - tests/sync_tests/test_interfaces.py::test_closing_http_request
156 - tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info
157 - tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly
158 - tests/sync_tests/test_interfaces.py::test_explicit_backend_name
159 - tests/sync_tests/test_interfaces.py::test_connection_timeout_tcp
160 - tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files
161 - tests/sync_tests/test_retries.py::test_no_retries
162 - tests/sync_tests/test_retries.py::test_retries_exceeded
163 - tests/sync_tests/test_retries.py::test_retries_enabled
164 - # Require hypercorn
165 - tests/sync_tests/test_interfaces.py::test_connection_timeout_uds
166 - )
167 - epytest ${skipped_tests[@]/#/--deselect }
168 -}