ceph / merfi

Finds and signs files with different signing tools (gpg, rpm-sign)
MIT License
3 stars 3 forks source link

backends: use absolute imports #71

Closed ktdreyer closed 1 year ago

ktdreyer commented 5 years ago

Python 3 raises an error here:

ModuleNotFoundError: No module named 'rpm_sign'

Use absolute imports instead so the code works on Python 3.

Enable the absolute_imports behavior from __future__ to make Python 2.6 and 2.7 behave the same as Python 3 in this regard.

alfredodeza commented 5 years ago

maybe we should consider making this an ansible module at some point

ktdreyer commented 1 year ago

I've tested this on a dummy Debian repo with Python 3.11 and it works.