1 |
commit: 1824d315ac02567c761572fe76be2b431cf6d4a6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 2 04:25:28 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 2 04:29:36 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1824d315 |
7 |
|
8 |
dev-python/requests-cache: Bump to 1.0.0 |
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-1.0.0.ebuild | 71 ++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest |
17 |
index 146f525a7f5f..c2b4ab0b6a2e 100644 |
18 |
--- a/dev-python/requests-cache/Manifest |
19 |
+++ b/dev-python/requests-cache/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST requests-cache-0.9.8.gh.tar.gz 1540296 BLAKE2B 8b2ab1227b28c3822cd9111375c8759f5d7099f2724680a6560e4e14cd16558a1dcb8dd98d043fdf2f9a3861d76dd0d2c2f84df059338e9fa28c1257e74e87b9 SHA512 f428a7b498d2ef2b6c23d3715bac2274c320b6f9d6f56017e69ab5fa6b8830242a2f335ed6c3758a741a51f108c6dacae1a447ff8f05ca5686303caf48a1dc59 |
22 |
+DIST requests-cache-1.0.0.gh.tar.gz 2914633 BLAKE2B 5402d3b6bc99bb0b72a484854b83450d8f57fd0aff39661d6f2452c69cc0ca9b140fd2ac7b02110e47bcc0bf2497c58912330d7472b9f1701b8d4e2a54f7cef7 SHA512 92d6e1b9afb158f824a4b20d83c7b30a5988476b741213b0663df6095df1753da2dcd6516372ba383864e19d346850a356e9370b2ae27554effcc3f0b6a078c8 |
23 |
|
24 |
diff --git a/dev-python/requests-cache/requests-cache-1.0.0.ebuild b/dev-python/requests-cache/requests-cache-1.0.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..8e51d738f7ff |
27 |
--- /dev/null |
28 |
+++ b/dev-python/requests-cache/requests-cache-1.0.0.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=poetry |
36 |
+PYTHON_COMPAT=( python3_{9..11} ) |
37 |
+PYTHON_REQ_USE="sqlite" |
38 |
+ |
39 |
+inherit distutils-r1 optfeature |
40 |
+ |
41 |
+HOMEPAGE=" |
42 |
+ https://pypi.org/project/requests-cache/ |
43 |
+ https://github.com/requests-cache/requests-cache/ |
44 |
+" |
45 |
+DESCRIPTION="Persistent cache for requests library" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/requests-cache/requests-cache/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/cattrs-22.2[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/platformdirs-2.5[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] |
60 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ dev-python/itsdangerous[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}] |
67 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/responses[${PYTHON_USEDEP}] |
69 |
+ dev-python/timeout-decorator[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/ujson-5.4[${PYTHON_USEDEP}] |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+distutils_enable_tests pytest |
75 |
+ |
76 |
+python_test() { |
77 |
+ local EPYTEST_IGNORE=( |
78 |
+ # These require extra servers running |
79 |
+ tests/integration/test_dynamodb.py |
80 |
+ tests/integration/test_gridfs.py |
81 |
+ tests/integration/test_mongodb.py |
82 |
+ tests/integration/test_redis.py |
83 |
+ ) |
84 |
+ local EPYTEST_DESELECT=( |
85 |
+ # Requires Internet access |
86 |
+ tests/integration/test_upgrade.py::test_version_upgrade |
87 |
+ ) |
88 |
+ |
89 |
+ local -x USE_PYTEST_HTTPBIN=true |
90 |
+ epytest |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ optfeature "redis backend" "dev-python/redis" |
95 |
+ optfeature "MongoDB backend" "dev-python/pymongo" |
96 |
+ |
97 |
+ optfeature "JSON serialization" "dev-python/ujson" |
98 |
+ optfeature "YAML serialization" "dev-python/pyyaml" |
99 |
+ optfeature "signing serialized data" "dev-python/itsdangerous" |
100 |
+} |