From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1FB6113835B for ; Sat, 10 Oct 2020 05:55:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C19BE08BB; Sat, 10 Oct 2020 05:55:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30DD6E08BB for ; Sat, 10 Oct 2020 05:55:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 56DD7340E10 for ; Sat, 10 Oct 2020 05:55:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85D963A0 for ; Sat, 10 Oct 2020 05:54:59 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1602309231.c0385de165ccbecafe4c0fac6945127923f05d09.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/vcrpy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/vcrpy/Manifest dev-python/vcrpy/vcrpy-4.1.1.ebuild X-VCS-Directories: dev-python/vcrpy/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c0385de165ccbecafe4c0fac6945127923f05d09 X-VCS-Branch: master Date: Sat, 10 Oct 2020 05:54:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b2ca4cbf-1350-4f28-80c0-51ddba1136ec X-Archives-Hash: af049ba5c03b2e6e09f08d6c01d075ee commit: c0385de165ccbecafe4c0fac6945127923f05d09 Author: Michał Górny gentoo org> AuthorDate: Sat Oct 10 05:33:16 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Oct 10 05:53:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0385de1 dev-python/vcrpy: Bump to 4.1.1 Signed-off-by: Michał Górny gentoo.org> dev-python/vcrpy/Manifest | 1 + dev-python/vcrpy/vcrpy-4.1.1.ebuild | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest index 7b8263e40cd..689c02bcb00 100644 --- a/dev-python/vcrpy/Manifest +++ b/dev-python/vcrpy/Manifest @@ -1 +1,2 @@ DIST vcrpy-4.1.0.tar.gz 330122 BLAKE2B a7a2516d4dfcc01da801fb8685ea3b56f50ce474d35477ae36785ea1bfbae113bd3c18fb3faadb13fc81c37fa1d282a84bc60fdd27f4fc4a1f3e952312d7bc5f SHA512 7ad5517cd52f6f31448db9b608d8a7b274741727487ede21b7f80e4060e3ddbb34c731166f67ae7136c86a8d3e7fd23128e035a148f18f771066bfa71319624f +DIST vcrpy-4.1.1.tar.gz 329508 BLAKE2B b6981150a8fd742301e0d7897d84855c741c97307bbb5c5751680f3d33d69d6333a18d714fcc14cb018f5dd6c02e840e1313136660c4459e2755d448fc0b07e9 SHA512 afa1904bff37bfd2d278ed49fa3982a357eb6bb113818b532044da0f11a9dd877cc152d7f0d81d88bdc0f870521b1241f6aecf959f668211904e3c6c7cea4ad8 diff --git a/dev-python/vcrpy/vcrpy-4.1.1.ebuild b/dev-python/vcrpy/vcrpy-4.1.1.ebuild new file mode 100644 index 00000000000..e28175b7cb1 --- /dev/null +++ b/dev-python/vcrpy/vcrpy-4.1.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 + +DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing" +HOMEPAGE="https://github.com/kevin1024/vcrpy" +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] + dev-python/yarl[${PYTHON_USEDEP}] + " +BDEPEND=" + test? ( + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +src_prepare() { + # tests requiring Internet + rm tests/integration/test_aiohttp.py || die + rm tests/integration/test_boto.py || die + sed -e 's:test_flickr_should_respond_with_200:_&:' \ + -e 's:test_amazon_doctype:_&:' \ + -i tests/integration/test_wild.py || die + sed -e 's:testing_connect:_&:' \ + -i tests/unit/test_stubs.py || die + + distutils-r1_src_prepare +} + +python_test() { + local -x REQUESTS_CA_BUNDLE=$("${EPYTHON}" -m pytest_httpbin.certs) + pytest -vv || die "Tests fail with ${EPYTHON}" +}