Python: Verifying a GPG signature with a given keyring and the gpg module
I’m trying to write a patch for bmaptool allowing it to verify a GPG signature with a custom keyring. My current understanding is, that I have to create a custom gpg home directory and import the keyring i want to use. So something along these lines: