diff options
Diffstat (limited to 'dev-python/requests-cache')
-rw-r--r-- | dev-python/requests-cache/Manifest | 9 | ||||
-rw-r--r-- | dev-python/requests-cache/metadata.xml | 1 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.6.4.ebuild | 47 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.7.1.ebuild | 51 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.7.2.ebuild | 51 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.7.3.ebuild | 54 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.7.4.ebuild | 54 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.7.5.ebuild | 54 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.8.0.ebuild | 54 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-0.8.1.ebuild | 54 | ||||
-rw-r--r-- | dev-python/requests-cache/requests-cache-1.2.0.ebuild | 92 |
11 files changed, 94 insertions, 427 deletions
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest index d707c4a20b5a..0a170bdc4a9b 100644 --- a/dev-python/requests-cache/Manifest +++ b/dev-python/requests-cache/Manifest @@ -1,8 +1 @@ -DIST requests-cache-0.6.4.gh.tar.gz 50322 BLAKE2B c9a6cae957604bdfa6057621e028fad83476e5d918bbf9c58e73f09f8615398946f3cf6e3737c9ff916cba68d82ed66a674557fb733c74b874b0f68e2430d9a0 SHA512 31e2217e54892d8ec5fc9fcf60f650960621b1f97029c90deca925b9a1be9eb5a3ddb6ae68e581c805f20136f93eefa70d51e7e9f086ecbae76f8e550bbe3f1a -DIST requests-cache-0.7.1.gh.tar.gz 959455 BLAKE2B ce41514f21dc0708e437f70b92eb9d84f47433d04a11476cd5afefd050089e2d138213fa0b2f6bac200bd6d59db996187481ef3544d289a5117f3fe7160027b5 SHA512 cd83134ce9500c20c63fa92546cca41772ba3582a669914cd0885ec5aadf6ae4a6c4fc6a83dce73d2d5b24a80db2fde65cdb0a89b4b5703ddeac1d710404a05d -DIST requests-cache-0.7.2.gh.tar.gz 962215 BLAKE2B 0f66548b4c37c14347021a4675d0165b9f9648dc9842f1d94c9507c096f6ef359f7109f88ac369de2de263673542f42d6e4a7402449354aee900970331f87cea SHA512 1712f3568ec4c8c41988c9d2ca07e72b1a66efceb596d814219b5eb9bb0c05448ee33b4634ec39fb03634032a6bfaaf877b297be7f92f540788dba40b4c202df -DIST requests-cache-0.7.3.gh.tar.gz 1182825 BLAKE2B bc2b936f3b13388c23c344119a0ae2dc8efae3ba243e3a176ac27a7affb9b1c691e99ee88dfa61823a5c517ea898f144c7a9450867ea611c8518a0ecb3d77287 SHA512 fca494438001d14b0edce2cf93f51f65a0bf363d31bf1c70d1a4b2f214fe7bfc6f6f6fc97d21357fcfb9ab38c83d76cabe9c0ff4703171679ce509bd9f55753f -DIST requests-cache-0.7.4.gh.tar.gz 1254975 BLAKE2B f0df6ac156665f8eed8850e153bfa3738d8c6677ff1613a54fcbf3208861c590e5e0ede3d5c30eeda36dcd709390402a020e03a0180e701e0751c5c982903a35 SHA512 684a3182135b6a31816629c8b4a174b52a629e964a5862573df1ac6e9e9b5cb807d1661a3a6daf8cc4b2a0f6778bd780d822a2f6c409242aa090c6565adf0aab -DIST requests-cache-0.7.5.gh.tar.gz 1254930 BLAKE2B 7dec609d8e5d5570247bc45c33763bc35006104082235575feb336d1d386a36d18ef1e4403703aa532bc5c8e1f7cf4f741aa91bb94be4bd1fd85fe7cc9adb9b1 SHA512 656791e54f7c8dfd6518054434aa4dd03e5ce027fb36b38675d99284536abefb11883f53c6ec2f11e3f8efb473f0d1e9cede100eac82005ee023b7778848f588 -DIST requests-cache-0.8.0.gh.tar.gz 1642151 BLAKE2B e341707b2473438a8c4155350bce3e0fc712537692991e23965aa6504e8eed735caae8b103896bd324882a8f73f13f36b23b329c3c155864c1b7665c6bcc4e2a SHA512 b9f1769f70b33f128aacf05a2251f9d2511649a4e80cb702c14ac3fcbfaf72d1049a5792a295286b6969985320a0d5a87ef81bfe3bacbbc200042ba51889b7ea -DIST requests-cache-0.8.1.gh.tar.gz 1540290 BLAKE2B ac9d7cdaa553400484776236b13f356e4e80a7c3aa5e63563dad860302cb421b7ceeb61e80af436cf9559467c4b2cd5e8363ae05e703661b88bf3ac04601ee30 SHA512 245ee7059afab50f32af9c8831fe11c14d5bd53fe6bbf02e5844974e0e5ea6c33e005f234485f245ee418ae03277c6e2cc41046a385ff138e58785cf37b119ea +DIST requests-cache-1.2.0.gh.tar.gz 3057187 BLAKE2B 135d39d8fac1e123c71b07b30002b980b5fdcdb586cafb310f8f72e865cdc97f62b699cd981068207c6f020deef595469801d440cf5034566e9618385d569437 SHA512 b198d282cfd656c432d3a63f4d615191ac1ff97c9563e9bd6945e7a78444601108beb47a0f4a79740c7bd6942c3753f025cd52457e87ece7964229799bbb8fa1 diff --git a/dev-python/requests-cache/metadata.xml b/dev-python/requests-cache/metadata.xml index 809ce0ce78ae..dc99a675de0c 100644 --- a/dev-python/requests-cache/metadata.xml +++ b/dev-python/requests-cache/metadata.xml @@ -11,6 +11,7 @@ </maintainer> <stabilize-allarches/> <upstream> + <remote-id type="github">requests-cache/requests-cache</remote-id> <remote-id type="pypi">requests-cache</remote-id> </upstream> </pkgmetadata> diff --git a/dev-python/requests-cache/requests-cache-0.6.4.ebuild b/dev-python/requests-cache/requests-cache-0.6.4.ebuild deleted file mode 100644 index 2a55fc474fba..000000000000 --- a/dev-python/requests-cache/requests-cache-0.6.4.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..9} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 x86" - -RDEPEND=" - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local skipped_tests=( - # 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 -x USE_PYTEST_HTTPBIN=true - epytest ${skipped_tests[@]/#/--deselect } -} diff --git a/dev-python/requests-cache/requests-cache-0.7.1.ebuild b/dev-python/requests-cache/requests-cache-0.7.1.ebuild deleted file mode 100644 index 32b48e1d7368..000000000000 --- a/dev-python/requests-cache/requests-cache-0.7.1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..9} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local skipped_tests=( - # 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 - # Requires Internet access - tests/integration/test_compat.py::test_version_upgrade - ) - - local -x USE_PYTEST_HTTPBIN=true - epytest ${skipped_tests[@]/#/--deselect } -} diff --git a/dev-python/requests-cache/requests-cache-0.7.2.ebuild b/dev-python/requests-cache/requests-cache-0.7.2.ebuild deleted file mode 100644 index 32b48e1d7368..000000000000 --- a/dev-python/requests-cache/requests-cache-0.7.2.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..9} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local skipped_tests=( - # 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 - # Requires Internet access - tests/integration/test_compat.py::test_version_upgrade - ) - - local -x USE_PYTEST_HTTPBIN=true - epytest ${skipped_tests[@]/#/--deselect } -} diff --git a/dev-python/requests-cache/requests-cache-0.7.3.ebuild b/dev-python/requests-cache/requests-cache-0.7.3.ebuild deleted file mode 100644 index db97940e2622..000000000000 --- a/dev-python/requests-cache/requests-cache-0.7.3.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local 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 deselect=( - # Requires Internet access - tests/integration/test_compat.py::test_version_upgrade - ) - - local -x USE_PYTEST_HTTPBIN=true - epytest ${deselect[@]/#/--deselect } ${ignore[@]/#/--ignore } -} diff --git a/dev-python/requests-cache/requests-cache-0.7.4.ebuild b/dev-python/requests-cache/requests-cache-0.7.4.ebuild deleted file mode 100644 index 0c8b4192cde2..000000000000 --- a/dev-python/requests-cache/requests-cache-0.7.4.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -python_test() { - local 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 deselect=( - # Requires Internet access - tests/integration/test_compat.py::test_version_upgrade - ) - - local -x USE_PYTEST_HTTPBIN=true - epytest ${deselect[@]/#/--deselect } ${ignore[@]/#/--ignore } -} diff --git a/dev-python/requests-cache/requests-cache-0.7.5.ebuild b/dev-python/requests-cache/requests-cache-0.7.5.ebuild deleted file mode 100644 index 61afa9af0454..000000000000 --- a/dev-python/requests-cache/requests-cache-0.7.5.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${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 -} diff --git a/dev-python/requests-cache/requests-cache-0.8.0.ebuild b/dev-python/requests-cache/requests-cache-0.8.0.ebuild deleted file mode 100644 index 61afa9af0454..000000000000 --- a/dev-python/requests-cache/requests-cache-0.8.0.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${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 -} diff --git a/dev-python/requests-cache/requests-cache-0.8.1.ebuild b/dev-python/requests-cache/requests-cache-0.8.1.ebuild deleted file mode 100644 index 61afa9af0454..000000000000 --- a/dev-python/requests-cache/requests-cache-0.8.1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="sqlite" - -inherit distutils-r1 - -HOMEPAGE=" - https://pypi.org/project/requests-cache/ - https://github.com/reclosedev/requests-cache/" -DESCRIPTION="Persistent cache for requests library" -SRC_URI=" - https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/cattrs[${PYTHON_USEDEP}] - dev-python/itsdangerous[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/pytest-httpbin[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/timeout-decorator[${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 -} diff --git a/dev-python/requests-cache/requests-cache-1.2.0.ebuild b/dev-python/requests-cache/requests-cache-1.2.0.ebuild new file mode 100644 index 000000000000..cd7fa8425059 --- /dev/null +++ b/dev-python/requests-cache/requests-cache-1.2.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( pypy3 python3_{10..12} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 optfeature + +DESCRIPTION="Persistent cache for requests library" +HOMEPAGE=" + https://pypi.org/project/requests-cache/ + https://github.com/requests-cache/requests-cache/ +" +SRC_URI=" + https://github.com/requests-cache/requests-cache/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/cattrs-22.2[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.5[${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/rich-10.0[${PYTHON_USEDEP}] + dev-python/timeout-decorator[${PYTHON_USEDEP}] + >=dev-python/ujson-5.4[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/time-machine[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +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_upgrade.py::test_version_upgrade + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # "database is locked", upstream probably relies on GC + # too much + tests/integration/test_sqlite.py + ) + ;; + python3.12) + # https://github.com/requests-cache/requests-cache/issues/845 + EPYTEST_DESELECT+=( + tests/integration/test_memory.py::TestMemoryCache::test_response_no_duplicate_read + tests/integration/test_sqlite.py::TestSQLiteCache::test_concurrency + ) + ;; + esac + + local -x USE_PYTEST_HTTPBIN=true + epytest +} + +pkg_postinst() { + optfeature "redis backend" "dev-python/redis" + 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" +} |