summaryrefslogtreecommitdiff
path: root/dev-python/requests-cache
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/requests-cache')
-rw-r--r--dev-python/requests-cache/Manifest2
-rw-r--r--dev-python/requests-cache/requests-cache-0.5.2.ebuild70
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest
index c1c9c5d3209a..9c026f5ee981 100644
--- a/dev-python/requests-cache/Manifest
+++ b/dev-python/requests-cache/Manifest
@@ -1,4 +1,6 @@
DIST requests-cache-0.4.12.zip 44767 BLAKE2B f328d8ae8e3377af626030a6e3617c78e488024fa4ada9894576d339e571ba8ee6d905612ddc2802810bbeffbd8c94d90c743889e80fbf21418a7c67c5a005f6 SHA512 784d630eec99b607596d6ebcb7e51b0b4ed612b131437000391ecea6f3a684d1f61d169d57266ffc044a3939dcd4e7d6f85b9538165ae3613b1d3e55f18585fd
+DIST requests-cache-0.5.2.tar.gz 31159 BLAKE2B 4fca146a751064baf70954a71df64dbb7f8c9a4e27fec5dbea3620496ce78e7ccfb3785fb63705f513ff6fa938376b0c6acc4a2f584856060b1bc8388517df46 SHA512 355cc571a46b768615606a907a69ed065b3c4b5e74bb6c311abc7a28d9406f32fdea1db0dfd2b1c32dcdc82ed817ef7e0b30086c069de57307254617604c5177
EBUILD requests-cache-0.4.12-r1.ebuild 660 BLAKE2B 14efb1699ae8bb1ea2680c3798c4f50143885325ec74d9b15f8cbbf63150e74aa4b0972095e12799c73dda31482da6c25c70467ec40da5c62cd69d2173307838 SHA512 3add4369d3b8716f9aa89985d69c973fe99dc1d28b02c12a9b4768f493edfb5a5b9e843e9a7ca9360b94ac9d01c5e8eb7e6f033d1023083ab5b8606ab59406ed
EBUILD requests-cache-0.4.12.ebuild 837 BLAKE2B 6784908d623e3d0cb4839ffc6d50b53e0dad3b37e1e9469773dbd6a3a793ed0c677965a8ca2a04c8e160df8a4e0ac9b4f19319184060c9b4cd99f399b69d01f9 SHA512 a89a3b2a4475a910167fb67284e08a7b1e30e90e3358ac340f3fced156021c9e74e31265398cb76d21c0f40d0c85a49fe981d84deebbe34fc44883ca04fd78f1
+EBUILD requests-cache-0.5.2.ebuild 2836 BLAKE2B 3c83e773ed1470a22c792d395ee460bf06ff38f6f1a63cd3812b35e6debb1201749e32c1dad0c12bff1a7f5a6d9a8df0b57d143a5885fe5457067eb5ae09f3c2 SHA512 479c04691d3a9d2343b752e6f55b8890f7a463dd74e78016500f76e4c6fb0d94da06fb6148207531e43c8cd4af267e5859598ce9d997e6c20e2cfcea4b7cfb91
MISC metadata.xml 444 BLAKE2B 6008ac86bdb3740724aff487116d542902602f70670735ac2219b72db042b1974ffa6b4eab0254e59d16fa0438e022d8b9f675899b0ac181d88d4f82dd78d04e SHA512 0cc1b4cee3f1aecef89eb15ffd1e03a0ff4887f9b87a10ea90b6d11e3f5144b8d8d67dcad8c1dd26df3cea9e07140ed1ec76c4b1587d0db1b0f9c60b6daad41f
diff --git a/dev-python/requests-cache/requests-cache-0.5.2.ebuild b/dev-python/requests-cache/requests-cache-0.5.2.ebuild
new file mode 100644
index 000000000000..b6d60d1a513b
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.5.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+HOMEPAGE="https://pypi.org/project/requests-cache/"
+DESCRIPTION="Persistent cache for requests library"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+src_prepare() {
+ # Ships with incorrect mock import
+ sed -e 's/import mock/import unittest.mock as mock/' -i tests/test_cache.py || die
+ default
+}
+
+python_test() {
+ local skipped_tests=(
+ # Slew of tests that violate network-sandbox
+ tests/test_cache.py::CacheTestCase::test_attr_from_cache_in_hook
+ tests/test_cache.py::CacheTestCase::test_cache_unpickle_errors
+ tests/test_cache.py::CacheTestCase::test_close_response
+ tests/test_cache.py::CacheTestCase::test_content_and_cookies
+ tests/test_cache.py::CacheTestCase::test_delete_urls
+ tests/test_cache.py::CacheTestCase::test_disabled
+ tests/test_cache.py::CacheTestCase::test_enabled
+ tests/test_cache.py::CacheTestCase::test_expire_cache
+ tests/test_cache.py::CacheTestCase::test_from_cache_attribute
+ tests/test_cache.py::CacheTestCase::test_get_parameters_normalization
+ tests/test_cache.py::CacheTestCase::test_get_params_as_argument
+ tests/test_cache.py::CacheTestCase::test_gzip_response
+ tests/test_cache.py::CacheTestCase::test_headers_in_get_query
+ tests/test_cache.py::CacheTestCase::test_hooks
+ tests/test_cache.py::CacheTestCase::test_https_support
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_get
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_post
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_post_json
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_post_raw
+ tests/test_cache.py::CacheTestCase::test_post
+ tests/test_cache.py::CacheTestCase::test_post_data
+ tests/test_cache.py::CacheTestCase::test_post_parameters_normalization
+ tests/test_cache.py::CacheTestCase::test_post_params
+ tests/test_cache.py::CacheTestCase::test_remove_expired_entries
+ tests/test_cache.py::CacheTestCase::test_response_history
+ tests/test_cache.py::CacheTestCase::test_response_history_simple
+ tests/test_cache.py::CacheTestCase::test_return_old_data_on_error
+ tests/test_cache.py::CacheTestCase::test_stream_requests_support
+ tests/test_monkey_patch.py::MonkeyPatchTestCase::test_requests_from_cache
+
+ # This throws many errors with network-sandbox, but doesn't fail the
+ # build
+ tests/test_thread_safety::test_thread_safety
+ )
+
+ # Redis tests need a redis server running
+ pytest -vv --ignore tests/test_redisdict.py ${skipped_tests[@]/#/--deselect } || die "Tests fail with ${EPYTHON}"
+}