Date: Friday, November 11, 2022 @ 22:12:17
Author: jelle
Revision: 1346883
archrelease: copy trunk to community-any
Added:
python-daemon/repos/community-any/PKGBUILD
(from rev 1346882, python-daemon/trunk/PKGBUILD)
python-daemon/repos/community-any/python310.patch
(from rev 1346882, python-daemon/trunk/python310.patch)
python-daemon/repos/community-any/testtools-2.5.0.patch
(from rev 1346882, python-daemon/trunk/testtools-2.5.0.patch)
Deleted:
python-daemon/repos/community-any/PKGBUILD
python-daemon/repos/community-any/python310.patch
python-daemon/repos/community-any/testtools-2.5.0.patch
-----------------------+
PKGBUILD | 88 ++++++++++++++++++++++++------------------------
python310.patch | 62 ++++++++++++++++-----------------
testtools-2.5.0.patch | 44 ++++++++++++------------
3 files changed, 97 insertions(+), 97 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-11 22:12:07 UTC (rev 1346882)
+++ PKGBUILD 2022-11-11 22:12:17 UTC (rev 1346883)
@@ -1,44 +0,0 @@
-# Maintainer: Jaroslav Lichtblau <[email protected]>
-# Contributor: Anatol Pomozov
-# Contributor: Massimiliano Torromeo <[email protected]>
-
-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-any/PKGBUILD (from rev 1346882,
python-daemon/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-11 22:12:17 UTC (rev 1346883)
@@ -0,0 +1,44 @@
+# Maintainer: Jaroslav Lichtblau <[email protected]>
+# Contributor: Anatol Pomozov
+# Contributor: Massimiliano Torromeo <[email protected]>
+
+pkgname=python-daemon
+pkgver=2.3.0
+pkgrel=3
+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-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
+}
Deleted: python310.patch
===================================================================
--- python310.patch 2022-11-11 22:12:07 UTC (rev 1346882)
+++ python310.patch 2022-11-11 22:12:17 UTC (rev 1346883)
@@ -1,31 +0,0 @@
-From 0c67a3c6407fbf4483ccfc94a7a0d78cf3379296 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]>
-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 <[email protected]>
----
- 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-any/python310.patch (from rev 1346882,
python-daemon/trunk/python310.patch)
===================================================================
--- python310.patch (rev 0)
+++ python310.patch 2022-11-11 22:12:17 UTC (rev 1346883)
@@ -0,0 +1,31 @@
+From 0c67a3c6407fbf4483ccfc94a7a0d78cf3379296 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]>
+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 <[email protected]>
+---
+ 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(),
Deleted: testtools-2.5.0.patch
===================================================================
--- testtools-2.5.0.patch 2022-11-11 22:12:07 UTC (rev 1346882)
+++ testtools-2.5.0.patch 2022-11-11 22:12:17 UTC (rev 1346883)
@@ -1,22 +0,0 @@
-From bacc1774e8ff7504092a0612197c36153731cd70 Mon Sep 17 00:00:00 2001
-From: Ben Finney <[email protected]>
-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
-
Copied: python-daemon/repos/community-any/testtools-2.5.0.patch (from rev
1346882, python-daemon/trunk/testtools-2.5.0.patch)
===================================================================
--- testtools-2.5.0.patch (rev 0)
+++ testtools-2.5.0.patch 2022-11-11 22:12:17 UTC (rev 1346883)
@@ -0,0 +1,22 @@
+From bacc1774e8ff7504092a0612197c36153731cd70 Mon Sep 17 00:00:00 2001
+From: Ben Finney <[email protected]>
+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
+