Skip to content

Commit c83e9f4

Browse files
authored
Merge pull request #93 from smkent/manage-run-env
Include PYTHON_KEYRING_BACKEND in repo run commands env
2 parents f6ac9b1 + 4a161e4 commit c83e9f4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cookie_python/manage/repo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def run(
9595
self, *popenargs: Any, check: bool = True, **kwargs: Any
9696
) -> subprocess.CompletedProcess:
9797
kwargs.setdefault("cwd", self.clone_path)
98+
kwargs.setdefault("env", os.environ.copy())
99+
kwargs["env"].setdefault(
100+
"PYTHON_KEYRING_BACKEND", "keyring.backends.null.Keyring"
101+
)
98102
return subprocess.run(*popenargs, check=check, **kwargs)
99103

100104
def shell(self) -> None:

0 commit comments

Comments
 (0)