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: Sun, 02 Jan 2022 11:00:00
Message-Id: 1641121155.60641dc946fabc24e443fd5846b4e6593250ac8f.mgorny@gentoo
1 commit: 60641dc946fabc24e443fd5846b4e6593250ac8f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 2 07:54:42 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 2 10:59:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60641dc9
7
8 dev-python/requests-cache: Bump to 0.9.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-0.9.0.ebuild | 67 ++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest
17 index 08d35eca973a..c0d2f653e816 100644
18 --- a/dev-python/requests-cache/Manifest
19 +++ b/dev-python/requests-cache/Manifest
20 @@ -1 +1,2 @@
21 DIST requests-cache-0.8.1.gh.tar.gz 1540290 BLAKE2B ac9d7cdaa553400484776236b13f356e4e80a7c3aa5e63563dad860302cb421b7ceeb61e80af436cf9559467c4b2cd5e8363ae05e703661b88bf3ac04601ee30 SHA512 245ee7059afab50f32af9c8831fe11c14d5bd53fe6bbf02e5844974e0e5ea6c33e005f234485f245ee418ae03277c6e2cc41046a385ff138e58785cf37b119ea
22 +DIST requests-cache-0.9.0.gh.tar.gz 1539360 BLAKE2B 9eb09e84f53dc31fdaee2e72f961bff1582fe58cf0d33285e3d291ee10615c59cb9942a5480af48d840b7d4e3bcd8a7ec3367472478333c39cde579943b1b3ba SHA512 1f4879ddae34a10f014deb31c62fbe18c3d6a30ea10823d122aec4920ea4024eaf86c0b1a6f369b71f827ee87f049a5c2dad9fabe61aa6a5a62093fb08fa4a7c
23
24 diff --git a/dev-python/requests-cache/requests-cache-0.9.0.ebuild b/dev-python/requests-cache/requests-cache-0.9.0.ebuild
25 new file mode 100644
26 index 000000000000..bf43d1b00ca4
27 --- /dev/null
28 +++ b/dev-python/requests-cache/requests-cache-0.9.0.ebuild
29 @@ -0,0 +1,67 @@
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_SETUPTOOLS=pyproject.toml
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/reclosedev/requests-cache/"
44 +DESCRIPTION="Persistent cache for requests library"
45 +SRC_URI="
46 + https://github.com/reclosedev/requests-cache/archive/v${PV}.tar.gz
47 + -> ${P}.gh.tar.gz"
48 +
49 +LICENSE="BSD"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +
53 +RDEPEND="
54 + dev-python/attrs[${PYTHON_USEDEP}]
55 + dev-python/appdirs[${PYTHON_USEDEP}]
56 + dev-python/cattrs[${PYTHON_USEDEP}]
57 + >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
58 + dev-python/urllib3[${PYTHON_USEDEP}]
59 + >=dev-python/url-normalize-1.4[${PYTHON_USEDEP}]"
60 +BDEPEND="
61 + test? (
62 + dev-python/itsdangerous[${PYTHON_USEDEP}]
63 + dev-python/pytest-httpbin[${PYTHON_USEDEP}]
64 + dev-python/requests-mock[${PYTHON_USEDEP}]
65 + dev-python/responses[${PYTHON_USEDEP}]
66 + dev-python/timeout-decorator[${PYTHON_USEDEP}]
67 + dev-python/ujson[${PYTHON_USEDEP}]
68 + )"
69 +
70 +distutils_enable_tests pytest
71 +
72 +python_test() {
73 + local EPYTEST_IGNORE=(
74 + # These require extra servers running
75 + tests/integration/test_dynamodb.py
76 + tests/integration/test_gridfs.py
77 + tests/integration/test_mongodb.py
78 + tests/integration/test_redis.py
79 + )
80 + local EPYTEST_DESELECT=(
81 + # Requires Internet access
82 + tests/integration/test_compat.py::test_version_upgrade
83 + )
84 +
85 + local -x USE_PYTEST_HTTPBIN=true
86 + epytest
87 +}
88 +
89 +pkg_postinst() {
90 + optfeature "redis backend" "dev-python/redis-py"
91 + optfeature "MongoDB backend" "dev-python/pymongo"
92 +
93 + optfeature "JSON serialization" "dev-python/ujson"
94 + optfeature "YAML serialization" "dev-python/pyyaml"
95 + optfeature "signing serialized data" "dev-python/itsdangerous"
96 +}