summaryrefslogtreecommitdiff
path: root/dev-python/mock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-17 02:06:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-17 02:06:14 +0000
commit5987fa693ef880163ebde423615a177cb5bda20e (patch)
tree643ae0ed032ef417c538f8d04da516b9c2fa2a7d /dev-python/mock
parent41e056b08e4c5c8d6e78407a5586afa52867fd5f (diff)
gentoo auto-resync : 17:02:2023 - 02:06:14
Diffstat (limited to 'dev-python/mock')
-rw-r--r--dev-python/mock/Manifest5
-rw-r--r--dev-python/mock/files/mock-4.0.3-py310.patch76
-rw-r--r--dev-python/mock/mock-4.0.3-r1.ebuild40
-rw-r--r--dev-python/mock/mock-5.0.0-r1.ebuild31
4 files changed, 0 insertions, 152 deletions
diff --git a/dev-python/mock/Manifest b/dev-python/mock/Manifest
index c03cf8fe1eef..d41b3c8f719d 100644
--- a/dev-python/mock/Manifest
+++ b/dev-python/mock/Manifest
@@ -1,8 +1,3 @@
-AUX mock-4.0.3-py310.patch 2849 BLAKE2B a23047a6a872f7badb845388c3dcfb6c554824e524a094c09762a8749b3f6c292ddd58a1843cc540892a1a850f639af254a74abbfffb70deda4b756dca7dec9f SHA512 ad4448a85267aab11a35c761896779d66b45c2a38b6208226eeddcbbb7b28bac840f11fb9d69b72781383a82334a37b00dfac601fd9fe16f842da93c1b4ee3bb
-DIST mock-4.0.3.gh.tar.gz 80318 BLAKE2B bc0dc8b97129eaa2f0f9c89898157ea5de398f59f4e2ebc07318cf745b74d1f1bcc989774600ec88ce1956f9fe16f9464f101ea5df5cd23b3a58b432d19feb8a SHA512 adfdab253eb3bc1b6cb767c58ffa3a8a5c5f88da0f04ea6680e0d87da59177972d2d99bfe0a770ac2ed4f809ca6a090a9d0f789eea8f4365ef2c54f8e8792e89
-DIST mock-5.0.0.gh.tar.gz 83866 BLAKE2B 7c0718f8d43325b293b070f37c39ccf539a80460ac7e7b724674deb02154157a7dd62a81cd439e19589cee66f256f111f0feec9f8790f16c70948fac3745b43b SHA512 acde3099cb8daf49dffc390faffc45f94c9f1dd24f196ef613b0677cd88d1b55b5cbd04604ff540731e919784242c1cc341065fae99c347c6dfbb3d8115fc2fe
DIST mock-5.0.1.gh.tar.gz 84539 BLAKE2B ac50d187974a671db096222af0d0f27add771959553387ca8402951c17ed8e2b9669fff7b147fbc7aca25abc4b5006f5f9d3c2b13f6626a9bea140f6738b3f78 SHA512 b387137632237fa9079a0f70d8724e28bc1833c49d6e14f8fbc357064cf495f6177c783db9448343c0bea98936fc5c3667ce625f5dcdaca851a2f9cc7e3e5639
-EBUILD mock-4.0.3-r1.ebuild 867 BLAKE2B 13ec3348c2d91f5383bf0a88d606df7898e9c51ce5b0700dfd87657c84eb48c5ec3118534e8358bc5f614c420de2d5baa24456ce0cc685aa1f0e9dfadbc808f3 SHA512 d33230b9fac1881bd15b0c3e3aa673ef44750b599e93dd413a2d2af959531f5bb588a78604f0008dfc7856303ce9915de119a84505480e8a676b170a2bb8789e
-EBUILD mock-5.0.0-r1.ebuild 758 BLAKE2B dae2058b31b3d25ac172325c6070845aa5cca2318c7fc5f460bae2291f2b63a3cd415f1eb9cdaf2db634363ca3fef8040989ff06a74712ef0b2b55b2796e5767 SHA512 0bc40407f5290efbea8d1c0b0982676c039e6c46cfbcc48a604405d4f3c38c1576199da44dcfee30fd333104f6919b97f19f04c91a2951bf39dbeca055383013
EBUILD mock-5.0.1.ebuild 750 BLAKE2B a3d8d3acb1bc03577f8590f38bb0891ecece22241acc063201c803fc9ccaa93d9833006baaee6f0cfc5cf894956db94a630ea0f89eecf08a35f7c156910cfd82 SHA512 2d1f5d281594e5a18ec9b195655bf95270dfb7e181eeda573ab302f1b21c35803c3c044b00ee1d4dd9b71fd73006b364151f5857f24ce5ab5322006654a4d44a
MISC metadata.xml 390 BLAKE2B ab0f000e11ee427d56fa28e307764a2c1864ce74bc679a491ab005a70d2bf8502d9a82b5d1941fcc268438880f8f950587aa090de9e611a520f89a49c78c0cbc SHA512 8456ad417374be30c038abce5a232d1075b8685e6432be93f49a74f327239354e14edfddf5e4a473264fb09bc0e4e6059489c1d0d651e8391ab0678d22987aeb
diff --git a/dev-python/mock/files/mock-4.0.3-py310.patch b/dev-python/mock/files/mock-4.0.3-py310.patch
deleted file mode 100644
index 4a096f35126c..000000000000
--- a/dev-python/mock/files/mock-4.0.3-py310.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From f3e3d82aab0ede7e25273806dc0505574d85eae2 Mon Sep 17 00:00:00 2001
-From: Chris Withers <chris@simplistix.co.uk>
-Date: Thu, 15 Apr 2021 08:27:25 +0100
-Subject: [PATCH] fix tests that should test mock but were testing
- unittest.mock
-
----
- mock/tests/testmock.py | 15 ++++++++-------
- 1 file changed, 8 insertions(+), 7 deletions(-)
-
-diff --git a/mock/tests/testmock.py b/mock/tests/testmock.py
-index 5702b6d..1a70909 100644
---- a/mock/tests/testmock.py
-+++ b/mock/tests/testmock.py
-@@ -13,6 +13,7 @@ from mock import (
- create_autospec, mock
- )
- from mock.mock import _Call, _CallList
-+import mock.mock as mock_module
-
-
- class Iter(object):
-@@ -47,7 +48,7 @@ class MockTest(unittest.TestCase):
- # if __all__ is badly defined then import * will raise an error
- # We have to exec it because you can't import * inside a method
- # in Python 3
-- exec("from unittest.mock import *")
-+ exec("from mock.mock import *")
-
-
- def test_constructor(self):
-@@ -2137,16 +2138,16 @@ class MockTest(unittest.TestCase):
- # test_patch_dict_test_prefix and test_patch_test_prefix not restoring
- # causes the objects patched to go out of sync
-
-- old_patch = unittest.mock.patch
-+ old_patch = mock_module.patch
-
- # Directly using __setattr__ on unittest.mock causes current imported
- # reference to be updated. Use a lambda so that during cleanup the
- # re-imported new reference is updated.
-- self.addCleanup(lambda patch: setattr(unittest.mock, 'patch', patch),
-+ self.addCleanup(lambda patch: setattr(mock_module, 'patch', patch),
- old_patch)
-
- with patch.dict('sys.modules'):
-- del sys.modules['unittest.mock']
-+ del sys.modules['mock']
-
- # This trace will stop coverage being measured ;-)
- def trace(frame, event, arg): # pragma: no cover
-@@ -2155,7 +2156,7 @@ class MockTest(unittest.TestCase):
- self.addCleanup(sys.settrace, sys.gettrace())
- sys.settrace(trace)
-
-- from unittest.mock import (
-+ from mock.mock import (
- Mock, MagicMock, NonCallableMock, NonCallableMagicMock
- )
-
-@@ -2170,10 +2171,10 @@ class MockTest(unittest.TestCase):
- def test_bool_not_called_when_passing_spec_arg(self):
- class Something:
- def __init__(self):
-- self.obj_with_bool_func = unittest.mock.MagicMock()
-+ self.obj_with_bool_func = mock_module.MagicMock()
-
- obj = Something()
-- with unittest.mock.patch.object(obj, 'obj_with_bool_func', autospec=True): pass
-+ with mock_module.patch.object(obj, 'obj_with_bool_func', autospec=True): pass
-
- self.assertEqual(obj.obj_with_bool_func.__bool__.call_count, 0)
-
---
-2.31.1
-
diff --git a/dev-python/mock/mock-4.0.3-r1.ebuild b/dev-python/mock/mock-4.0.3-r1.ebuild
deleted file mode 100644
index 94fd7e6726e8..000000000000
--- a/dev-python/mock/mock-4.0.3-r1.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Rolling backport of unittest.mock for all Pythons"
-HOMEPAGE="
- https://github.com/testing-cabal/mock/
- https://pypi.org/project/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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-
-RDEPEND="
- >=dev-python/six-1.9[${PYTHON_USEDEP}]
-"
-BDEPEND=${RDEPEND}
-
-PATCHES=(
- "${FILESDIR}"/${P}-py310.patch
-)
-
-distutils_enable_tests pytest
-
-python_install_all() {
- local DOCS=( CHANGELOG.rst README.rst )
-
- distutils-r1_python_install_all
-}
diff --git a/dev-python/mock/mock-5.0.0-r1.ebuild b/dev-python/mock/mock-5.0.0-r1.ebuild
deleted file mode 100644
index dad28b20c195..000000000000
--- a/dev-python/mock/mock-5.0.0-r1.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
-
-inherit distutils-r1
-
-DESCRIPTION="Rolling backport of unittest.mock for all Pythons"
-HOMEPAGE="
- https://github.com/testing-cabal/mock/
- https://pypi.org/project/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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-
-distutils_enable_tests pytest
-
-python_install_all() {
- local DOCS=( CHANGELOG.rst README.rst )
-
- distutils-r1_python_install_all
-}