diff options
Diffstat (limited to 'dev-python/mock')
-rw-r--r-- | dev-python/mock/Manifest | 2 | ||||
-rw-r--r-- | dev-python/mock/mock-3.0.5-r2.ebuild | 50 |
2 files changed, 0 insertions, 52 deletions
diff --git a/dev-python/mock/Manifest b/dev-python/mock/Manifest index 14b1c892def5..4448c0903c04 100644 --- a/dev-python/mock/Manifest +++ b/dev-python/mock/Manifest @@ -1,5 +1,3 @@ -DIST mock-3.0.5.gh.tar.gz 67887 BLAKE2B b9c49b3627275889d73aff9ea9c7925093f9cafb304448b2f06eda2fff26152a031aafb4844537e4d58bc112709e59a44e08d32602776386a30d039743def29c SHA512 9ab4f0c794f5701ba1367d982cf79a5662d4233753d12ed9c88ae20282db1f44be73f84c4d9f6d03ff64926b8c1b6d0c9a79b2a4724a3eb36c247ffd4ab03e2d DIST mock-4.0.3.gh.tar.gz 80318 BLAKE2B bc0dc8b97129eaa2f0f9c89898157ea5de398f59f4e2ebc07318cf745b74d1f1bcc989774600ec88ce1956f9fe16f9464f101ea5df5cd23b3a58b432d19feb8a SHA512 adfdab253eb3bc1b6cb767c58ffa3a8a5c5f88da0f04ea6680e0d87da59177972d2d99bfe0a770ac2ed4f809ca6a090a9d0f789eea8f4365ef2c54f8e8792e89 -EBUILD mock-3.0.5-r2.ebuild 1478 BLAKE2B a911d94bbda8fcf87aaf59f70ddd77d144eeb580efd1e19b670166870a37eb10603a1e61d0e3c9f1963c4f6d29ef00f25b044acae40dcf84024162fe4e1d673a SHA512 952225831c29b071c507c242af36ee2babc4862d514bba2504f6114d7df75cc94258fea0bc3c2f8e9c4d0ef599dbaf358381193eb5a1a857ddfc154a36bc064b EBUILD mock-4.0.3.ebuild 1671 BLAKE2B 5b501ce7f9725cdf5fc9e437ab52a89468e6fcfc8894efb91f06623c3913dc4d46d566622c741ec9481fa00d301d9b7c27192858797e875bf162ce4638622833 SHA512 a2ddcf6ff5358dbdc65217c3f863cabe90ffdf0abcdb9d4da761676b312466c8fb9552134cec8b5ba425028c236e39c96afe8a9ad11396be764f2d6efbf594ac MISC metadata.xml 389 BLAKE2B 0663f612b893e4f8dd7b7e28c624c5abaf1f3bcd1fc2f454e5dceed971f8b9ca9f3ab32f2ba51eaf88572e6178eb87669b98bcf852d731fac4c077d10cc89ef7 SHA512 e142011c0f4c7b3ea4eeac1c0431e3d3df8eea803dad50ae5dd0184e0fe070b009b9a1e6933e7a298751091dac4972f10adfbd6bbf713b36a28ad8f4b29f2a66 diff --git a/dev-python/mock/mock-3.0.5-r2.ebuild b/dev-python/mock/mock-3.0.5-r2.ebuild deleted file mode 100644 index 863ddc72175e..000000000000 --- a/dev-python/mock/mock-3.0.5-r2.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="Rolling backport of unittest.mock for all Pythons" -HOMEPAGE="https://github.com/testing-cabal/mock" -SRC_URI="https://github.com/testing-cabal/mock/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/funcsigs[${PYTHON_USEDEP}] - ' -2) - >=dev-python/six-1.9[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - >=dev-python/setuptools-17.1[${PYTHON_USEDEP}]" - -python_test() { - # Upstream supports running tests only in their dream pristine - # environment. pytest doesn't work at all if mock is already - # installed. We can use plain unittest but we have to reinvent - # test filtering. - cp -r mock/tests "${BUILD_DIR}"/lib/mock/ || die - cd "${BUILD_DIR}"/lib || die - if ! python_is_python3; then - rm mock/tests/*py3* || die - fi - - # https://github.com/testing-cabal/mock/commit/d6b42149bb87cf38729eef8a100c473f602ef7fa - if [[ ${EPYTHON} == pypy* ]]; then - sed -i -e 's:def test_copy:def _test_copy:' \ - mock/tests/testmock.py || die - fi - - "${EPYTHON}" -m unittest discover -v || die "Tests failed with ${EPYTHON}" -} - -python_install_all() { - local DOCS=( CHANGELOG.rst README.rst ) - - distutils-r1_python_install_all -} |