From a24816538efa529fb5c53d8dc8fa765a8a5a349c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 22 Mar 2022 10:46:32 +0100 Subject: [PATCH] python3-gnupg: update to 0.4.8. --- ...aemon-attribute-instead-of-setDaemon.patch | 50 +++++++++++++++++++ srcpkgs/python3-gnupg/template | 13 +++-- 2 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/python3-gnupg/patches/0001-set-daemon-attribute-instead-of-setDaemon.patch diff --git a/srcpkgs/python3-gnupg/patches/0001-set-daemon-attribute-instead-of-setDaemon.patch b/srcpkgs/python3-gnupg/patches/0001-set-daemon-attribute-instead-of-setDaemon.patch new file mode 100644 index 000000000000..601834c994a4 --- /dev/null +++ b/srcpkgs/python3-gnupg/patches/0001-set-daemon-attribute-instead-of-setDaemon.patch @@ -0,0 +1,50 @@ +From 6fb3874786d04bc05cbf6f1a1073d698b9d447f2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= + +Date: Tue, 22 Mar 2022 10:39:38 +0100 +Subject: [PATCH] set daemon attribute, instead of setDaemon() +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +> DeprecationWarning: setDaemon() is deprecated, set the daemon +> attribute instead + +Signed-off-by: Jan Christian Grünhage +--- + gnupg.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/gnupg.py b/gnupg.py +index 8d16739..94073d2 100644 +--- a/gnupg.py ++++ b/gnupg.py +@@ -169,7 +169,7 @@ def _copy_data(instream, outstream): + + def _threaded_copy_data(instream, outstream): + wr = threading.Thread(target=_copy_data, args=(instream, outstream)) +- wr.setDaemon(True) ++ wr.daemon = True + logger.debug('data copier: %r, %r, %r', wr, instream, outstream) + wr.start() + return wr +@@ -1021,14 +1021,14 @@ class GPG(object): + """ + stderr = codecs.getreader(self.encoding)(process.stderr) + rr = threading.Thread(target=self._read_response, args=(stderr, result)) +- rr.setDaemon(True) ++ rr.daemon = True + logger.debug('stderr reader: %r', rr) + rr.start() + + stdout = process.stdout + dr = threading.Thread(target=self._read_data, args=(stdout, result, + self.on_data)) +- dr.setDaemon(True) ++ dr.daemon = True + logger.debug('stdout reader: %r', dr) + dr.start() + +-- +2.35.1 + diff --git a/srcpkgs/python3-gnupg/template b/srcpkgs/python3-gnupg/template index 4470b8bed028..d63eca0d2284 100644 --- a/srcpkgs/python3-gnupg/template +++ b/srcpkgs/python3-gnupg/template @@ -1,18 +1,23 @@ # Template file for 'python3-gnupg' pkgname=python3-gnupg _pkgname=python-gnupg -version=0.4.6 -revision=4 +version=0.4.8 +revision=1 wrksrc=$_pkgname-$version build_style=python3-module hostmakedepends="python3-setuptools" depends="python3 gnupg" +checkdepends="gnupg" short_desc="Python3 wrapper for GnuPG" maintainer="Lon Willett " license="BSD-3-Clause" -homepage="https://bitbucket.org/vinay.sajip/python-gnupg" +homepage="https://github.com/vsajip/python-gnupg" distfiles="${PYPI_SITE}/p/${_pkgname}/${_pkgname}-${version}.tar.gz" -checksum=3aa0884b3bd414652c2385b9df39e7b87272c2eca1b8fcc3089bc9e58652019a +checksum=b64de1ae5cedf872b437201a566fa2c62ce0c95ea2e30177eb53aee1258507d7 + +pre_check() { + export NO_EXTERNAL_TESTS=1 +} post_install() { vlicense LICENSE.txt