public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/duplicity] epel10.3: 0.8.01. Now uses Python3.
Date: Fri, 09 Oct 2026 15:56:39 GMT [thread overview]
Message-ID: <179156139935.1.2260643304614952772.rpms-duplicity-e2e7010e4985@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/duplicity
Branch : epel10.3
Commit : e2e7010e4985d16a2967944754784ec9c25636f5
Author : Gwyn Ciesla <gwync@protonmail.com>
Date : 2019-07-15T09:53:20-05:00
Stats : +21/-70 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/duplicity/c/e2e7010e4985d16a2967944754784ec9c25636f5?branch=epel10.3
Log:
0.8.01. Now uses Python3.
---
diff --git a/.gitignore b/.gitignore
index f2fd782..1701abd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,4 @@
/duplicity-0.7.18.1.tar.gz
/duplicity-0.7.18.2.tar.gz
/duplicity-0.7.19.tar.gz
+/duplicity-0.8.01.tar.gz
diff --git a/duplicity-unicode.patch b/duplicity-unicode.patch
deleted file mode 100644
index e5a946e..0000000
--- a/duplicity-unicode.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-diff -urpN duplicity-0.7.18/duplicity/util.py duplicity-0.7.18-p3/duplicity/util.py
---- duplicity-0.7.18/duplicity/util.py 2017-11-23 07:07:34.000000000 -0600
-+++ duplicity-0.7.18-p3/duplicity/util.py 2018-10-15 10:13:30.988730767 -0500
-@@ -76,7 +76,10 @@ def uexc(e):
- # non-ascii will cause a UnicodeDecodeError when implicitly decoding to
- # unicode. So we decode manually, using the filesystem encoding.
- # 99.99% of the time, this will be a fine encoding to use.
-- return ufn(unicode(e).encode('utf-8'))
-+ m = e.message
-+ if isinstance(m, unicode):
-+ m = m.encode('utf-8')
-+ return ufn(m)
-
-
- def maybe_ignore_errors(fn):
-diff -urpN duplicity-0.7.18/testing/unit/test_exc.py duplicity-0.7.18-p3/testing/unit/test_exc.py
---- duplicity-0.7.18/testing/unit/test_exc.py 1969-12-31 18:00:00.000000000 -0600
-+++ duplicity-0.7.18-p3/testing/unit/test_exc.py 2018-10-15 10:13:17.619683596 -0500
-@@ -0,0 +1,36 @@
-+#
-+# This file is part of duplicity.
-+#
-+# Duplicity is free software; you can redistribute it and/or modify it
-+# under the terms of the GNU General Public License as published by the
-+# Free Software Foundation; either version 2 of the License, or (at your
-+# option) any later version.
-+#
-+# Duplicity is distributed in the hope that it will be useful, but
-+# WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+# General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with duplicity; if not, write to the Free Software Foundation,
-+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-+
-+import unittest
-+
-+import duplicity
-+
-+class TestExc(unittest.TestCase):
-+
-+ def test_uexc(self):
-+
-+ e = Exception('test')
-+ msg = duplicity.util.uexc(e)
-+ self.assertEqual(msg, 'test')
-+
-+ e = Exception(b'\xe3\x83\x86\xe3\x82\xb9\xe3\x83\x88')
-+ msg = duplicity.util.uexc(e)
-+ self.assertEqual(msg, u'\u30c6\u30b9\u30c8')
-+
-+
-+if __name__ == '__main__':
-+ unittest.main()
diff --git a/duplicity.spec b/duplicity.spec
index 0fe490e..3548661 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -1,21 +1,21 @@
+%{?python_disable_dependency_generator}
+
Summary: Encrypted bandwidth-efficient backup using rsync algorithm
Name: duplicity
-Version: 0.7.19
+Version: 0.8.01
Release: 1%{?dist}
License: GPLv2+
URL: http://www.nongnu.org/duplicity/
-Source: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.gz
-Patch0: duplicity-unicode.patch
-Requires: python2-gnupginterface >= 0.3.2
-Requires: python2-lockfile
+Source: https://launchpad.net/duplicity/0.8-series/%{version}/+download/duplicity-%{version}.tar.gz
+Requires: python3-lockfile
Requires: gnupg >= 1.0.6
-Requires: openssh-clients, ncftp >= 3.1.9, rsync, python2-boto >= 0.9d
-Requires: python2-paramiko python2-dropbox python2-pexpect
-Requires: python2-fasteners python2-PyDrive
+Requires: openssh-clients, ncftp >= 3.1.9, rsync, python3-boto >= 0.9d
+Requires: python3-paramiko python3-dropbox python3-pexpect
+Requires: python3-fasteners python3-PyDrive
Requires: ca-certificates
BuildRequires: gcc
-BuildRequires: python2-devel librsync-devel >= 0.9.6 python2-setuptools
+BuildRequires: python3-devel librsync-devel >= 0.9.6 python3-setuptools python3-pytest-runner
%description
Duplicity incrementally backs up files and directory by encrypting
@@ -33,13 +33,15 @@ but not hard links.
%prep
%setup -q
-%patch0 -p1
-
%build
-%{__python2} setup.py build
+%{__python3} setup.py build
+
+# fix shebangs
+sed -i s/env\ python/python3/g build/scripts-3.7/duplicity
+sed -i s/env\ python/python3/g build/scripts-3.7/rdiffdir
%install
-%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
ln -sf %{_sysconfdir}/pki/tls/cert.pem \
@@ -64,11 +66,14 @@ rm -rf %{buildroot}/usr/share/doc/duplicity-%{version}/tarfile-LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_mandir}/man1/rdiffdir*
-%{python2_sitearch}/%{name}*
+%{python3_sitearch}/%{name}*
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/cacert.pem
%changelog
+* Mon Jul 15 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.8.01-1
+- 0.8.01
+
* Mon Apr 29 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.7.19-1
- 0.7.19
diff --git a/sources b/sources
index 0a9ad1c..63c64fb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (duplicity-0.7.19.tar.gz) = 26d1724a635c368e04f2a94f974ef6962c52b23345db59af3343e7221295caa0215ae119fff6ab44daa4622236683eb9d3dae742bf0d4cf08c02e3f63071001b
+SHA512 (duplicity-0.8.01.tar.gz) = 413bb4cdedcd1032532fcc673a6ecfc79c4cee5e47603b4a88adb1ecd61f3e96df9f70cdd51a5ca21716beff3f9158d9c5d3616ecee7eb775290381aebfca640
reply other threads:[~2026-10-09 15:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179156139935.1.2260643304614952772.rpms-duplicity-e2e7010e4985@fedoraproject.org \
--to=gwync@protonmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox