← Back to team overview

duplicity-team team mailing list archive

[Merge] lp:~aaron-whitehouse/duplicity/08-snap-python2 into lp:duplicity

 

Aaron Whitehouse has proposed merging lp:~aaron-whitehouse/duplicity/08-snap-python2 into lp:duplicity.

Commit message:
Add packaging code for Snapcraft/Snap packages

Requested reviews:
  duplicity-team (duplicity-team)

For more details, see:
https://code.launchpad.net/~aaron-whitehouse/duplicity/08-snap-python2/+merge/371421
-- 
Your team duplicity-team is requested to review the proposed merge of lp:~aaron-whitehouse/duplicity/08-snap-python2 into lp:duplicity.
=== modified file 'dist/makedist'
--- dist/makedist	2019-07-31 14:34:20 +0000
+++ dist/makedist	2019-08-16 23:27:30 +0000
@@ -102,6 +102,8 @@
                   os.path.join(tardir, u"bin", u"duplicity.1"))
     VersionedCopy(os.path.join(u"bin", u"rdiffdir.1"),
                   os.path.join(tardir, u"bin", u"rdiffdir.1"))
+    VersionedCopy(os.path.join(u"snap", u"snapcraft.yaml"),
+                  os.path.join(tardir, u"snap", u"snapcraft.yaml"))
     VersionedCopy(u"setup.py",
                   os.path.join(tardir, u"setup.py"))
 

=== added directory 'snap'
=== added directory 'snap/local'
=== added file 'snap/local/README-SNAP.txt'
--- snap/local/README-SNAP.txt	1970-01-01 00:00:00 +0000
+++ snap/local/README-SNAP.txt	2019-08-16 23:27:30 +0000
@@ -0,0 +1,7 @@
+Snaps are packages: https://snapcraft.io
+
+Snaps for duplicity should be built from releases of duplicity,
+after dist/makedist has been run on the files.
+
+To build a snap, in the root of the project, type:
+SNAPCRAFT_BUILD_INFO=y snapcraft

=== added file 'snap/local/changelog.txt'
--- snap/local/changelog.txt	1970-01-01 00:00:00 +0000
+++ snap/local/changelog.txt	2019-08-16 23:27:30 +0000
@@ -0,0 +1,12 @@
+Snap changelog
+
+Revision	Version		Change
+6		0.7.19		Added a large number of dependencies beyond those in
+				requirements.txt based on those imported or used in
+				backends.  
+7		0.7.19		Added additional dependencies from .deb package.
+8		0.8.00		Added openssh-client, jottalib
+9		0.8.00		Changed bin/duplicity to use python2
+10		0.8.01		New duplicity version, no snap changes
+11		0.8.02		New duplicity version, no snap changes
+12		0.8.03		New duplicity version, no snap changes

=== added file 'snap/snapcraft.yaml'
--- snap/snapcraft.yaml	1970-01-01 00:00:00 +0000
+++ snap/snapcraft.yaml	2019-08-16 23:27:30 +0000
@@ -0,0 +1,54 @@
+name: duplicity
+version: $version
+summary: Efficient, encrypted backup to local or remote hosts
+description: |
+  Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Because duplicity uses GnuPG to encrypt and/or sign these archives, they will be safe from spying and/or modification by the server.
+
+grade: stable
+confinement: classic
+base: core18
+
+apps:
+  duplicity:
+    command: bin/duplicity
+
+parts:
+  duplicity:
+    plugin: python
+    python-version: python2
+    stage-packages:
+    - gnupg
+    - lftp		# for lftpbackend.py
+    - librsync1
+    - librsync-dev
+    - megatools		# for megabackend.py
+    - ncftp		# for ncftpbackend.py
+    - openssh-client    # for ssh_pexpect_backend.py
+    - python-azure	# for azurebackend.py
+    - python-boto	# for botobackend.py
+    - python-cloudfiles	# for cfbackend.py
+    - python-fasteners
+    - python-future
+    - python-gdata	# for gdocsbackend.py
+    - python-gi		# for giobackend.py
+    - python-googleapi	# for pydrivebackend.py
+    - python-httplib2	# for pydrivebackend.py
+    - python-lockfile
+    - python-oauthlib
+    - python-paramiko	# for ssh_paramiko_backend.py
+    - python-requests	# for adbackend.py, onedrivebackend.py
+    - python-requests-oauthlib # as above
+    - python-swiftclient # for swiftbackend.py
+    - python-urllib3
+    - rsync		# for rsyncbackend.py
+    - tahoe-lafs	# for tahoebackend.py
+    # -sx for sxbackend.py, but looks dead http://www.skylable.com/
+    python-packages: [b2, dropbox, jottalib, mediafire, pydrive, pyrax]
+    # b2 for b2backend.py
+    # dropbox for dpbxbackend.py
+    # mediafire for mediafirebackend.py
+    # pydrive for pydrivebackend.py
+    # pyrax for hubicbackend, _cf_pyrax.py
+    # jottalib for jottalib backend (new in 0.8 series)
+    source: .
+


Follow ups