From 6c34713e9347ed43f4e4f7cb77c9f53b99640dc1 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Fri, 13 Nov 2020 23:48:40 -0600 Subject: [PATCH 1/2] duplicity: update to 0.8.17 [ci skip] --- srcpkgs/duplicity/template | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/srcpkgs/duplicity/template b/srcpkgs/duplicity/template index ff421ea456f..22bec8d95ba 100644 --- a/srcpkgs/duplicity/template +++ b/srcpkgs/duplicity/template @@ -1,7 +1,7 @@ # Template file for 'duplicity' pkgname=duplicity -version=0.8.16 -revision=2 +version=0.8.17 +revision=1 build_style=python3-module hostmakedepends="gettext python3-setuptools" makedepends="python3-devel librsync-devel" @@ -12,19 +12,13 @@ license="GPL-2.0-or-later" homepage="http://duplicity.nongnu.org/" changelog="http://duplicity.nongnu.org/vers8/CHANGELOG" distfiles="http://launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz" -checksum=2cfcd212834979751310d9df1a954b949f86b084efd5ad1f97dd744780ef9d1b +checksum=a273b1e74d8d0b7825572f51be9c8284e579961e01f4fc1473048e95dce49984 post_extract() { chmod 0644 bin/*.1 } -do_check() { - # Disable as tests don't work - # tests look for pytest,instead of pytest{2,3} - : -} - post_install() { - # drop doc - rm -rf ${DESTDIR}/usr/share/doc + # Remove docs + rm -r ${DESTDIR}/usr/share/doc } From 19a200f38882bb8d220f16da9529fd7504a95095 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Sat, 14 Nov 2020 17:55:09 -0600 Subject: [PATCH 2/2] Add test --- srcpkgs/duplicity/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/duplicity/template b/srcpkgs/duplicity/template index 22bec8d95ba..cdf52c9f110 100644 --- a/srcpkgs/duplicity/template +++ b/srcpkgs/duplicity/template @@ -5,6 +5,8 @@ revision=1 build_style=python3-module hostmakedepends="gettext python3-setuptools" makedepends="python3-devel librsync-devel" +checkdepends="python3-pytest python3-future python3-fasteners + python3-mock python3-pexpect" depends="python3-fasteners gnupg python3-future python3-urllib3" short_desc="Encrypted bandwidth-efficient backup using the rsync algorithm" maintainer="Orphaned " @@ -18,6 +20,10 @@ post_extract() { chmod 0644 bin/*.1 } +do_check() { + pytest +} + post_install() { # Remove docs rm -r ${DESTDIR}/usr/share/doc