canonical / charm-duplicity

A charm that provides functionality for both manual and automatic backups for a deployed application
0 stars 3 forks source link

remove unnecessary dependency for fabric #5

Closed jneo8 closed 10 months ago

jneo8 commented 10 months ago

charm-duplicity depends on fabric, this package introduced a few trouble:

1) we can not install it via apt since python3-fabric is only available on focal+ 2) fabric itself depends on cryptography, it introduce new deps libffi-dev + libssl-dev and requires compiling 3) because compiling required, we can not use wheelhouse.txt to install fabric, it has to be installed at runtime via pip, which is not doable if a cloud env has no pip access, which is common for us.

In the code, fabric is actually only used in func create_remote_dir, which could easily be replaced with paramiko or just ssh shell cmd (via subprocess).

We need to modify the code, to remove fabric dependency.


Imported from Launchpad using lp2gh.