1 |
commit: 15784871097863e8230f0634f575a03ad7164f23 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 22 06:53:00 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 22 07:25:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15784871 |
7 |
|
8 |
dev-python/requests-cache: Bump to 0.7.2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/requests-cache/Manifest | 1 + |
13 |
.../requests-cache/requests-cache-0.7.2.ebuild | 51 ++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest |
17 |
index 7263f500970..2a19afcb44f 100644 |
18 |
--- a/dev-python/requests-cache/Manifest |
19 |
+++ b/dev-python/requests-cache/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST requests-cache-0.6.4.gh.tar.gz 50322 BLAKE2B c9a6cae957604bdfa6057621e028fad83476e5d918bbf9c58e73f09f8615398946f3cf6e3737c9ff916cba68d82ed66a674557fb733c74b874b0f68e2430d9a0 SHA512 31e2217e54892d8ec5fc9fcf60f650960621b1f97029c90deca925b9a1be9eb5a3ddb6ae68e581c805f20136f93eefa70d51e7e9f086ecbae76f8e550bbe3f1a |
22 |
DIST requests-cache-0.7.1.gh.tar.gz 959455 BLAKE2B ce41514f21dc0708e437f70b92eb9d84f47433d04a11476cd5afefd050089e2d138213fa0b2f6bac200bd6d59db996187481ef3544d289a5117f3fe7160027b5 SHA512 cd83134ce9500c20c63fa92546cca41772ba3582a669914cd0885ec5aadf6ae4a6c4fc6a83dce73d2d5b24a80db2fde65cdb0a89b4b5703ddeac1d710404a05d |
23 |
+DIST requests-cache-0.7.2.gh.tar.gz 962215 BLAKE2B 0f66548b4c37c14347021a4675d0165b9f9648dc9842f1d94c9507c096f6ef359f7109f88ac369de2de263673542f42d6e4a7402449354aee900970331f87cea SHA512 1712f3568ec4c8c41988c9d2ca07e72b1a66efceb596d814219b5eb9bb0c05448ee33b4634ec39fb03634032a6bfaaf877b297be7f92f540788dba40b4c202df |
24 |
|
25 |
diff --git a/dev-python/requests-cache/requests-cache-0.7.2.ebuild b/dev-python/requests-cache/requests-cache-0.7.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..32b48e1d736 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/requests-cache/requests-cache-0.7.2.ebuild |
30 |
@@ -0,0 +1,51 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml |
37 |
+PYTHON_COMPAT=( python3_{8..9} ) |
38 |
+PYTHON_REQ_USE="sqlite" |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/requests-cache/ |
44 |
+ https://github.com/reclosedev/requests-cache/" |
45 |
+DESCRIPTION="Persistent cache for requests library" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-python/cattrs[${PYTHON_USEDEP}] |
56 |
+ dev-python/itsdangerous[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]" |
59 |
+BDEPEND=" |
60 |
+ test? ( |
61 |
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
62 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
63 |
+ dev-python/timeout-decorator[${PYTHON_USEDEP}] |
64 |
+ )" |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+python_test() { |
69 |
+ local skipped_tests=( |
70 |
+ # These require extra servers running |
71 |
+ tests/integration/test_dynamodb.py |
72 |
+ tests/integration/test_gridfs.py |
73 |
+ tests/integration/test_mongodb.py |
74 |
+ tests/integration/test_redis.py |
75 |
+ # Requires Internet access |
76 |
+ tests/integration/test_compat.py::test_version_upgrade |
77 |
+ ) |
78 |
+ |
79 |
+ local -x USE_PYTEST_HTTPBIN=true |
80 |
+ epytest ${skipped_tests[@]/#/--deselect } |
81 |
+} |