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/requests-cache/
Date: Sun, 13 Jun 2021 06:10:14
Message-Id: 1623564606.c7b91b8c83404ba255623b71b0be5137f957b8cb.mgorny@gentoo
1 commit: c7b91b8c83404ba255623b71b0be5137f957b8cb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 13 06:05:49 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 13 06:10:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b91b8c
7
8 dev-python/requests-cache: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/requests-cache/Manifest | 4 --
13 .../requests-cache/requests-cache-0.5.2.ebuild | 70 ----------------------
14 .../requests-cache/requests-cache-0.6.0.ebuild | 68 ---------------------
15 .../requests-cache/requests-cache-0.6.1.ebuild | 49 ---------------
16 .../requests-cache/requests-cache-0.6.2.ebuild | 49 ---------------
17 5 files changed, 240 deletions(-)
18
19 diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest
20 index 01307336593..c504192b964 100644
21 --- a/dev-python/requests-cache/Manifest
22 +++ b/dev-python/requests-cache/Manifest
23 @@ -1,6 +1,2 @@
24 -DIST requests-cache-0.5.2.tar.gz 31159 BLAKE2B 4fca146a751064baf70954a71df64dbb7f8c9a4e27fec5dbea3620496ce78e7ccfb3785fb63705f513ff6fa938376b0c6acc4a2f584856060b1bc8388517df46 SHA512 355cc571a46b768615606a907a69ed065b3c4b5e74bb6c311abc7a28d9406f32fdea1db0dfd2b1c32dcdc82ed817ef7e0b30086c069de57307254617604c5177
25 -DIST requests-cache-0.6.0.tar.gz 52342 BLAKE2B 12af89721fcf1ae2e4ab14d7ac377f119ef312c64d3b9e5d80a36f26f3a9a798cf090835ee2c9bf886d0baa9b472f4c439d5a032573d442feecbbad930c239fd SHA512 b5b32b9cb99ec51cee67defde715df66b7c50a26f4124cbaf893685048fe188af0cf664232150e3b4fafe3b7a927716966efafadd711be01118d67ad802acef6
26 -DIST requests-cache-0.6.1.gh.tar.gz 47919 BLAKE2B 022fd94a332feae043cf646cefc368fdb6ca1833dcd58621a07425bfb0d7bcb5ff9913c8b53f2bc0769fd23e8f364c437ee10f16fd37d1d340e8c46bcba9d53e SHA512 f8bea03b05b2f1e55fe6c975b5f5caacff55250d81f41cf953052c77101fc726ff39f9d95e1fd2829ddb59215226026bdddfd93918feb478395375ac0e0a4439
27 -DIST requests-cache-0.6.2.gh.tar.gz 47962 BLAKE2B f0597f3c5f4a678b94f3b15023e3aba5247de3d79043e7e1cbd4ab0f2d4457e2f5feab130665129ae87baba56576312b1420ae16c2a34b44dc780bf05351615c SHA512 c97119127b1e80e6eec02938b2e0e8de785875f46d348215e05ee2d668feb77ed40f0dad4ed4a3ae53fb8e6708c8d7b13788e54694a38cef3ce22e83f13f97e2
28 DIST requests-cache-0.6.3.gh.tar.gz 50303 BLAKE2B e8507a19f3883c050e1d819bf9ce8ebf720a5c6517e4004ecf745f5a197a8feac9cbca18ffa99001be0baffbad41d2ebfba5b63d90b55eda1d754d279242bbc6 SHA512 1fa801f60623dce0a5cd834272a74acf80b6ae52a602ae81fbd7e3653467800d9a58fb8220e30d53ef1b896aa01f2017f93dcbc2dacfd685ee9ae286f47077f5
29 DIST requests-cache-0.6.4.gh.tar.gz 50322 BLAKE2B c9a6cae957604bdfa6057621e028fad83476e5d918bbf9c58e73f09f8615398946f3cf6e3737c9ff916cba68d82ed66a674557fb733c74b874b0f68e2430d9a0 SHA512 31e2217e54892d8ec5fc9fcf60f650960621b1f97029c90deca925b9a1be9eb5a3ddb6ae68e581c805f20136f93eefa70d51e7e9f086ecbae76f8e550bbe3f1a
30
31 diff --git a/dev-python/requests-cache/requests-cache-0.5.2.ebuild b/dev-python/requests-cache/requests-cache-0.5.2.ebuild
32 deleted file mode 100644
33 index a64e64005f9..00000000000
34 --- a/dev-python/requests-cache/requests-cache-0.5.2.ebuild
35 +++ /dev/null
36 @@ -1,70 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=7
41 -
42 -PYTHON_COMPAT=( python3_{7,8,9} )
43 -PYTHON_REQ_USE="sqlite"
44 -
45 -inherit distutils-r1
46 -
47 -HOMEPAGE="https://pypi.org/project/requests-cache/"
48 -DESCRIPTION="Persistent cache for requests library"
49 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
50 -
51 -LICENSE="BSD"
52 -SLOT="0"
53 -KEYWORDS="amd64 x86"
54 -
55 -RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
56 -
57 -distutils_enable_sphinx docs
58 -distutils_enable_tests pytest
59 -
60 -src_prepare() {
61 - # Ships with incorrect mock import
62 - sed -e 's/import mock/import unittest.mock as mock/' -i tests/test_cache.py || die
63 - default
64 -}
65 -
66 -python_test() {
67 - local skipped_tests=(
68 - # Slew of tests that violate network-sandbox
69 - tests/test_cache.py::CacheTestCase::test_attr_from_cache_in_hook
70 - tests/test_cache.py::CacheTestCase::test_cache_unpickle_errors
71 - tests/test_cache.py::CacheTestCase::test_close_response
72 - tests/test_cache.py::CacheTestCase::test_content_and_cookies
73 - tests/test_cache.py::CacheTestCase::test_delete_urls
74 - tests/test_cache.py::CacheTestCase::test_disabled
75 - tests/test_cache.py::CacheTestCase::test_enabled
76 - tests/test_cache.py::CacheTestCase::test_expire_cache
77 - tests/test_cache.py::CacheTestCase::test_from_cache_attribute
78 - tests/test_cache.py::CacheTestCase::test_get_parameters_normalization
79 - tests/test_cache.py::CacheTestCase::test_get_params_as_argument
80 - tests/test_cache.py::CacheTestCase::test_gzip_response
81 - tests/test_cache.py::CacheTestCase::test_headers_in_get_query
82 - tests/test_cache.py::CacheTestCase::test_hooks
83 - tests/test_cache.py::CacheTestCase::test_https_support
84 - tests/test_cache.py::CacheTestCase::test_ignore_parameters_get
85 - tests/test_cache.py::CacheTestCase::test_ignore_parameters_post
86 - tests/test_cache.py::CacheTestCase::test_ignore_parameters_post_json
87 - tests/test_cache.py::CacheTestCase::test_ignore_parameters_post_raw
88 - tests/test_cache.py::CacheTestCase::test_post
89 - tests/test_cache.py::CacheTestCase::test_post_data
90 - tests/test_cache.py::CacheTestCase::test_post_parameters_normalization
91 - tests/test_cache.py::CacheTestCase::test_post_params
92 - tests/test_cache.py::CacheTestCase::test_remove_expired_entries
93 - tests/test_cache.py::CacheTestCase::test_response_history
94 - tests/test_cache.py::CacheTestCase::test_response_history_simple
95 - tests/test_cache.py::CacheTestCase::test_return_old_data_on_error
96 - tests/test_cache.py::CacheTestCase::test_stream_requests_support
97 - tests/test_monkey_patch.py::MonkeyPatchTestCase::test_requests_from_cache
98 -
99 - # This throws many errors with network-sandbox, but doesn't fail the
100 - # build
101 - tests/test_thread_safety::test_thread_safety
102 - )
103 -
104 - # Redis tests need a redis server running
105 - pytest -vv --ignore tests/test_redisdict.py ${skipped_tests[@]/#/--deselect } || die "Tests fail with ${EPYTHON}"
106 -}
107
108 diff --git a/dev-python/requests-cache/requests-cache-0.6.0.ebuild b/dev-python/requests-cache/requests-cache-0.6.0.ebuild
109 deleted file mode 100644
110 index cfb8a2d6b04..00000000000
111 --- a/dev-python/requests-cache/requests-cache-0.6.0.ebuild
112 +++ /dev/null
113 @@ -1,68 +0,0 @@
114 -# Copyright 1999-2021 Gentoo Authors
115 -# Distributed under the terms of the GNU General Public License v2
116 -
117 -EAPI=7
118 -
119 -PYTHON_COMPAT=( python3_{7..9} )
120 -PYTHON_REQ_USE="sqlite"
121 -
122 -inherit distutils-r1
123 -
124 -HOMEPAGE="https://pypi.org/project/requests-cache/"
125 -DESCRIPTION="Persistent cache for requests library"
126 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
127 -
128 -LICENSE="BSD"
129 -SLOT="0"
130 -KEYWORDS="~amd64 ~x86"
131 -
132 -RDEPEND="
133 - dev-python/itsdangerous[${PYTHON_USEDEP}]
134 - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
135 - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]"
136 -BDEPEND="
137 - test? (
138 - $(python_gen_any_dep '
139 - dev-python/httpbin[${PYTHON_USEDEP}]
140 - www-servers/gunicorn[${PYTHON_USEDEP}]
141 - ')
142 - )"
143 -
144 -distutils_enable_tests pytest
145 -
146 -PATCHES=(
147 - "${FILESDIR}"/${P}-test-install.patch
148 -)
149 -
150 -python_check_deps() {
151 - use test || return 0
152 -
153 - has_version -b "dev-python/httpbin[${PYTHON_USEDEP}]" &&
154 - has_version -b "www-servers/gunicorn[${PYTHON_USEDEP}]"
155 -}
156 -
157 -src_test() {
158 - local hostport="127.0.0.1:23125"
159 - python_setup
160 - einfo "Starting httpbin on ${hostport}"
161 - gunicorn -b "${hostport}" -D -p gunicorn.pid httpbin:app || die
162 -
163 - local -x HTTPBIN_URL="http://${hostport}/"
164 - distutils-r1_src_test
165 - kill $(<gunicorn.pid) || die
166 -}
167 -
168 -python_test() {
169 - local skipped_tests=(
170 - # These require extra servers running
171 - tests/integration/test_dynamodb.py
172 - tests/integration/test_gridfs.py
173 - tests/integration/test_mongodb.py
174 - tests/integration/test_redis.py
175 -
176 - # TODO
177 - 'tests/integration/test_cache.py::test_all_response_formats[json]'
178 - )
179 -
180 - epytest ${skipped_tests[@]/#/--deselect }
181 -}
182
183 diff --git a/dev-python/requests-cache/requests-cache-0.6.1.ebuild b/dev-python/requests-cache/requests-cache-0.6.1.ebuild
184 deleted file mode 100644
185 index dcaf77d008d..00000000000
186 --- a/dev-python/requests-cache/requests-cache-0.6.1.ebuild
187 +++ /dev/null
188 @@ -1,49 +0,0 @@
189 -# Copyright 1999-2021 Gentoo Authors
190 -# Distributed under the terms of the GNU General Public License v2
191 -
192 -EAPI=7
193 -
194 -PYTHON_COMPAT=( python3_{7..9} )
195 -PYTHON_REQ_USE="sqlite"
196 -
197 -inherit distutils-r1
198 -
199 -HOMEPAGE="
200 - https://pypi.org/project/requests-cache/
201 - https://github.com/reclosedev/requests-cache/"
202 -DESCRIPTION="Persistent cache for requests library"
203 -SRC_URI="
204 - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz
205 - -> ${P}.gh.tar.gz"
206 -
207 -LICENSE="BSD"
208 -SLOT="0"
209 -KEYWORDS="~amd64 ~x86"
210 -
211 -RDEPEND="
212 - dev-python/itsdangerous[${PYTHON_USEDEP}]
213 - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
214 - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]"
215 -BDEPEND="
216 - test? (
217 - dev-python/pytest-httpbin[${PYTHON_USEDEP}]
218 - dev-python/timeout-decorator[${PYTHON_USEDEP}]
219 - )"
220 -
221 -distutils_enable_tests pytest
222 -
223 -python_test() {
224 - local skipped_tests=(
225 - # These require extra servers running
226 - tests/integration/test_dynamodb.py
227 - tests/integration/test_gridfs.py
228 - tests/integration/test_mongodb.py
229 - tests/integration/test_redis.py
230 -
231 - # TODO
232 -# 'tests/integration/test_cache.py::test_all_response_formats[json]'
233 - )
234 -
235 - local -x USE_PYTEST_HTTPBIN=true
236 - epytest ${skipped_tests[@]/#/--deselect }
237 -}
238
239 diff --git a/dev-python/requests-cache/requests-cache-0.6.2.ebuild b/dev-python/requests-cache/requests-cache-0.6.2.ebuild
240 deleted file mode 100644
241 index dcaf77d008d..00000000000
242 --- a/dev-python/requests-cache/requests-cache-0.6.2.ebuild
243 +++ /dev/null
244 @@ -1,49 +0,0 @@
245 -# Copyright 1999-2021 Gentoo Authors
246 -# Distributed under the terms of the GNU General Public License v2
247 -
248 -EAPI=7
249 -
250 -PYTHON_COMPAT=( python3_{7..9} )
251 -PYTHON_REQ_USE="sqlite"
252 -
253 -inherit distutils-r1
254 -
255 -HOMEPAGE="
256 - https://pypi.org/project/requests-cache/
257 - https://github.com/reclosedev/requests-cache/"
258 -DESCRIPTION="Persistent cache for requests library"
259 -SRC_URI="
260 - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz
261 - -> ${P}.gh.tar.gz"
262 -
263 -LICENSE="BSD"
264 -SLOT="0"
265 -KEYWORDS="~amd64 ~x86"
266 -
267 -RDEPEND="
268 - dev-python/itsdangerous[${PYTHON_USEDEP}]
269 - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
270 - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]"
271 -BDEPEND="
272 - test? (
273 - dev-python/pytest-httpbin[${PYTHON_USEDEP}]
274 - dev-python/timeout-decorator[${PYTHON_USEDEP}]
275 - )"
276 -
277 -distutils_enable_tests pytest
278 -
279 -python_test() {
280 - local skipped_tests=(
281 - # These require extra servers running
282 - tests/integration/test_dynamodb.py
283 - tests/integration/test_gridfs.py
284 - tests/integration/test_mongodb.py
285 - tests/integration/test_redis.py
286 -
287 - # TODO
288 -# 'tests/integration/test_cache.py::test_all_response_formats[json]'
289 - )
290 -
291 - local -x USE_PYTEST_HTTPBIN=true
292 - epytest ${skipped_tests[@]/#/--deselect }
293 -}