(self, path: pathlib.Path)
| 433 | ] |
| 434 | |
| 435 | def sign_file(self, path: pathlib.Path) -> List[pathlib.Path]: |
| 436 | info(f"Signing {path.name}") |
| 437 | run_cmd( |
| 438 | ["gpg", "--detach-sign", *self.sign_args(), "--local-user", self.gpg_id, path], |
| 439 | env=self.gpg_env(), |
| 440 | ) |
| 441 | run_cmd( |
| 442 | ["gpg", "--detach-sign", *self.sign_args(), "--armor", "--local-user", self.gpg_id, path], |
| 443 | env=self.gpg_env(), |
| 444 | ) |
| 445 | return [path.with_suffix(f"{path.suffix}.asc"), path.with_suffix(f"{path.suffix}.sig")] |
| 446 | |
| 447 | def clean(self): |
| 448 | info("Cleaning gpg keys") |
no test coverage detected