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 807F613835A for ; Wed, 25 Nov 2020 08:37:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51B6FE0831; Wed, 25 Nov 2020 08:37:12 +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 0013FE0831 for ; Wed, 25 Nov 2020 08:37:11 +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 7843E340C7F for ; Wed, 25 Nov 2020 08:37:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 258EE46A for ; Wed, 25 Nov 2020 08:37:09 +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: <1606293420.50fcf500d6b56d6bf4af9b1929becbcc6e320821.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.3.ebuild X-VCS-Directories: dev-python/httpretty/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 50fcf500d6b56d6bf4af9b1929becbcc6e320821 X-VCS-Branch: master Date: Wed, 25 Nov 2020 08:37:09 +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: f184ab8f-7260-4871-a230-fe025ee879eb X-Archives-Hash: 2e99515357b6507bd92c390443584724 commit: 50fcf500d6b56d6bf4af9b1929becbcc6e320821 Author: Michał Górny gentoo org> AuthorDate: Wed Nov 25 08:10:38 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Nov 25 08:37:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50fcf500 dev-python/httpretty: Bump to 1.0.3 Signed-off-by: Michał Górny gentoo.org> dev-python/httpretty/Manifest | 1 + dev-python/httpretty/httpretty-1.0.3.ebuild | 49 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest index 942fa7ec9ec..bad5cea5721 100644 --- a/dev-python/httpretty/Manifest +++ b/dev-python/httpretty/Manifest @@ -1,2 +1,3 @@ DIST httpretty-0.9.6.tar.gz 7147633 BLAKE2B e1d02ddfce5ca987c6ef1a17723544f86a8573c2a6a26ec197072021e52015efce5064af21bfbe1ec03f3ac11c21717a80f114b5be2526b113e3bc0a608702f4 SHA512 bc1c64d34370209c732bc12dd9935600b647507ab2c8f18c85f348e9b5e853618ba39e10e5a073b35036e6cbe3db2cb7a342a721d0e4affa81fe178fd0b75d92 DIST httpretty-1.0.2.tar.gz 399185 BLAKE2B 033e954fccf6a351c09dac3c1585ddc65f064eca109dfd8f499fd510ea09ba3ce5198d3f4b54fb832b47425ab721ddc1b2da596b6066028bda1f0a1303cdc0ed SHA512 f9ef1c82f4fe3a31696e06228cea512664c5118b3c32910d7810d1fcf16b05d31b9b55db7bb6bd64967aadb162a2952757627439769db9117164b8248de9049c +DIST httpretty-1.0.3.tar.gz 411707 BLAKE2B b2211457c937e19f8110bc28446a2b78a8042a742341c0492589def7447e819f051d301e9d254260778f349302ccf6fc163a9f2280a55af925ae353752450320 SHA512 a6349257376c12198d0bf7923245c34f6b8a0889946ba0c2551fd3379a8d9a8e4610de81c66f945656c1879ad3fb1485f2f4148634fcc4e156b9f0a59f7dd758 diff --git a/dev-python/httpretty/httpretty-1.0.3.ebuild b/dev-python/httpretty/httpretty-1.0.3.ebuild new file mode 100644 index 00000000000..8e097d95aae --- /dev/null +++ b/dev-python/httpretty/httpretty-1.0.3.ebuild @@ -0,0 +1,49 @@ +# 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="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}" +}