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 ED54E138350 for ; Thu, 19 Mar 2020 13:25:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60F03E0CD0; Thu, 19 Mar 2020 13:25:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 33D7FE0CD0 for ; Thu, 19 Mar 2020 13:25:37 +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 695A434F254 for ; Thu, 19 Mar 2020 13:25:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A13C21A2 for ; Thu, 19 Mar 2020 13:25:32 +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: <1584624328.4dc2a74f3f2fc69907f5faa913e22385126d09b7.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.0.2.ebuild X-VCS-Directories: dev-python/vcrpy/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4dc2a74f3f2fc69907f5faa913e22385126d09b7 X-VCS-Branch: master Date: Thu, 19 Mar 2020 13:25:32 +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: 717eeb4b-285d-4180-9083-15b192d66d38 X-Archives-Hash: 0efbc6e3fef2b5e74bfcfedb722b5ad7 commit: 4dc2a74f3f2fc69907f5faa913e22385126d09b7 Author: Michał Górny gentoo org> AuthorDate: Thu Mar 19 13:21:45 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Mar 19 13:25:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dc2a74f dev-python/vcrpy: Bump to 4.0.2, py3.{7,8} Signed-off-by: Michał Górny gentoo.org> dev-python/vcrpy/Manifest | 1 + dev-python/vcrpy/vcrpy-4.0.2.ebuild | 50 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest index 06628019287..2f7f74270b2 100644 --- a/dev-python/vcrpy/Manifest +++ b/dev-python/vcrpy/Manifest @@ -1,2 +1,3 @@ DIST vcrpy-1.11.1.tar.gz 63122 BLAKE2B da0fabb1eb342eb268923bcf433ac108d06fc111714834e99d9364358064ad0814bff1463f49bea60c59fe901c46fc8b78c4129e9bb4ab6736266f18b3bdf272 SHA512 d883b87d5b3017843dfc2e33241953ada27d50ffda4936ba4326a392acb9c7667474abd054d6e44b0208096cd96b68e87ec9780c0d6fab77369cc4e517617395 DIST vcrpy-1.12.0.tar.gz 326731 BLAKE2B a0fd5aa3fea1bef336f0864a6d89e7025d2394f89af23ac9a3ed61430c85b9a46584c528398a03debcce646767bd85328360513476bc89ca067e705767fe85fd SHA512 c47d50cd399fa11eb6fd1d210b056ef9768e501799a9774f7338370177754e35b9a9ee43ff5cb7f1f43073624f9011cc1ca230dbdf317c1bccd0ec6b506c61e0 +DIST vcrpy-4.0.2.tar.gz 324196 BLAKE2B 8910ba40bd56c7836a92c120c480e633063c78beb1d7c4dcfffb6180135cf0e28586410307ba3e19b3fa484a72a176dbf877f781ade7bae7c81110fde2eedd32 SHA512 17eebc9574ff14f97ad200b99c50b0440a93fbf38afe8ad95f443370d84c43177ac55ab655ffea7e7985b0cd76124eff3c394898e71a0ba0c434014f07e526f9 diff --git a/dev-python/vcrpy/vcrpy-4.0.2.ebuild b/dev-python/vcrpy/vcrpy-4.0.2.ebuild new file mode 100644 index 00000000000..72dfdfb7b51 --- /dev/null +++ b/dev-python/vcrpy/vcrpy-4.0.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +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="~amd64 ~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 + 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}" +}