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 8F2CD1382C5 for ; Wed, 6 Jan 2021 10:00:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C82F5E08BF; Wed, 6 Jan 2021 10:00:54 +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 AF0CBE08BF for ; Wed, 6 Jan 2021 10:00:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 BD9D1340D7B for ; Wed, 6 Jan 2021 10:00:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E33848E for ; Wed, 6 Jan 2021 10:00:50 +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: <1609927236.df926459a10906cf16efd037b09cda2eb5638ae0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/httpretty/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/httpretty/Manifest dev-python/httpretty/httpretty-1.0.5.ebuild X-VCS-Directories: dev-python/httpretty/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: df926459a10906cf16efd037b09cda2eb5638ae0 X-VCS-Branch: master Date: Wed, 6 Jan 2021 10:00:50 +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: 9f599e04-c66f-4415-a9ac-c5d826b53974 X-Archives-Hash: 2d02945082fd3b8f18530f2b4497d432 commit: df926459a10906cf16efd037b09cda2eb5638ae0 Author: Michał Górny gentoo org> AuthorDate: Wed Jan 6 09:22:37 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jan 6 10:00:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df926459 dev-python/httpretty: Bump to 1.0.5 Signed-off-by: Michał Górny gentoo.org> dev-python/httpretty/Manifest | 1 + dev-python/httpretty/httpretty-1.0.5.ebuild | 49 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest index 09b1d35e84c..b76e6e579dc 100644 --- a/dev-python/httpretty/Manifest +++ b/dev-python/httpretty/Manifest @@ -1 +1,2 @@ DIST httpretty-1.0.3.tar.gz 411707 BLAKE2B b2211457c937e19f8110bc28446a2b78a8042a742341c0492589def7447e819f051d301e9d254260778f349302ccf6fc163a9f2280a55af925ae353752450320 SHA512 a6349257376c12198d0bf7923245c34f6b8a0889946ba0c2551fd3379a8d9a8e4610de81c66f945656c1879ad3fb1485f2f4148634fcc4e156b9f0a59f7dd758 +DIST httpretty-1.0.5.tar.gz 414946 BLAKE2B 8bbaac3d53fbf5744f7bf8ef952bd9305112934af24809a233ef0446886e09b7d2a897e69aded12d9e715580305d729609365b0be55f8d324cc48e6aa0699d75 SHA512 2e5f4834848ab1a0b84230f000afb0409b30b3cc1769d36ad61f712f56abc8d6076e7507598f791fe343ce282cf9e26939add71ef794ead2836badfc2321d6bb diff --git a/dev-python/httpretty/httpretty-1.0.5.ebuild b/dev-python/httpretty/httpretty-1.0.5.ebuild new file mode 100644 index 00000000000..0b217df07e4 --- /dev/null +++ b/dev-python/httpretty/httpretty-1.0.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://github.com/gabrielfalcao/httpretty" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}]" +# redis skipped as it requires a redis server running +DEPEND=" + test? ( + dev-python/eventlet[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/httplib2[${PYTHON_USEDEP}] + >=dev-python/nose-1.2[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + dev-python/sure[${PYTHON_USEDEP}] + >=www-servers/tornado-2.2[${PYTHON_USEDEP}] +)" + +python_prepare_all() { + # remove useless deps + sed -i -e '/randomly/d' -e '/rednose/d' setup.cfg || die + # tests requiring network access + rm tests/functional/test_passthrough.py || die + # requires running redis server + # it is skipped correctly but it causes unnecessary dep on redis-py + rm tests/functional/bugfixes/test_redis.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v tests || die "Tests fail with ${EPYTHON}" +}