lp:~aaron-whitehouse/duplicity/07-snap

Created by Aaron Whitehouse on 2019-03-14 and last modified on 2019-03-14

This branch contains the work to support snap packages (on the 0.7-series). The mailing list thread on this work and the rationale starts here:
https://lists.launchpad.net/duplicity-team/msg04838.html

The code can only be converted into a snap after it has been versioned (versions that have had dist/makedist run on them). Once merged, the expectation would be that snapcraft would be run in the folder of the extracted tar.gz after it is released.

You can test it out as follows:
1) Branch the code
2) Run ./dist/makedist 0.7.0.999
3) Extract the resulting .tar.gz to ~/Temp/duplicity-0.7.0.999
4) Within ~/Temp/duplicity-0.7.0.999, run 'snapcraft cleanbuild'
5) 'duplicity_0.7.0.999_amd64.snap' will be in the folder.
6) You can install this using 'snap install duplicity_0.7.0.999_amd64.snap --classic --dangerous'
7) Test you are using this duplicity: $ which duplicity
/snap/bin/duplicity
8) Test the version: $ duplicity --version
duplicity 0.7.0.999

Now that the bare bones are working, the couple of changes I would like to make are to move to using core18 as a base and use the core18 packages rather than the python ones where possible.

See also the duplicity part of deja dup, which I have come across since writing this:
https://gitlab.gnome.org/World/deja-dup/blob/master/snap/snapcraft.yaml

Get this branch:
bzr branch lp:~aaron-whitehouse/duplicity/07-snap
Only Aaron Whitehouse can upload to this branch. If you are Aaron Whitehouse please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Aaron Whitehouse
Project:
Duplicity
Status:
Development

Recent revisions

1373. By Aaron Whitehouse on 2019-03-14

Add snap/snapcraft.yaml and updated makedist to process version number.

1372. By Kenneth Loafman on 2019-02-25

* Merged in lp:~mterry/duplicity/pydrive-root-0.7
  - Just a tiny fix to clean up the temporary file we create to find the root ID.
    It's a little surprising for the user if they wind up with this file called
    "i_am_in_root" that they don't know where it came from. Almost sounds like
    they were hacked.

1371. By Kenneth Loafman on 2019-01-26

Bug #1813214 was marked fixed in 0.7.13. There were still a couple of copy.com references remaining in the docs and web. Got those nuked, finally.

1370. By Kenneth Loafman on 2018-12-17

Fix some punctuation.

1369. By Kenneth Loafman on 2018-12-17

Whoops, missed 'global paramiko' in __init__.

1368. By Kenneth Loafman on 2018-12-16

* Fixed bug #1798206 and bug #1798504
  * Made paramiko a global with import during __init__ so it would
    not be loaded unless needed.

1367. By Kenneth Loafman on 2018-10-17

* Prep for 0.7.18.2

1366. By Kenneth Loafman on 2018-09-28

* Fixed bug #1788558 again
  - If we get None for size skip check.

1365. By Kenneth Loafman on 2018-09-28

* Fixed bug #1788558 again
  - If we get None for size skip check.

1364. By Kenneth Loafman <email address hidden>> on 2018-08-26

* Catch up on red tape.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:duplicity
This branch contains Public information 
Everyone can see this information.

Subscribers