Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests-cache/
Date: Fri, 02 Sep 2022 17:37:51
Message-Id: 1662140261.a1902ecc66deaadf56e69d61efbfa71b0ff4d86b.mgorny@gentoo
1 commit: a1902ecc66deaadf56e69d61efbfa71b0ff4d86b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 2 16:35:45 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 2 17:37:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1902ecc
7
8 dev-python/requests-cache: Bump to 0.9.6
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.9.6.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 d2c56a578588..2e70c231f85e 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.5.gh.tar.gz 1542034 BLAKE2B 01996e7536ce967dee2b909091d1eb08501b3882b6171a5460b2196666eed848dec89a85ef8ea0c892b2fd153f90107948239de04b973e7766d3acfad7b10059 SHA512 de1481ff609f3ff36ed662d986fb86a500a8d26755832478a9a4396f2c71934b5f65540137b92365eb36f66087b3fbc1cd72c63d37546d09c86bbee7340fd8eb
22 +DIST requests-cache-0.9.6.gh.tar.gz 1514642 BLAKE2B 1b098b14a677976b1e767e63b8b5f6c1a3e89b5023b6150f0d186aefe0dad14ad9999e1b036b436759ec4b27b6663159d2a8538dbf99a9017c18a34f0c117d94 SHA512 88e4745bed278224ccd1eb815a4f9da84051bab79c43122fa97899c3a8ad87ad7bfd929f87680eb6f73b1ff14267d2519afd9ef8815f10597769cab8ada7f8b5
23
24 diff --git a/dev-python/requests-cache/requests-cache-0.9.6.ebuild b/dev-python/requests-cache/requests-cache-0.9.6.ebuild
25 new file mode 100644
26 index 000000000000..5f7e2eced4f4
27 --- /dev/null
28 +++ b/dev-python/requests-cache/requests-cache-0.9.6.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2022 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_{8..10} )
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/appdirs[${PYTHON_USEDEP}]
58 + dev-python/cattrs[${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[${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_compat.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-py"
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 +}