From 3a60b38f14fa81df8e18aa67d1634fbffca17d14 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jan 2023 05:50:43 +0000 Subject: gentoo auto-resync : 14:01:2023 - 05:50:42 --- dev-python/requests-cache/Manifest | 2 + .../requests-cache/requests-cache-0.9.8.ebuild | 71 ++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 dev-python/requests-cache/requests-cache-0.9.8.ebuild (limited to 'dev-python/requests-cache') diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest index 7d2284197050..32777be26d7a 100644 --- a/dev-python/requests-cache/Manifest +++ b/dev-python/requests-cache/Manifest @@ -1,3 +1,5 @@ DIST requests-cache-0.9.7.gh.tar.gz 1544100 BLAKE2B a255d3cce0345ff03e020327c10a1d8cc25e519069764b7e3e1a43a0e5cd899aec824e3c147561796cba1f269550505f881cf913d909ce7e6c52e8f76ad9688a SHA512 00b2c7080030ed07f5d896871a431aec2625dab6ab84f01f7e6fea9e81692f757304e25ee6addbe7695e93d0c1c04484c31b95a71d7c9e12f6c23a5b7747ae30 +DIST requests-cache-0.9.8.gh.tar.gz 1540296 BLAKE2B 8b2ab1227b28c3822cd9111375c8759f5d7099f2724680a6560e4e14cd16558a1dcb8dd98d043fdf2f9a3861d76dd0d2c2f84df059338e9fa28c1257e74e87b9 SHA512 f428a7b498d2ef2b6c23d3715bac2274c320b6f9d6f56017e69ab5fa6b8830242a2f335ed6c3758a741a51f108c6dacae1a447ff8f05ca5686303caf48a1dc59 EBUILD requests-cache-0.9.7.ebuild 1801 BLAKE2B 6895ba7ab3a0479b2dbafde4f6eb60e5a61376da2378e7aab5fcc6eb2f3f3a0abf45a893a611892c6b6f4edb138240fcdac9aa958298dfed027b6d79bb17f5bf SHA512 ff6afd5c45ec4f46e09eeef6b6fbb74fd8fd0c14e42507eb9b56bcbc070f8bd4671d25493802cc40621d4624fb5d8f31b184ae7a09cb607021146e129643261c +EBUILD requests-cache-0.9.8.ebuild 1803 BLAKE2B f85aea807c2007687740a0551d4d3b04af1e7f5c0846d03bfdd282eefe29908bc7a0cf6a846829af46852a0e11bbd02ef8b7ea17ebb85acb342991b804f78b90 SHA512 00611642a32271c4be53145cf0d616487a0009c317a29eaea2a21272b82816dd622c6d989c3ad0620604ae806ba56a8fa0b6714907f7886fb584d15aeb90c064 MISC metadata.xml 541 BLAKE2B a8fd81921a36e2fe5bdec38cc1039b9e91971c992a59cbe2dc4826977f753bd6cd2533f65b5f1a076308a898972fe70e85a2c8cf480259e9801f51b10c4de8a4 SHA512 64f29b67eaf3ce892a9f918abd7eaf8f020323e9e0d986b424cffc83e3ac1ba5cb14b534f0a0ec73a8e81694ca4e0e7f98ef02968ac5b43dab104b2b12e8e0f2 diff --git a/dev-python/requests-cache/requests-cache-0.9.8.ebuild b/dev-python/requests-cache/requests-cache-0.9.8.ebuild new file mode 100644 index 000000000000..af5783401da0 --- /dev/null +++ b/dev-python/requests-cache/requests-cache-0.9.8.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 optfeature + +HOMEPAGE=" + https://pypi.org/project/requests-cache/ + https://github.com/requests-cache/requests-cache/ +" +DESCRIPTION="Persistent cache for requests library" +SRC_URI=" + https://github.com/requests-cache/requests-cache/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/appdirs[${PYTHON_USEDEP}] + >=dev-python/cattrs-22.2[${PYTHON_USEDEP}] + >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/timeout-decorator[${PYTHON_USEDEP}] + dev-python/ujson[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # These require extra servers running + tests/integration/test_dynamodb.py + tests/integration/test_gridfs.py + tests/integration/test_mongodb.py + tests/integration/test_redis.py + ) + local EPYTEST_DESELECT=( + # Requires Internet access + tests/integration/test_compat.py::test_version_upgrade + ) + + local -x USE_PYTEST_HTTPBIN=true + epytest +} + +pkg_postinst() { + optfeature "redis backend" "dev-python/redis-py" + optfeature "MongoDB backend" "dev-python/pymongo" + + optfeature "JSON serialization" "dev-python/ujson" + optfeature "YAML serialization" "dev-python/pyyaml" + optfeature "signing serialized data" "dev-python/itsdangerous" +} -- cgit v1.2.3