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/vcrpy/
Date: Sat, 01 Aug 2020 10:09:54
Message-Id: 1596276577.fd0cff429d9cf6593aca279368dc61dd66f601d1.mgorny@gentoo
1 commit: fd0cff429d9cf6593aca279368dc61dd66f601d1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 07:57:58 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 10:09:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd0cff42
7
8 dev-python/vcrpy: Bump to 4.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/vcrpy/Manifest | 1 +
13 dev-python/vcrpy/vcrpy-4.1.0.ebuild | 50 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest
17 index 899e2bb966f..f40e6e3a54e 100644
18 --- a/dev-python/vcrpy/Manifest
19 +++ b/dev-python/vcrpy/Manifest
20 @@ -1 +1,2 @@
21 DIST vcrpy-4.0.2.tar.gz 324196 BLAKE2B 8910ba40bd56c7836a92c120c480e633063c78beb1d7c4dcfffb6180135cf0e28586410307ba3e19b3fa484a72a176dbf877f781ade7bae7c81110fde2eedd32 SHA512 17eebc9574ff14f97ad200b99c50b0440a93fbf38afe8ad95f443370d84c43177ac55ab655ffea7e7985b0cd76124eff3c394898e71a0ba0c434014f07e526f9
22 +DIST vcrpy-4.1.0.tar.gz 330122 BLAKE2B a7a2516d4dfcc01da801fb8685ea3b56f50ce474d35477ae36785ea1bfbae113bd3c18fb3faadb13fc81c37fa1d282a84bc60fdd27f4fc4a1f3e952312d7bc5f SHA512 7ad5517cd52f6f31448db9b608d8a7b274741727487ede21b7f80e4060e3ddbb34c731166f67ae7136c86a8d3e7fd23128e035a148f18f771066bfa71319624f
23
24 diff --git a/dev-python/vcrpy/vcrpy-4.1.0.ebuild b/dev-python/vcrpy/vcrpy-4.1.0.ebuild
25 new file mode 100644
26 index 00000000000..75f41168529
27 --- /dev/null
28 +++ b/dev-python/vcrpy/vcrpy-4.1.0.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6..9} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing"
40 +HOMEPAGE="https://github.com/kevin1024/vcrpy"
41 +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
47 +
48 +RDEPEND="
49 + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
50 + dev-python/pyyaml[${PYTHON_USEDEP}]
51 + dev-python/requests[${PYTHON_USEDEP}]
52 + >=dev-python/six-1.5[${PYTHON_USEDEP}]
53 + dev-python/urllib3[${PYTHON_USEDEP}]
54 + dev-python/wrapt[${PYTHON_USEDEP}]
55 + dev-python/yarl[${PYTHON_USEDEP}]
56 + "
57 +BDEPEND="
58 + test? (
59 + dev-python/pytest-httpbin[${PYTHON_USEDEP}]
60 + )"
61 +
62 +distutils_enable_tests pytest
63 +
64 +src_prepare() {
65 + # tests requiring Internet
66 + rm tests/integration/test_aiohttp.py || die
67 + sed -e 's:test_flickr_should_respond_with_200:_&:' \
68 + -e 's:test_amazon_doctype:_&:' \
69 + -i tests/integration/test_wild.py || die
70 + sed -e 's:testing_connect:_&:' \
71 + -i tests/unit/test_stubs.py || die
72 +
73 + distutils-r1_src_prepare
74 +}
75 +
76 +python_test() {
77 + local -x REQUESTS_CA_BUNDLE=$("${EPYTHON}" -m pytest_httpbin.certs)
78 + pytest -vv || die "Tests fail with ${EPYTHON}"
79 +}