We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95be994 + 4f47bdc commit 9313b3eCopy full SHA for 9313b3e
1 file changed
cookie_python/manage/repo.py
@@ -69,6 +69,12 @@ def tempdir(self) -> Path:
69
)
70
71
72
+ @cached_property
73
+ def cachedir(self) -> Path:
74
+ d = self.tempdir / "cache"
75
+ d.mkdir(exist_ok=True)
76
+ return d
77
+
78
@cached_property
79
def clone_path(self) -> Path:
80
subprocess.run(
@@ -99,6 +105,7 @@ def run(
99
105
kwargs["env"].setdefault(
100
106
"PYTHON_KEYRING_BACKEND", "keyring.backends.null.Keyring"
101
107
108
+ kwargs["env"].setdefault("POETRY_CACHE_DIR", self.cachedir)
102
109
return subprocess.run(*popenargs, check=check, **kwargs)
103
110
104
111
def shell(self) -> None:
0 commit comments