Date: Wednesday, December 8, 2021 @ 02:30:19 Author: felixonmars Revision: 1065586
archrelease: copy trunk to community-staging-any Added: python-daemon/repos/community-staging-any/ python-daemon/repos/community-staging-any/PKGBUILD (from rev 1065585, python-daemon/trunk/PKGBUILD) python-daemon/repos/community-staging-any/python310.patch (from rev 1065585, python-daemon/trunk/python310.patch) python-daemon/repos/community-staging-any/testtools-2.5.0.patch (from rev 1065585, python-daemon/trunk/testtools-2.5.0.patch) -----------------------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ python310.patch | 31 +++++++++++++++++++++++++++++++ testtools-2.5.0.patch | 22 ++++++++++++++++++++++ 3 files changed, 97 insertions(+) Copied: python-daemon/repos/community-staging-any/PKGBUILD (from rev 1065585, python-daemon/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-12-08 02:30:19 UTC (rev 1065586) @@ -0,0 +1,44 @@ +# Maintainer: Jaroslav Lichtblau <svetlemo...@archlinux.org> +# Contributor: Anatol Pomozov +# Contributor: Massimiliano Torromeo <massimiliano.torro...@gmail.com> + +pkgname=python-daemon +pkgver=2.3.0 +pkgrel=2 +pkgdesc='Library to implement a well-behaved Unix daemon process' +arch=('any') +url='https://pypi.python.org/pypi/python-daemon' +license=('Apache') +depends=('python' 'python-lockfile' 'python-docutils') +makedepends=('python-setuptools' 'python-docutils' 'python-lockfile' 'python-pip') +checkdepends=('python-mock' 'python-testscenarios' 'python-wheel') +source=(https://files.pythonhosted.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz + testtools-2.5.0.patch + python310.patch) +sha256sums=('bda993f1623b1197699716d68d983bb580043cf2b8a66a01274d9b8297b0aeaf' + '7f8dfbe9e01edcb19ebede5580d448a995b721ee3b56ca1d353f58c36416c980' + '1777e34936ed5d45001e9994f563fdf8c9e2045b667223f1eebf896031627ddc') + +prepare() { + cd "${srcdir}"/python-daemon-$pkgver + patch -Np1 -i ../testtools-2.5.0.patch + patch -Np1 -i ../python310.patch +} + +build() { + cd "${srcdir}"/python-daemon-$pkgver + python setup.py build +} + +check() { + cd python-daemon-$pkgver + python setup.py test +} + +package_python-daemon() { + cd "${srcdir}"/python-daemon-$pkgver + + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.ASF-2 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.ASF-2 + install -Dm644 LICENSE.GPL-3 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.GPL-3 +} Copied: python-daemon/repos/community-staging-any/python310.patch (from rev 1065585, python-daemon/trunk/python310.patch) =================================================================== --- community-staging-any/python310.patch (rev 0) +++ community-staging-any/python310.patch 2021-12-08 02:30:19 UTC (rev 1065586) @@ -0,0 +1,31 @@ +From 0c67a3c6407fbf4483ccfc94a7a0d78cf3379296 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <m...@hroncok.cz> +Date: Wed, 29 Sep 2021 19:59:30 +1000 +Subject: [PATCH] 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 <ben+pyt...@benfinney.id.au> +--- + test/test_pidfile.py | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/test/test_pidfile.py b/test/test_pidfile.py +index 2448855..1d0dd93 100644 +--- 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(), Copied: python-daemon/repos/community-staging-any/testtools-2.5.0.patch (from rev 1065585, python-daemon/trunk/testtools-2.5.0.patch) =================================================================== --- community-staging-any/testtools-2.5.0.patch (rev 0) +++ community-staging-any/testtools-2.5.0.patch 2021-12-08 02:30:19 UTC (rev 1065586) @@ -0,0 +1,22 @@ +From bacc1774e8ff7504092a0612197c36153731cd70 Mon Sep 17 00:00:00 2001 +From: Ben Finney <ben+pyt...@benfinney.id.au> +Date: Mon, 27 Sep 2021 21:17:57 +1000 +Subject: [PATCH] Drop a helper for obsolete bugs in `hasattr`. + +--- + test/test_metadata.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test_metadata.py b/test/test_metadata.py +index 3bb1e3a..77e6464 100644 +--- a/test/test_metadata.py ++++ b/test/test_metadata.py +@@ -39,7 +39,7 @@ class HasAttribute(testtools.matchers.Matcher): + def match(self, instance): + """ Assert the object `instance` has an attribute named `name`. """ + result = None +- if not testtools.helpers.safe_hasattr(instance, self.attribute_name): ++ if not hasattr(instance, self.attribute_name): + result = AttributeNotFoundMismatch(instance, self.attribute_name) + return result +