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 C02921382C5 for ; Tue, 5 Jan 2021 09:17:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D962FE07F1; Tue, 5 Jan 2021 09:17:15 +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 C1B00E07F1 for ; Tue, 5 Jan 2021 09:17:15 +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 C5DA1340ED8 for ; Tue, 5 Jan 2021 09:17:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7DF2648E for ; Tue, 5 Jan 2021 09:17:13 +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: <1609838228.7cd2a1d78167771d763852f1fe3d92e798bf32cd.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-mock/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-mock/Manifest dev-python/pytest-mock/pytest-mock-3.5.0.ebuild X-VCS-Directories: dev-python/pytest-mock/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7cd2a1d78167771d763852f1fe3d92e798bf32cd X-VCS-Branch: master Date: Tue, 5 Jan 2021 09:17:13 +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: bf270105-d2cd-4fb5-b5bf-5464f734889c X-Archives-Hash: f92f779abdcff3d8bcf862bf3fd8c637 commit: 7cd2a1d78167771d763852f1fe3d92e798bf32cd Author: Michał Górny gentoo org> AuthorDate: Tue Jan 5 09:02:38 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jan 5 09:17:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cd2a1d7 dev-python/pytest-mock: Bump to 3.5.0 Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-mock/Manifest | 1 + dev-python/pytest-mock/pytest-mock-3.5.0.ebuild | 36 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest index aecb5ef21a5..50b91a36313 100644 --- a/dev-python/pytest-mock/Manifest +++ b/dev-python/pytest-mock/Manifest @@ -1,2 +1,3 @@ DIST pytest-mock-3.3.1.tar.gz 27551 BLAKE2B 9e3602b988c0e27caa295d42d7400cbe7e3e30392511e662fa6ec16ec9fa4ef776d3e64b63b0345d1b520f753c6776103f507f91f0bad022544bfccc510b7e6b SHA512 ffd53974f82f725cf3bdbe750c1deb568ad1a12a67532eca93ff28d80b1cbcd8ebf709985f5473717c9d54345b251c1627c0567821e9e8b9e102db5c16cf7421 DIST pytest-mock-3.4.0.tar.gz 28115 BLAKE2B 0a7f9098955d57f7121c04f7ab706dd67eb52d8ec0b2254552460eb90b2e3fef3cd3b925cf46619532ffe7bede2f208bf822e465647f3ac4504566c18ff58a75 SHA512 5456b60bdd06a63859232b28aeb79be643e8298e69ae103cb6e194891987e01b17771ad895dfead97fa45531959689fb202bb1ebc9ba44491098760c10d1ef43 +DIST pytest-mock-3.5.0.tar.gz 28903 BLAKE2B 39490d30546ad7419a16309a60cc7a3d8090cb38c11ca89d41034264147501fcd1ca52b26d391425df043b7234a0dc0b1255b973f93c8f40898a19d364df2e77 SHA512 ca85c49144a2dba83b4e3c5cfc5a82ddb631429271a4b87af686ba738f8137fe87db22121e4c04d04038c0bc786a555e882bfea21d667d1ed9f67c21b208d4ce diff --git a/dev-python/pytest-mock/pytest-mock-3.5.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.5.0.ebuild new file mode 100644 index 00000000000..8f3aa84f0a7 --- /dev/null +++ b/dev-python/pytest-mock/pytest-mock-3.5.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" +HOMEPAGE="https://github.com/pytest-dev/pytest-mock/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +IUSE="" + +RDEPEND=">=dev-python/pytest-5[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +src_prepare() { + if has_version dev-python/mock; then + # test fails when standalone mock is installed + sed -e 's|^\(def \)\(test_standalone_mock(\)|\1_\2|' -i tests/test_pytest_mock.py || die + fi + distutils-r1_src_prepare +} + +python_test() { + distutils_install_for_testing + pytest --assert=plain -vv || die "Tests fail with ${EPYTHON}" +}