commit: 3bec2f93f9bb88abcc5e3a952b12e62281cc52d9 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Sat Nov 6 19:44:52 2021 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sat Nov 6 19:59:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bec2f93
dev-python/python-daemon: enable py3.10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .../files/python-daemon-2.3.0-fix-py3.10.patch | 28 ++++++++++++++++++++++ .../python-daemon/python-daemon-2.3.0-r1.ebuild | 6 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch b/dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch new file mode 100644 index 00000000000..4fd082dc8f7 --- /dev/null +++ b/dev-python/python-daemon/files/python-daemon-2.3.0-fix-py3.10.patch @@ -0,0 +1,28 @@ +https://pagure.io/python-daemon/c/0c67a3c6407fbf4483ccfc94a7a0d78cf3379296 + +From: Miro HronĨok <[email protected]> +Date: Sep 29 2021 10:05:27 +0000 +Subject: Remove incorrect double-patch of objects in test cases. + +The specific test cases relying on the patches, already are decorated +to patch the specific attributes needed. We don't need a general patch +of the attributes in the test case setup. + +Signed-off-by: Ben Finney <[email protected]> + +--- a/test/test_pidfile.py ++++ b/test/test_pidfile.py +@@ -367,12 +367,6 @@ class TimeoutPIDLockFile_TestCase(scaffold.TestCase): + pidlockfile_scenarios = make_pidlockfile_scenarios() + self.pidlockfile_scenario = pidlockfile_scenarios['simple'] + +- for func_name in ['__init__', 'acquire']: +- func_patcher = unittest.mock.patch.object( +- lockfile.pidlockfile.PIDLockFile, func_name) +- func_patcher.start() +- self.addCleanup(func_patcher.stop) +- + self.scenario = { + 'pidfile_path': self.pidlockfile_scenario['pidfile_path'], + 'acquire_timeout': self.getUniqueInteger(), + diff --git a/dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild b/dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild index ebd89363d0b..6cb93f1a836 100644 --- a/dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild +++ b/dev-python/python-daemon/python-daemon-2.3.0-r1.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{8..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 @@ -29,6 +29,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}/${P}-fix-py3.10.patch" +) + distutils_enable_tests unittest src_prepare() {
