summaryrefslogtreecommitdiff
path: root/dev-python/requests-cache
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-python/requests-cache
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-python/requests-cache')
-rw-r--r--dev-python/requests-cache/Manifest9
-rw-r--r--dev-python/requests-cache/files/requests-cache-0.6.0-test-install.patch25
-rw-r--r--dev-python/requests-cache/requests-cache-0.6.0.ebuild69
-rw-r--r--dev-python/requests-cache/requests-cache-0.6.1.ebuild50
-rw-r--r--dev-python/requests-cache/requests-cache-0.6.2.ebuild50
-rw-r--r--dev-python/requests-cache/requests-cache-0.6.3.ebuild47
6 files changed, 250 insertions, 0 deletions
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest
index 078dd7db89ee..befbb339daaf 100644
--- a/dev-python/requests-cache/Manifest
+++ b/dev-python/requests-cache/Manifest
@@ -1,3 +1,12 @@
+AUX requests-cache-0.6.0-test-install.patch 705 BLAKE2B b472ac6cbc27ed813e39a45ecb407a88d7942816290afd0b527f6926c1f50ae1edc2d919805fd6d84fd8ccae8a5c581909be5a97e806dedca3c38641cc32d5c0 SHA512 6faa08a94500559d3cf4f4eea3bb963215973587766426e2b8f0494398da9731421e3452478d0c1f5042f2abf91918030af042ee673b9c2c300daa2ca0c3822d
DIST requests-cache-0.5.2.tar.gz 31159 BLAKE2B 4fca146a751064baf70954a71df64dbb7f8c9a4e27fec5dbea3620496ce78e7ccfb3785fb63705f513ff6fa938376b0c6acc4a2f584856060b1bc8388517df46 SHA512 355cc571a46b768615606a907a69ed065b3c4b5e74bb6c311abc7a28d9406f32fdea1db0dfd2b1c32dcdc82ed817ef7e0b30086c069de57307254617604c5177
+DIST requests-cache-0.6.0.tar.gz 52342 BLAKE2B 12af89721fcf1ae2e4ab14d7ac377f119ef312c64d3b9e5d80a36f26f3a9a798cf090835ee2c9bf886d0baa9b472f4c439d5a032573d442feecbbad930c239fd SHA512 b5b32b9cb99ec51cee67defde715df66b7c50a26f4124cbaf893685048fe188af0cf664232150e3b4fafe3b7a927716966efafadd711be01118d67ad802acef6
+DIST requests-cache-0.6.1.gh.tar.gz 47919 BLAKE2B 022fd94a332feae043cf646cefc368fdb6ca1833dcd58621a07425bfb0d7bcb5ff9913c8b53f2bc0769fd23e8f364c437ee10f16fd37d1d340e8c46bcba9d53e SHA512 f8bea03b05b2f1e55fe6c975b5f5caacff55250d81f41cf953052c77101fc726ff39f9d95e1fd2829ddb59215226026bdddfd93918feb478395375ac0e0a4439
+DIST requests-cache-0.6.2.gh.tar.gz 47962 BLAKE2B f0597f3c5f4a678b94f3b15023e3aba5247de3d79043e7e1cbd4ab0f2d4457e2f5feab130665129ae87baba56576312b1420ae16c2a34b44dc780bf05351615c SHA512 c97119127b1e80e6eec02938b2e0e8de785875f46d348215e05ee2d668feb77ed40f0dad4ed4a3ae53fb8e6708c8d7b13788e54694a38cef3ce22e83f13f97e2
+DIST requests-cache-0.6.3.gh.tar.gz 50303 BLAKE2B e8507a19f3883c050e1d819bf9ce8ebf720a5c6517e4004ecf745f5a197a8feac9cbca18ffa99001be0baffbad41d2ebfba5b63d90b55eda1d754d279242bbc6 SHA512 1fa801f60623dce0a5cd834272a74acf80b6ae52a602ae81fbd7e3653467800d9a58fb8220e30d53ef1b896aa01f2017f93dcbc2dacfd685ee9ae286f47077f5
EBUILD requests-cache-0.5.2.ebuild 2832 BLAKE2B 1bae66755831dbdf4cacd154a8e40f74106f16f7ee6fe3561dc61449ac05e2a82b484d4b17c7926eec61e5b98c6c83ee466001a1cda6ed48526fee10eedda1f8 SHA512 a37ea9debd607221555025b1c5903aea17087479fa96f864b2aefd8bcaf22cade7c7fbb9b0492f37012b2b37299fa0759da780b6b6f0e30cf2addeb43c8efefb
+EBUILD requests-cache-0.6.0.ebuild 1576 BLAKE2B c487b01fa9a3b0860ce48e86937bb6436dfa731f9c18b2bcc4756aa50f7a5dfe18e97bca9cbce5b1c96368b428732a6ae14cda59bcd10bb2bf5577cc048b2161 SHA512 38f123c0cf41875d9715c0da1c97010108f841d76e1eea46c2f20a336981b6656f74c2e1ff9228eaae909eb19a6c8d60e1603459881807e0793a556b857d037f
+EBUILD requests-cache-0.6.1.ebuild 1207 BLAKE2B e764b58783d8317ae8264304474be09676f2cc035902ebd880f0115efb9781abea921eb30c9d9df550c69d8e2589e608a077b6a31f31b3a0924e6ed606316289 SHA512 30f15bf454d2bac61f6b6524c24a5bbc7638f8718d4d8fd8ad4b8e7fce3ac7aea3311727b4099459564b6e2099237a961d0b409a469c8da060256ce5dcff9194
+EBUILD requests-cache-0.6.2.ebuild 1207 BLAKE2B e764b58783d8317ae8264304474be09676f2cc035902ebd880f0115efb9781abea921eb30c9d9df550c69d8e2589e608a077b6a31f31b3a0924e6ed606316289 SHA512 30f15bf454d2bac61f6b6524c24a5bbc7638f8718d4d8fd8ad4b8e7fce3ac7aea3311727b4099459564b6e2099237a961d0b409a469c8da060256ce5dcff9194
+EBUILD requests-cache-0.6.3.ebuild 1127 BLAKE2B d9a629f38db64f86a368f31ee94cbc3624a47aa42fc2b3cc960c9fb775540b509f0140cd74e4f21a54b2b87ebb5667087875d64c38e7195876bd6c8225de288e SHA512 39e963417bb36bf6849b0ac0e54255f42594af43510d568e15e60a46228ecdc74dad134cdc7ce1784d7d46fd06633cadd8920ec554ad8520f1e91c1cf84870a2
MISC metadata.xml 469 BLAKE2B 7a0fbb271ec0f40665d6fbce539cb49a818f5f3876642c7d9d721566fac8fa81b0f39f4a2ce6b2b0884b6c2ea79a1bbf8c95d2f86c75372725dbc53757f0154b SHA512 6485eecd67956b0ad5eaaad22c5e68e9bc9acaf0330aca6c3c0a378b5153ecc7a086fac08e9932d03ea4ff6448c63958fc8faeabefd4c68140f44b0fda0f31f5
diff --git a/dev-python/requests-cache/files/requests-cache-0.6.0-test-install.patch b/dev-python/requests-cache/files/requests-cache-0.6.0-test-install.patch
new file mode 100644
index 000000000000..3862716c3016
--- /dev/null
+++ b/dev-python/requests-cache/files/requests-cache-0.6.0-test-install.patch
@@ -0,0 +1,25 @@
+From 430424bf43ad1f5979adbb2eabdbb23726465fde Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 10 Apr 2021 10:56:39 +0200
+Subject: [PATCH] Do not install "tests" package
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 5ca5b80..58d8e89 100644
+--- a/setup.py
++++ b/setup.py
+@@ -40,7 +40,7 @@ extras_require['dev'] = list(chain.from_iterable(extras_require.values()))
+
+ setup(
+ name='requests-cache',
+- packages=find_packages(),
++ packages=find_packages(exclude=['tests*']),
+ version=__version__,
+ author='Roman Haritonov',
+ author_email='reclosedev@gmail.com',
+--
+2.31.1
+
diff --git a/dev-python/requests-cache/requests-cache-0.6.0.ebuild b/dev-python/requests-cache/requests-cache-0.6.0.ebuild
new file mode 100644
index 000000000000..28591398044e
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.6.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..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/itsdangerous[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
+ >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ $(python_gen_any_dep '
+ dev-python/httpbin[${PYTHON_USEDEP}]
+ www-servers/gunicorn[${PYTHON_USEDEP}]
+ ')
+ )"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+PATCHES=(
+ "${FILESDIR}"/${P}-test-install.patch
+)
+
+python_check_deps() {
+ use test || return 0
+
+ has_version -b "dev-python/httpbin[${PYTHON_USEDEP}]" &&
+ has_version -b "www-servers/gunicorn[${PYTHON_USEDEP}]"
+}
+
+src_test() {
+ local hostport="127.0.0.1:23125"
+ python_setup
+ einfo "Starting httpbin on ${hostport}"
+ gunicorn -b "${hostport}" -D -p gunicorn.pid httpbin:app || die
+
+ local -x HTTPBIN_URL="http://${hostport}/"
+ distutils-r1_src_test
+ kill $(<gunicorn.pid) || die
+}
+
+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
+
+ # TODO
+ 'tests/integration/test_cache.py::test_all_response_formats[json]'
+ )
+
+ epytest ${skipped_tests[@]/#/--deselect }
+}
diff --git a/dev-python/requests-cache/requests-cache-0.6.1.ebuild b/dev-python/requests-cache/requests-cache-0.6.1.ebuild
new file mode 100644
index 000000000000..dd9fdcadae1e
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.6.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..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/timeout-decorator[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_sphinx docs
+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
+
+ # TODO
+# 'tests/integration/test_cache.py::test_all_response_formats[json]'
+ )
+
+ local -x USE_PYTEST_HTTPBIN=true
+ epytest ${skipped_tests[@]/#/--deselect }
+}
diff --git a/dev-python/requests-cache/requests-cache-0.6.2.ebuild b/dev-python/requests-cache/requests-cache-0.6.2.ebuild
new file mode 100644
index 000000000000..dd9fdcadae1e
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.6.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..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/timeout-decorator[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_sphinx docs
+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
+
+ # TODO
+# 'tests/integration/test_cache.py::test_all_response_formats[json]'
+ )
+
+ local -x USE_PYTEST_HTTPBIN=true
+ epytest ${skipped_tests[@]/#/--deselect }
+}
diff --git a/dev-python/requests-cache/requests-cache-0.6.3.ebuild b/dev-python/requests-cache/requests-cache-0.6.3.ebuild
new file mode 100644
index 000000000000..a4941ae73367
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.6.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..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/timeout-decorator[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_sphinx docs
+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 }
+}